@include('layout.header')
@include('layout.navbar') @include('layout.breadscrum')
@include('layout.sidebar')

{{__('sidebar.appointment')}}

@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['create_appointment'])) @endif

@foreach($appointments as $k=>$appointment) @endforeach
{{__('comment.table_no')}} {{__('comment.table_action')}} {{__('appointment.patient')}} {{__('appointment.date')}} {{__('appointment.type')}} {{__('appointment.doctor')}} {{__('appointment.description')}}
{{($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}}
{!! $appointments->appends($_GET)->links('pagination.custom') !!}
@include('modal.appointment') @include('layout.footer')
@include('layout.common_script')