@php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @php $i++; @endphp @endforeach @else @endif
Sl No Invoice No. Date Patient Name Voucher Type Status Bill View
{{$data->firstItem() + $key}} {{$list->getSaleInvoice->main_invoice_no}}
Batch No: {{$list->invoice_batch_no ?? '' }}
{!! nl2br(e(formatedDateTime($list->getSaleInvoice->invoice_date))) !!}
{{$list->getSaleInvoice->getDoctor->account_title->name ?? ''}} {{$list->getSaleInvoice->getDoctor->name ?? ''}}
{{$list->getSaleInvoice->getPatient->account_title->name ?? ''}} {{$list->getSaleInvoice->getPatient->name ?? ''}}
{{$list->getSaleInvoice->getPatient->account_contact->gender->name ?? ''}} {{ isset($list->getSaleInvoice->getPatient->account_contact->date_of_birth) && isset($list->getSaleInvoice->getPatient->account_contact->gender) ? ', ' : '' }} {{ isset($list->getSaleInvoice->getPatient->account_contact->date_of_birth) ? age($list->getSaleInvoice->getPatient->account_contact->date_of_birth) . ' years' : '' }}
{!! $list->voucherType->name??'' !!} {!! $list->batch_status??'' !!}
No Data Found