@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 | Ledger Name | Quantity | Price | Gross Value | Discount Percentage | Taxable Value | CGST | SGST | IGST | CESS | Total | Business Type | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| B2B | ||||||||||||||||||||
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->voucherType->name }} | {{ $voucher->creditLedger->name }} | {{ $voucher->creditLedger->address }} | {{ $voucher->creditLedger->pin_code }} | {{ $voucher->creditLedger->gst }} | {{ $voucher->creditLedger->ledger_code }} | {{ $capitalGood->ledger->name }} | {{ $capitalGood->quantity }} | {{ $capitalGood->price }} | {{ $capitalGood->gross_value }} | {{ $capitalGood->disc_percentage }} | {{ $capitalGood->taxable_value }} | {{ $capitalGood->cgst }} | {{ $capitalGood->sgst }} | {{ $capitalGood->igst }} | {{ $capitalGood->cess }} | {{ $capitalGood->total }} | B2B | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->voucherType->name }} | {{ $voucher->creditLedger->name }} | {{ $voucher->creditLedger->address }} | {{ $voucher->creditLedger->pin_code }} | {{ $voucher->creditLedger->gst }} | {{ $voucher->creditLedger->ledger_code }} | {{ $capitalGood->ledger->name }} | B2B | {{ $voucher->status == 0 ? 'Cancelled' : '' }} | ||||||||||
| B2C | ||||||||||||||||||||
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->creditLedger->name }} | {{ $voucher->creditLedger->address }} | {{ $voucher->creditLedger->pin_code }} | {{ $voucher->creditLedger->gst }} | {{ $voucher->creditLedger->ledger_code }} | {{ $capitalGood->ledger->name }} | {{ $capitalGood->quantity }} | {{ $capitalGood->price }} | {{ $capitalGood->gross_value }} | {{ $capitalGood->disc_percentage }} | {{ $capitalGood->taxable_value }} | {{ $capitalGood->cgst }} | {{ $capitalGood->sgst }} | {{ $capitalGood->igst }} | {{ $capitalGood->cess }} | {{ $capitalGood->total }} | B2C | {{ $voucher->status == 0 ? 'Cancelled' : '' }} | |
| {{ $voucher->voucher_number }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $voucher->creditLedger->name }} | {{ $voucher->creditLedger->address }} | {{ $voucher->creditLedger->pin_code }} | {{ $voucher->creditLedger->gst }} | {{ $voucher->creditLedger->ledger_code }} | {{ $capitalGood->ledger->name }} | B2C | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |