@if(in_array('opd-booking-print', $authRolePermissions)) @endif @if(in_array('opd-booking-edit', $authRolePermissions)) @endif @if(in_array('opd-booking-delete', $authRolePermissions)) @endif @php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @php $Receive = TransactionCalculationReceiveAmount($list->id,'OPD_BOOKING'); @endphp @if(in_array('opd-booking-print', $authRolePermissions)) @endif @if(in_array('opd-booking-edit', $authRolePermissions)) @endif @if(in_array('opd-booking-delete', $authRolePermissions)) @endif @php $i++; @endphp @endforeach @else @endif
SL. No. Booking Patient Details Doctor Details Appointment Bill Amount BalanceSlipConvert EditDelete
{{$data->firstItem() + $key}} @php $booking_date_time = \Illuminate\Support\Carbon::parse($list->booking_date_time); @endphp {{$list->booking_no}}
{{$booking_date_time->format('d-m-Y') ?? ''}}
{{$booking_date_time->format('h:i A') ?? '' }}
{{$list->getPatient->account_title->name ?? ''}} {{$list->getPatient->name ?? ''}}
{{$list->getPatient->account_contact->gender->name ?? ''}}{{ isset($list->getPatient->account_contact->date_of_birth) && isset($list->getPatient->account_contact->gender) ? ', ' : '' }} {{ isset($list->getPatient->account_contact->date_of_birth) ? age($list->getPatient->account_contact->date_of_birth) . ' years' : '' }}
{{ isset($list->getPatient->account_contact->phone_no) ?'Ph:'. $list->getPatient->account_contact->phone_no:''}}
{{$list->getDoctorAccount->account_title->name ?? ''}} {{$list->getDoctorAccount->name ?? ''}}
@if(isset($list->getCreatedBy->prepared_by))
By: {!! $list->getCreatedBy->prepared_by??'' !!}
@endif Source: {{'Walk In'}}
@php $appointment_date_time = \Illuminate\Support\Carbon::parse($list->appointment_date_time); @endphp {{$appointment_date_time->format('d-m-Y') ?? ''}}
{{$appointment_date_time->format('h:i A') ?? '' }}
Token No: {{$list->appointment_serial_no ?? ''}}
Total: {{ convertDecimelPoint($Receive['totalBilling']) ?? ''}} @if($Receive['dueAmount']>0)
DUE: {{ convertDecimelPoint($Receive['dueAmount']) ?? ''}} @endif @if($Receive['receivedAmount']>0)
Received: {{ convertDecimelPoint($Receive['receivedAmount']) ?? ''}} @endif
{!! $Receive['dueAmount'] > 0 ? ' Collect' : ' ' !!} Convert
No Data Found