@if(isset($data->bannerUrl) && $data->bannerUrl != "") @endif
@if($data->categoryName != null) {{(optional($data)->categoryName)}} Report Summary @else {{$data->departmentName}} Report Summary @endif
Name : @if(isset($data->userName)) {{$data->userName}} @endif
Start Date : @if(isset($data->startDate)) {{$Controller::dateFormatter($data->startDate)}} @endif @if(isset($data->endDate)) End Date : {{$Controller::dateFormatter($data->endDate)}} @endif
Total Collection : @if(isset($data->totalSalesAmount)) {{number_format($data->totalSalesAmount, 2), 2}} @endif
Total Refund Amount : @if(isset($data->totalRefundAmount)) {{number_format($data->totalRefundAmount, 2), 2}} @endif
Total Discount / Free Amount : @if(isset($data->totalDiscountAmount)) {{number_format($data->totalDiscountAmount, 2), 2}} @endif
Total Amount : @if(isset($data->netAmount)) {{number_format($data->netAmount, 2), 2}} @endif
In word : @if(isset($data->netAmountInWord)) {{$data->netAmountInWord}} taka only. @endif
@if($data->refundList)
Refund Report
@foreach($data->refundList as $index => $req) @endforeach
SL Date Invoice No Name Registration No Amount
{{$index+1}} {{$Controller::dateFormatter($req->createdDate)}} {{$req->billingMaster->invoiceNo}} {{$req->billingMaster->customerName}} {{$req->cbillingMaster->customerRegNo}} {{number_format($req->billingMaster->netPayable === null ? 0 : $req->billingMaster->netPayable, 2), 2}}
Total = {{number_format($data->totalRefundAmount, 2), 2}}
@endif @if($data->groupList)
Collection Report
@foreach($data->groupList as $pIdx => $master) @foreach($master as $bIdx => $details) @if($bIdx === 0) @endif @endforeach @endforeach
SL Invoice No Date Patient Name Investigation Name Sales Amount Discount Amount Net Amount
{{ $pIdx + 1 }} {{$details->billingMaster->invoiceNo}} {{$Controller::dateFormatter($details->billingMaster->billingDate)}} {{$details->billingMaster->customerName}}{{ $details->productItem->name !== null ? $details->productItem->name : null}} {{number_format($details->unitPrice, 2), 2}} {{number_format((($details->unitPrice * $details->overAllDiscountPercentage) / 100),2), 2 }} {{ number_format(($details->unitPrice - ($details->unitPrice * $details->overAllDiscountPercentage) / 100),2), 2 }}
Total = {{number_format($data->totalSalesAmount === null ? 0 : $data->totalSalesAmount, 2), 2}} {{number_format($data->totalDiscountAmount === null ? 0 : $data->totalDiscountAmount, 2), 2}} {{number_format($data->totalCollectAmount === null ? 0 : $data->netAmount, 2), 2}}
@endif
Print Date & Time - {{ now()->timezone('Asia/Dhaka')->format('d-M-Y g:i A') }}    Powered By - {{$data->poweredBy}}