{{-- resources/views/invoicing/show.blade.php --}} @extends('layouts.app') @section('title', 'Invoice ' . $invoice->invoice_number) @section('page_title', $invoice->invoice_number) @section('page_subtitle', 'Invoice details') @section('content') @php $sc = [ 'draft' => ['bg'=>'#f1f5f9','color'=>'#475569'], 'issued' => ['bg'=>'#dbeafe','color'=>'#1e40af'], 'partially_paid' => ['bg'=>'#fef3c7','color'=>'#92400e'], 'paid' => ['bg'=>'#d1fae5','color'=>'#065f46'], 'overdue' => ['bg'=>'#fee2e2','color'=>'#991b1b'], 'cancelled' => ['bg'=>'#f1f5f9','color'=>'#9ca3af'], 'written_off' => ['bg'=>'#f1f5f9','color'=>'#9ca3af'], ][$invoice->status] ?? ['bg'=>'#f1f5f9','color'=>'#475569']; @endphp
| Description | Qty | Unit Price | Tax | Total |
|---|---|---|---|---|
| {{ $item->description }} @if($item->item_type && $item->item_type !== 'service') {{ ucfirst($item->item_type) }} @endif | {{ $item->quantity }} | {{ number_format($item->unit_price, 2) }} | @if($item->tax_rate > 0) {{ $item->tax_rate }}% @else — @endif | {{ number_format($item->total_price, 2) }} |
No payments yet