@extends('layouts.app') @section('title', $sale_invoice->booking_no . ' - '. ($sale_invoice->booking_date_time ? formatedDate($sale_invoice->booking_date_time) : '') . ' - ' . ($sale_invoice->getPatient->name ?? '')) @section('pages')
Patient Name | {!! $sale_invoice->getPatient->code ?? '' !!} - {!! $sale_invoice->getPatient->name ?? '' !!} |
Sex/Age | {!! $sale_invoice->getPatient->account_contact->gender->name ?? '' !!}/{!! $age !!} Years |
Address | {!! $sale_invoice->getPatient->first_account_address->address_line1 ?? '' !!} |
State Name | {!! $sale_invoice->getPatient->first_account_address->state->name ?? '' !!} |
Doctor Name | {{ ucfirst($sale_invoice->getDoctorAccount->name) }} |
Address | {{$sale_invoice->getDoctorAccount->first_account_address->address_line1 ?? ''}} |
{{$sale_invoice->getDoctorAccount->account_contact->email ?? ''}} | |
Phone No | {{$sale_invoice->getDoctorAccount->account_contact->phone_no ?? ''}} |
Collection Agent Name | {{ ucfirst($sale_invoice->getCollectionAgent->name) }} |
Address | {{$sale_invoice->getCollectionAgent->first_account_address->address_line1 ?? ''}} |
{{$sale_invoice->getCollectionAgent->account_contact->email ?? ''}} | |
Phone No | {{$sale_invoice->getCollectionAgent->account_contact->phone_no ?? ''}} |
Refferal Laboratory | {{ ucfirst($sale_invoice->getRefferalLab->name) }} |
Address | {{$sale_invoice->getRefferalLab->first_account_address->address_line1 ?? ''}} |
{{$sale_invoice->getRefferalLab->account_contact->email ?? ''}} | |
Phone No | {{$sale_invoice->getRefferalLab->account_contact->phone_no ?? ''}} |
Sl.No | ITEM NAME & DETAILS | @if($voucher_type && $voucher_type->tax_applicable == '1')HSN/SAC | @endifMRP | QTY | Dis(%) | PRICE | @if($voucher_type && $voucher_type->tax_applicable == '1')GST% | IGST | CGST | SGST | CESS | BASIC | @endifTOTAL |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{!! $key + 1 !!} | {!! $value->getProduct->name ?? '' !!} | @if($voucher_type && $voucher_type->tax_applicable == '1'){!! $value->getProduct->hsncode ?? '' !!} | @endif{!! isset($value->getProduct->getProductPrice->mrp) ? convertDecimelPoint($value->getProduct->getProductPrice->mrp) : '' !!} | {!! isset($value->main_qty) ? convertDecimelPoint($value->main_qty) : '1' !!} | {!! isset($value->discount_amount) ? convertDecimelPoint($value->discount_amount) : '0' !!} ({!! $value->discount_percentage ?? '0' !!}) | {!! convertDecimelPoint($value->product_price) !!} | @php $gst = $value->getProduct->getTaxMaster->total_percentage ?? 0; $gst_amount = ($gst > 0 ? (($gst / 100) * $value->amount) : 00); $total_gst_amount +=$gst_amount @endphp @if($voucher_type && $voucher_type->tax_applicable == '1'){!! $gst !!}% ({!! convertDecimelPoint($gst_amount) !!}) | @php if (isset($value->getProduct->getTaxMaster->getTaxMasterSub)) { foreach($value->getProduct->getTaxMaster->getTaxMasterSub as $tax) { if ($tax->name == 'IGST') { $IGST = $tax->percentage ?? 0; } else if ($tax->name == 'CGST') { $CGST = $tax->percentage ?? 0; } else if ($tax->name == 'SGST') { $SGST = $tax->percentage ?? 0; } } } @endphp{!! $IGST !!}% | {!! $CGST !!}% | {!! $SGST !!}% | {!! convertDecimelPoint($value->tax_cess_amount) ?? '' !!} | {!! convertDecimelPoint($value->amount) ?? '' !!} | @endif{!! convertDecimelPoint($value->amount + $gst_amount) ?? '' !!} |