@extends('app') @section('content')
Print     Half Print    
@if($patientInfo)
{{ $patientInfo->full_name }}
{{ $patientInfo->present_address }}
Phone: {{ $patientInfo->mobile_no }}
Age: {{ $patientInfo->patient->age }}
Blood Group: {{ $patientInfo->patient->blood_group }}
Gender: @if ($patientInfo->gender ==1) {{ 'Male'}} @elseif($patientInfo->gender ==2) {{ 'Female'}} @else {{ 'Other'}} @endif
@else
Name:
Address:
Phone:
@endif
Invoice {{ $receiptInfo->invoice_id }}

Invoice Date: {{ $receiptInfo->date }}
@if(Session::has('saleItems')) @php $sl=0; @endphp @foreach(Session::get('saleItems') 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 Qty Sale Price Disc Total
{{$packageKey}}
{{++$sl}} {{$groupItem['diagnostic_test_name']}}
{{$groupItem['quantity']}}
{{$groupItem['diagnostic_test_sale_price']}}
{{$groupItem['discount']}}
{{$groupItem['total']}}
{{$groupKey}}
{{++$sl}} {{$saleItem['diagnostic_test_name']}}
{{$saleItem['quantity']}}
{{$saleItem['diagnostic_test_sale_price']}}
{{$saleItem['discount']}}
{{$saleItem['total']}}

Subtotal: {{$receiptInfo->total_amount}}
Discount: {{$receiptInfo->discount}}
Total: {{$receiptInfo->total_amount - ($receiptInfo->discount) }}
Paid: {{$receiptInfo->total_amount - ($receiptInfo->discount) }}
Due: {{$receiptInfo->due}}
Pay Note: {{$receiptInfo->pay_note}}
Return: {{$receiptInfo->return}}
@endsection @section('extra-js') @endsection @section('script')