@php use Carbon\Carbon; $party = 'Dr'; switch ($name) { case 'Purchase': $party = 'Cr'; break; case 'Sales': $party = 'Dr'; break; case 'Purchase Return': $party = 'Dr'; break; case 'Sales Return': $party = 'Cr'; break; default: $party = 'Dr'; break; } @endphp
| Voucher Number | Voucher Date | Voucher Type | Party Name | Party Address | Party Pincode | Party GSTIN | Party Code | Taxable Value | CGST | SGST | IGST | CESS | Total | Business Type | Supplier Inv No | Supplier Inv Date | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| B2B | |||||||||||||||||
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->voucherType->name }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $taxableValue }} | {{ $cgst }} | {{ $sgst }} | {{ $igst }} | {{ $cess }} | {{ $total }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->voucherType->name }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | Cancelled | ||||||
| B2C | |||||||||||||||||
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->voucherType->name }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $taxableValue }} | {{ $cgst }} | {{ $sgst }} | {{ $igst }} | {{ $cess }} | {{ $total }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->voucherType->name }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |