@extends('layouts.admin') @section('title', 'Invoice '.$invoice->invoice_number) @section('content') @php $canManage = auth()->user()?->hasPermission('invoices', 'manage'); $canRecordPayment = auth()->user()?->hasPermission('invoices', 'payments'); @endphp
Billed to {{ $invoice->bill_to_name }} · {{ ucfirst($invoice->invoice_type) }} invoice
| Item | Description | Qty | Unit Price | Discount | Tax % | Total |
|---|---|---|---|---|---|---|
| {{ $item->item_name }} | {{ $item->description }} | {{ rtrim(rtrim(number_format((float) $item->quantity, 2), '0'), '.') ?: '0' }} | ₹{{ number_format((float) $item->unit_price, 2) }} | ₹{{ number_format((float) $item->discount, 2) }} | {{ number_format((float) $item->tax, 2) }}% | ₹{{ number_format((float) $item->total, 2) }} |
No payments recorded yet.
@else| Date | Method | Transaction ID | Remarks | Amount |
|---|---|---|---|---|
| {{ $payment->payment_date->format('d M Y') }} | {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} | {{ $payment->transaction_id ?? '-' }} | {{ $payment->remarks ?? '-' }} | ₹{{ number_format((float) $payment->amount, 2) }} |
| Subtotal | ₹{{ number_format((float) $invoice->subtotal, 2) }} |
| Discount | ₹{{ number_format((float) $invoice->discount, 2) }} |
| Tax | ₹{{ number_format((float) $invoice->tax, 2) }} |
| Other Charges | ₹{{ number_format((float) $invoice->other_charges, 2) }} |
| Grand Total | ₹{{ number_format((float) $invoice->grand_total, 2) }} |
| Paid | ₹{{ number_format((float) $invoice->total_paid, 2) }} |
| Balance Due | ₹{{ number_format($invoice->balance_due, 2) }} |