@extends('layouts.admin') @section('title', 'Custom Invoices') @section('content') @php $badges = ['paid' => 'success', 'partial' => 'warning', 'unpaid' => 'danger', 'overdue' => 'danger', 'draft' => 'secondary', 'cancelled' => 'secondary']; @endphp
Custom Invoices
Create Invoice
@foreach ($invoices as $invoice) @php($state = $invoice->state()) @endforeach
Invoice No Billed To For Issued Due Total Balance Status Action
{{ $invoice->invoice_no }} {{ $invoice->bill_to_name }}@if ($invoice->bill_to_phone)
{{ $invoice->bill_to_phone }}@endif
{{ $invoice->title ?: '-' }} {{ $invoice->issue_date->format('d M Y') }} {{ $invoice->due_date?->format('d M Y') ?: 'On receipt' }} {{ $invoice->currency }} {{ number_format($invoice->total_amount, 2) }} {{ $invoice->currency }} {{ number_format($state === 'cancelled' ? 0 : $invoice->dueAmount(), 2) }} {{ ucfirst($state) }} Details PDF Edit
@endsection @push('scripts') @endpush