@include('layout.header')
@include('layout.navbar') @include('layout.breadscrum')
@include('layout.sidebar')
{{__('sidebar.appointment')}}
{{__('general.btn_search')}}
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['create_appointment']))
{{__('general.btn_add_new')}}
@endif
{{__('comment.table_no')}}
{{__('comment.table_action')}}
{{__('appointment.patient')}}
{{__('appointment.date')}}
{{__('appointment.type')}}
{{__('appointment.doctor')}}
{{__('appointment.description')}}
@foreach($appointments as $k=>$appointment)
{{($k+1) + (($_GET['page'] ?? 1) * 20) - 20}}
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['create_sample']))
@endif @if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['update_appointment']))
@endif @if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['delete_appointment']))
@endif
{{$appointment->patient->name_en . ' - ' .$appointment->patient->phone_number}}
{{date('d-M-Y h:i A', strtotime($appointment->appointment_date))}}
{{$appointment->appointment_type}}
{{$appointment->doctor->name_en ?? ''}}
{{$appointment->description}}
@endforeach
{!! $appointments->appends($_GET)->links('pagination.custom') !!}
@include('modal.appointment') @include('layout.footer')
@include('layout.common_script')