@extends('layouts.app') @section('title', $voucher_type->name . ' - ' . (isset($sale_invoice->main_invoice_no) ? $sale_invoice->main_invoice_no:'' ). ' - ' . (isset($sale_invoice->invoice_date) ? formatedDate($sale_invoice->invoice_date) : '') . ' - ' . (isset($sale_invoice->getPatient->name) ?? '')) @section('pages') @php $pageTitle = isset($sale_invoice->main_invoice_no)??'' . ' - ' . (isset($ipd_id->getPatient->name) ?? '') . '-' . (isset($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
|