@extends('layouts.app') @section('title', $sale_invoice->voucher_type_invoice_no . ' - '. ($sale_invoice->invoice_date ? formatedDate($sale_invoice->invoice_date) : '') . ' - ' . ($sale_invoice->getPatient->name ?? '')) @section('pages')
ADDRESS: {!! $sale_invoice->getCompany->getCompanyAddress->address_1 ?? '' !!}
STATE: {!! $sale_invoice->getCompany->getCompanyAddress->getComapnyState->name ?? '' !!}
MOBILE: {!! $sale_invoice->getCompany->mobile_number ?? '' !!}{!! $sale_invoice->getCompany->phone_number ? ', '. $sale_invoice->getCompany->phone_number : '' !!}
EMAIL: {!! $sale_invoice->getCompany->email ?? '' !!}{!! $sale_invoice->getCompany->website ? ', ' . $sale_invoice->getCompany->website : '' !!}
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->getDoctor->name) }} |
Address | {{$sale_invoice->getDoctor->first_account_address->address_line1 ?? ''}} |
{{$sale_invoice->getDoctor->account_contact->email ?? ''}} | |
Phone No | {{$sale_invoice->getDoctor->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) : '' !!} | {!! isset($value->discount_amount) ? convertDecimelPoint($value->discount_amount) : '' !!} ({!! $value->discount_percentage ?? '' !!}) | {!! convertDecimelPoint($value->basic_amount) !!} | @php $gst = $value->getProduct->getTaxMaster->total_percentage ?? 0; $gst_amount = ($gst > 0 ? (($gst / 100) * $value->total_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->total_amount) ?? '' !!} | @endif{!! convertDecimelPoint($value->total_amount + $gst_amount) ?? '' !!} |
Sl.No | Test Package | Created Date | Report Delivery Date | Delete |
---|---|---|---|---|
{!! $key + 1 !!} | {!! $value->getTestPackage->name ?? '' !!} | {!! formatedDate($created_at) ?? '' !!} | {!! $report_delivery_date ?? '' !!} | Delete |