@if(in_array('opd-appointment-print', $authRolePermissions)) @endif @if(in_array('opd-appointment-edit', $authRolePermissions)) @endif @if(in_array('opd-appointment-delete', $authRolePermissions)) @endif @php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @php $Payments = TransactionCalculationReceiveAmount($list->id,'OPD_BOOKING'); @endphp @if(in_array('opd-appointment-print', $authRolePermissions)) @endif @if(in_array('opd-appointment-edit', $authRolePermissions)) @endif @if(in_array('opd-appointment-delete', $authRolePermissions)) @endif @php $i++; @endphp @endforeach @else @endif
SL. No. Invoice No. Patient Details Doctor Details Appointment Bill Amount Balance Check InBill PescEditDelete
{{$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' : '' }}
Source: {{'Walk In'}}
{{$list->getDoctorAccount->account_title->name ?? ''}} {{$list->getDoctorAccount->name ?? ''}}
@if(isset($list->getCreatedBy->prepared_by))
By: {!! $list->getCreatedBy->prepared_by??'' !!}
@endif
@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($Payments['totalBilling']) ?? ''}} @if($Payments['dueAmount']>0)
Due: {{ convertDecimelPoint($Payments['dueAmount']) ?? ''}} @endif @if($Payments['receivedAmount']>0)
Received:{{ convertDecimelPoint($Payments['receivedAmount']) ?? ''}} @endif
{!! $Payments['dueAmount'] > 0 ? ' Collect' : ' ' !!}
check_in_status == '1' ? 'checked' : '' }}>
No Data Found