@extends('app') @section('content')
@if($patientInfo)
Patient Name : {{ $patientInfo->full_name }} {{ $patientInfo->present_address }}
Age: {{\App\Custom\Helper::patientAge($patientInfo->dob)}}
Phone: {{ $patientInfo->mobile_no }}
@if ($invoiceInfo->hide_name_invoice == 0) Referred By: {{$invoiceInfo->referred_by}} @endif
{!! \App\Custom\Helper::printBarcode($patientInfo, $invoiceInfo) !!}
@else
Name:
Address:
Phone:
@endif
Date: {{ $invoiceInfo->date }}
Invoice: {{ $invoiceInfo->sale_invoice_id }}
Gender: @if ($patientInfo->gender ==1) {{ 'Male'}} @elseif($patientInfo->gender ==2) {{ 'Female'}} @else {{ 'Other'}} @endif
Blood Group: {{ $patientInfo->blood_group }}
@if(count($finalArray) > 0) @php $sl=0; @endphp @foreach($finalArray as $mainKey => $saleItems) @foreach($saleItems as $packageKey => $packageItems) @if($packageKey != 'No-Package') @endif @foreach($packageItems as $groupKey => $groupItems) @if($groupKey == 'No-Group') @foreach($groupItems as $groupItem) @endforeach @else @foreach( $groupItems as $serviceKey => $saleItem ) @endforeach @endif @endforeach @endforeach @endforeach @endif {{-- --}}
SL Service Name Delivery Date Qty Sale Price Disc Total
{{$packageKey}}
{{++$sl}} {{ $groupItem['diagnostic_test_name'] }} {{$groupItem['delivery_datetime']}} {{ $groupItem['quantity'] }} {{ $groupItem['diagnostic_test_sale_price'] }} {{ $groupItem['discount'] }} {{ $groupItem['total'] }}
{{ $groupKey }}
{{++$sl}} {{ $saleItem['diagnostic_test_name'] }} {{$saleItem['delivery_datetime']}} {{ $saleItem['quantity'] }} {{ $saleItem['diagnostic_test_sale_price'] }} {{ $saleItem['discount'] }} {{ $saleItem['total'] }}
@if($invoiceInfo->due>0)

DUE

@else

PAID

@endif
Subtotal: {{ $invoiceInfo->amount }}
Discount: {{ $invoiceInfo->discount }}
Total: {{ $invoiceInfo->amount - $invoiceInfo->discount }}
Paid: {{ $invoiceInfo->pay_note }}
Due: {{ $invoiceInfo->due > 0 ? $invoiceInfo->due : '0.00' }}
Return: {{ $invoiceInfo->pay_note - $invoiceInfo->pay > 0 ? $invoiceInfo->pay_note - $invoiceInfo->pay : '0.00' }}
Pay Note: {{ $invoiceInfo->pay_note }}
In Word : {{ ucfirst($digit->format($invoiceInfo->pay_note)) }} Taka Only
Delivery Date {{\Carbon\Carbon::parse($invoiceInfo->delivery_date)->format('Y-m-d')}} Date & Time : {{\Carbon\Carbon::parse($invoiceInfo->created_at)->format('d/m/Y h:i:s A')}} | Prepared By {{$invoiceInfo->seller->full_name}} শুক্রবারসহ সকাল ৯ টা থেকে রাত ৯ টা পর্যন্ত খোলা
@if(!empty($invoiceInfo->room_no))

Room Number: {{$invoiceInfo->room_no}}

@endif @if(!empty($invoiceInfo->user->signature->signature)) User Image @endif
বিঃদ্রঃ রিপোর্ট ডেলিভারি নেওয়ার সময় অবশ্যই মানি রিসিট সাথে আনবেন।
@endsection @section('extra-css') @stop @section('extra-js') @endsection