@extends('layouts.app') @section('title', 'Invoice ' . $invoice->invoice_number) @section('page_title', 'Invoice Details') @section('content')
Back to Invoices
@if($invoice->status !== 'voided' && $invoice->balance_due > 0 && (auth()->user()->isSuperAdmin() || auth()->user()->isManager())) @endif

PREEZ BRANDS LTD

Nasser Road, Kampala, Uganda
Phone: +256 700 000 000 | Email: sales@preezbrands.com

INVOICE

{{ $invoice->invoice_number }}
{{ ucfirst($invoice->status) }}
BILLED TO:
{{ $invoice->client->full_name }}

Code: {{ $invoice->client->client_code }}
Phone: {{ $invoice->client->phone }}
@if($invoice->client->email) Email: {{ $invoice->client->email }}
@endif @if($invoice->client->tin) TIN: {{ $invoice->client->tin }} @endif

DETAILS:

Date Issued: {{ $invoice->invoice_date->format('M d, Y') }}
Due Date: {{ $invoice->due_date ? $invoice->due_date->format('M d, Y') : '-' }}
Payment Type: {{ ucfirst(str_replace('_', ' ', $invoice->payment_method)) }}
Prepared By: {{ $invoice->createdBy->full_name }}

@foreach($invoice->items as $item) @endforeach
Item / SKU Description Unit Price Qty Discount Total
{{ $item->item_name }}
{{ $item->item_code }}
{{ $item->description ?? '-' }} {{ number_format($item->unit_price) }} UGX {{ $item->quantity }} -{{ number_format($item->discount) }} UGX {{ number_format($item->total_price) }} UGX
Subtotal {{ number_format($invoice->subtotal) }} UGX
@if($invoice->discount > 0)
Flat Discount -{{ number_format($invoice->discount) }} UGX
@endif
VAT ({{ (int)$invoice->tax_rate }}%) {{ number_format($invoice->tax_amount) }} UGX
Grand Total {{ number_format($invoice->total_amount) }} UGX
Amount Paid {{ number_format($invoice->amount_paid) }} UGX
Balance Due {{ number_format($invoice->balance_due) }} UGX
@if($invoice->notes)
INVOICE NOTES:

{{ $invoice->notes }}

@endif @if($invoice->status === 'voided')
This transaction has been VOIDED

Voided By: {{ $invoice->voidedBy->full_name }} on {{ $invoice->voided_at->format('M d, Y H:i') }}
Reason: {{ $invoice->void_reason }}

@endif
@if($invoice->status !== 'voided') @endif @endsection