{{-- resources/views/accounting/invoices/show.blade.php --}} @extends('admin.admin_dashboard') @section('admin')
{{-- show buyer if exists, else customer --}}
Customer/Buyer: {{ optional($invoice->buyer)->name ?? optional($invoice->customer)->name }}
Date: {{ $invoice->invoice_date }}
Due: {{ $invoice->due_date ?: '—' }}
Status: {{ ucfirst($invoice->status) }}
@foreach($invoice->lines as $i => $line) @endforeach
# Account Description Qty Unit Price Line Total
{{ $i+1 }} {{ $line->account->full_name }} {{ $line->description }} {{ $line->quantity }} {{ number_format($line->unit_price,2) }} {{ number_format($line->quantity * $line->unit_price,2) }}
Subtotal: {{ number_format($invoice->subtotal,2) }}
Tax: {{ number_format($invoice->tax_total,2) }}
Grand Total: {{ number_format($invoice->grand_total,2) }}
@can('invoices.edit') Edit @endcan Back to List
@endsection