@extends('admin.layouts.app') @section('title', 'Invoices') @section('content')
| Invoice # | Date | Client | Property Address | Amount | Status | Payment Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->formatted_invoice_date }} |
{{ $invoice->primary_client_name ?: 'N/A' }}
@if($invoice->primary_client_email)
@if($invoice->customers->count() > 1)
+{{ $invoice->customers->count() - 1 }} more
@endif
{{ $invoice->primary_client_email }} @endif |
{{ $invoice->full_property_address ?: 'N/A' }} |
{{ $invoice->formatted_total }}
@if($invoice->paid_amount > 0)
Paid: ${{ number_format($invoice->paid_amount, 2) }} @endif |
@php $statusColors = [ 'draft' => 'secondary', 'sent' => 'info', 'viewed' => 'warning', 'paid' => 'success', 'cancelled' => 'danger' ]; @endphp {{ ucfirst($invoice->status) }} |
@php
$paymentColors = [
'unpaid' => 'danger',
'partial' => 'warning',
'paid' => 'success',
'overdue' => 'dark'
];
@endphp
{{ ucfirst($invoice->payment_status) }}
@if($invoice->payment_status !== 'paid')
Balance: {{ $invoice->formatted_balance }} @endif |
|
| No invoices found. | |||||||