@extends('layouts.app') @section('title', $voucher_type->name . ' - '. $sale_invoice->main_invoice_no . ' - '. ($sale_invoice->invoice_date ? formatedDate($sale_invoice->invoice_date) : '') . ' - ' . ($sale_invoice->getPatient->name ?? '')) @section('pages') @php $pageTitle = $sale_invoice->main_invoice_no . ' - ' .($sale_invoice->getPatient->name ?? '').'-'. ($sale_invoice->invoice_date ? formatedDate($sale_invoice->invoice_date) : '') ; @endphp
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@php
$discount = isset($sale_invoice->getSaleInvoiceDiscounts) && $sale_invoice->getSaleInvoiceDiscounts!=''?$sale_invoice->getSaleInvoiceDiscounts->discount_amount:'';
$patient = $sale_invoice->getPatient ?? null;
$patientAddress = $patient->first_account_address ?? null;
$patientState = $patientAddress->state->name ?? '';
$company = @$sale_invoice->getCompany;
$comapnyState = $company->getCompanyAddress->getComapnyState->name ?? '';
if($discount>0 || $voucher_type->tax_applicable == '1')
{
$rowspan = 2;
}else{
$rowspan = 1;
}
@endphp
@if(isset($sale_return_invoice))
SALE RETURN
In words : {!! convertAmountToWords($grand_total) !!} --}} |