@extends('layouts.inspinia') @section('title', 'Sales Register') @section('content_header', 'Sales Register') @section('breadcrumb')
Base Total (TZS)
Amount Paid
Balance Due
Tax Amount
Credit Notes
Invoice Count
| Currency | Document Total | Invoices |
|---|---|---|
| {{ $row->currency }} | {{ number_format($row->total, 2) }} | {{ $row->cnt }} |
| Invoice # | Date | Customer | Currency | Rate | Doc Total | Tax | Discount | Base Total (TZS) | Paid | CN Amt | Balance | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $inv->tax_invoice_number }} | {{ $inv->invoice_date?->format('d/m/Y') }} | {{ $inv->customer_name ?? $inv->customer?->name }} | {{ $inv->currency_code ?? 'TZS' }} | {{ number_format((float)$inv->exchange_rate, 4) }} | {{ number_format($inv->total_amount, 2) }} | {{ number_format($inv->tax_amount, 2) }} | {{ number_format($inv->discount_amount, 2) }} | {{ number_format($inv->baseTotal(), 2) }} | {{ number_format($inv->amount_paid, 2) }} | {{ number_format($inv->credit_note_amount, 2) }} | {{ number_format($inv->balance_due, 2) }} | {{ ucfirst($inv->status) }} |
| Page Totals: | {{ number_format($invoices->sum('total_amount'), 2) }} | {{ number_format($invoices->sum('tax_amount'), 2) }} | {{ number_format($invoices->sum('discount_amount'), 2) }} | {{ number_format($invoices->sum(fn($i) => $i->baseTotal()), 2) }} | {{ number_format($invoices->sum('amount_paid'), 2) }} | {{ number_format($invoices->sum('credit_note_amount'), 2) }} | {{ number_format($invoices->sum('balance_due'), 2) }} | |||||