@php use Carbon\Carbon; @endphp
@if(isset($data->invoiceNo)) Invoice - {{$data->invoiceNo}} @endif | @if(isset($data->billingDate)) Date - {{dateFormatter($data->billingDate)}} @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))
|
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 | |
Referred By | : | @if(isset($data->beneficiaryName)) {{$data->beneficiaryName}} @endif | |
Cabin No | : | {{$data->customer->admission->bed->bedNo}} | @endif|
Bill to Contact | : | {{$data->customer->billToContact->name}} ( Reg-{{$data->customer->billToContact->billToRegistrationNo}} ) | @endif
{{capitalizeFirstChar($list[0])}} | ||||||||||||||||
Sl | Name | @if($list[0] == "MEDICINE")Rate | @endif @if($list[0] == "MEDICINE")Discount(%) | @endif @if($list[0] === "INVESTIGATION")Delivery Time | @endif @if($list[0] == "MEDICINE")Price | @endif @if($list[0] == "MEDICINE")Quantity | @endif @if($list[0] === "INVESTIGATION")Room No | @endif @if($list[0] === "INVESTIGATION")Total | @endif @if($list[0] != "MEDICINE" && $list[0] != "INVESTIGATION")Total | @endif @if($list[0] == "MEDICINE")Total | @endif||||||
{{$i+1}} | @if(isset($item->productItem->name)) {{$item->productItem->name}} @else {{$item->itemName}} @endif | @if(isset($item->unitPrice) && $list[0] == "MEDICINE"){{number_format($item->unitPrice, 2), 2}} | @endif @if(isset($item->discountRate) && $list[0] == "MEDICINE"){{number_format($item->discountRate, 2)}} | @endif @if($list[0] === "INVESTIGATION")@if(isset($item->productItem->deliveryTime) && isset($item->productItem->deliveryUom)) {{getDeliveryTime($item->productItem->deliveryTime, $item->productItem->deliveryUom, $data->createdDate)->format('d-M g:i A')}} @endif | @endif @if($list[0] === "INVESTIGATION")@if(isset($item->productItem->sampleCollectionRoom)) {{$item->productItem->sampleCollectionRoom}} @endif | @endif @if(isset($item->saleAmount) && $list[0] == "MEDICINE"){{number_format($item->saleAmount, 2)}} | @endif @if(isset($item->quantity) && $list[0] == "MEDICINE"){{$item->quantity}} | @endif @if($list[0] === "INVESTIGATION"){{number_format($item->netSales, 2), 2}} | @endif @if($list[0] != "MEDICINE" && $list[0] != "INVESTIGATION"){{number_format($item->netSales, 2), 2}} | @endif @if($list[0] == "MEDICINE"){{number_format($item->netSales, 2), 2}} | @endif||||||
Sub Total of {{capitalizeFirstChar($list[0])}} : {{number_format($total, 2), 2}} |
Payment Mode | Transaction No | Amount |
{{capitalizeFirstChar($item->paymentMethod)}} | {{$item->transactionId}} | {{$item->payAmount}} |
Grand Total | : | {{number_format($data->totalSaleAmount, 2), 2}} |
Discount Amount | : | {{number_format($data->totalDiscountAmount, 2), 2}} |
Total | : | {{number_format($data->totalSaleAmount - $data->totalDiscountAmount, 2), 2}} |
Paid | : | {{number_format($data->totalCashAmount + $data->totalCardAmount + $data->totalMFSAmount, 2), 2}} |
Due | : | {{number_format($data->totalDue, 2), 2}} |
Return | : | {{number_format($data->totalReturn, 2), 2}} |