@php use Carbon\Carbon; @endphp
@if(isset($data->bannerUrl) && $data->bannerUrl != "") @endif

@if(isset($data->bannerHeight))
@endif

Product Delivery
@if(isset($data->invoiceNo)) Invoice - {{$data->invoiceNo}} @endif @if(isset($data->createdDate)) Invoice Date - {{dateFormatter($data->createdDate)}} @endif
@if(isset($data->customer->admission)) @endif @if(isset($data->customer->billToContact)) @endif
Name : @if(isset($data->customer)) {{$data->customer->name}}  @if (isset($data->customer->patientAnimal->species)) ({{$data->customer->patientAnimal->species}}) @endif (Reg- {{$data->customer->registrationNo}} ) @endif
@if(isset($data->qrCode)) Invoice No @endif
Age : @if(isset($data->customer)) {{\Carbon\Carbon::parse($data->customer->dob)->diff(\Carbon\Carbon::now())->format('%yY %mM %dD')}}   Sex: @if(isset($data->customer)) {{$data->customer->gender}} @endif @endif
Phone : @if(isset($data->customer)) {{$data->customer->mobileNo}} @endif
Delivery Date : {{ now()->timezone('Asia/Dhaka')->format('d-M-Y') }}
Cabin No : {{$data->customer->admission->bed->bedNo}}
Bill to Contact : {{$data->customer->billToContact->name}}  ( Reg-{{$data->customer->billToContact->billToRegistrationNo}} )

@foreach($data->billingDetails as $i => $item) @endforeach
Sl Item Name Type Total Qty Delivery Qty Total Delivery Remaining Qty
{{$i + 1}} {{$item->productItem->name}} @if(isset($item->packageId)) (Package) @endif @if(isset($item->billingType)) {{$item->billingType}} @else {{$item->category}} @endif {{$item->quantity}} {{$item->deliveredQty}} {{$item->totalDeliveredQty}} {{$item->remainingQty}}
Printed By - {{$data->createdBy}}
Print Date & Time - {{ now()->timezone('Asia/Dhaka')->format('d-M-Y g:i A') }}    Powered By - {{$data->poweredBy}}