logo
@if($data[0]->type == 'quotation')

QUOTATION

@elseif($data[0]->type == 'invoice')

INVOICE

@endif
@php $patient_address = trim($data[0]->patient_address); @endphp

Patient Name: {{$data[0]->name}}

Patient Phone No.: {{$data[0]->phone}}

Patient Email ID: {{$data[0]->patient_email}}

@if($patient_address)

Address: {{$data[0]->patient_address}}

@endif @php $gst_details = json_decode($data[0]->gst_details); @endphp

GST No: @if(isset($gst_details[0]->gstno)){{$gst_details[0]->gstno}}@endif

Patient Id: {{$data[0]->patient_id}}

@if($data[0]->type == 'quotation')

Quotation No.: {{$data[0]->quatation_number}}

@elseif($data[0]->type == 'invoice')

Invoice No.: {{$data[0]->quatation_number}}

@endif

Date of Quotation: {{date("M d, Y", $timestamp)}}

Consultant Doctor: {{$data[0]->doctor_name}}

Name Of Surgery: {{$data[0]->surgery_name}}

@foreach($treatment as $treatment_list) @php $totalAmount[]= $treatment_list['price']*$treatment_list['qty']; @endphp @endforeach
Treatment Name Tax Price Amount
{{$treatment_list['treatment_id']}}
@if($treatment_list['type'] == 'package') @foreach($treatment_list['treatmentData'] as $treatmentDatalist) {{$treatmentDatalist['treatment_name']}}
@if($treatmentDatalist['unittype']) Unit - {{$treatmentDatalist['unittype']}} @endif @if($treatmentDatalist['qty']) Qty - {{$treatmentDatalist['qty']}} @endif @if($treatmentDatalist['noofsession']) Sessions - {{$treatmentDatalist['noofsession']}} @endif
@endforeach @else @if($treatment_list['unittype']) Unit - {{$treatment_list['unittype']}} @endif @if($treatment_list['qty'] && $treatment_list['qty'] != '1') Qty - {{$treatment_list['qty']}} @endif @if($treatment_list['treatNoSession']) Sessions - {{$treatment_list['treatNoSession']}} @endif @endif
@if($treatment_list['taxname']) {{$treatment_list['taxname']}} @else -- @endif ₹{{$treatment_list['price']}} @if($treatment_list['type'] == 'package') @foreach($treatment_list['treatmentData'] as $treatmentDatalist) ₹{{$treatmentDatalist['price']}} @endforeach @endif ₹{{$treatment_list['price']*$treatment_list['qty']}} @if($treatment_list['type'] == 'package') @foreach($treatment_list['treatmentData'] as $treatmentDatalist) ₹{{$treatmentDatalist['price']}} @endforeach @endif
@php $gstprice[] = ''; $totalamount = 0; @endphp @if($gstdetail) @foreach($gstdetail as $reslist) @php $gstprice[] = $reslist['price']; @endphp @endforeach @else @endif @if($data[0]['discountpercentage']) @endif @if($data[0]->roundoffTotal) @endif
Sub Total Amount: ₹ {{array_sum($totalAmount)}}
{{$reslist['name']}} [{{$reslist['rate']}}%]: ₹ 0
Total Tax Amount:
Total Tax Amount: ₹ 0.00
{{$data[0]['discountpercentage']}}% Discount : @php $totalamo = array_sum($totalAmount); $totalamount = $totalamo - ($totalamo - ($totalamo * $data[0]['discountpercentage']) / 100); echo '- ₹ '.round($totalamount,2); @endphp
Total Amount: ₹ {{array_sum($totalAmount)+array_sum($gstprice)-$totalamount}}
After Round off Total: ₹ {{$data[0]->roundoffTotal}}
@if($QuatationConfig_package) @endif @if($QuatationConfig_Terms) @endif
@foreach($QuatationConfig_package as $QuatationConfigpackage)

{{ $QuatationConfigpackage->title }}

{{$QuatationConfigpackage->type}}

{!! $QuatationConfigpackage->description !!} @endforeach
@foreach($QuatationConfig_Terms as $QuatationConfigTerms)

{{ $QuatationConfigTerms->title }}

{!! $QuatationConfigTerms->description !!} @endforeach