@extends('dashboard.layouts.master') @section('css') @endsection @section('breadcrumb')

{{$data['title']}}

@if(request()->status == 'mine' && $data['questions']->count() == 0) اسحب اسئلة جديدة @endif
@endsection @section('content')
{{--

Buttons example

--}} {{--

The Buttons extension for DataTables--}} {{-- provides a common set of options, API methods and styling to display--}} {{-- buttons on a page that will interact with a DataTable. The core library--}} {{-- provides the based framework upon which plug-ins can built.--}} {{--

--}}
عدد الاسئلة : {{$data['questions']->total()}} ({{auth()->user()->freePendingQuestionsCount()}})
@if($data['questions']->count() > 0) @foreach($data['questions'] as $question) @endforeach
{{__('labels.id')}} تاخير الرد {{trans('labels.student')}} {{trans('labels.created_at')}} الردود الحالة بحاجة للرد المسئول {{trans('labels.action')}}
{{$question->id}} {{$question->reply_rate}} {{$question->student->name}} {{date('Y-m-d h:i:s a', strtotime($question->created_at))}}
{{date('Y-m-d h:i:s a', strtotime($question->replied_at))}}
{{$question->replies->count()}} {{$question->statusText()}} {{$question->needs_reply ? 'نعم' : 'لا'}} {{$question->admin_id ? $question->admin->name : 'لا يوجد'}}
{!!$data['questions']->withQueryString()->links('pagination::bootstrap-4')!!}
@else
There is no Questions to reply
@endif
@endsection @section('script') @endsection