@extends('layouts.admin') @section('styles') @endsection @section('content')

Edit Invoice

Back to Invoice
@if(session('success')) @endif @if(session('error')) @endif
@csrf @method('PUT')
Invoice Details
{{ ucfirst($invoice->status) }}
@error('client_id')
{{ $message }}
@enderror
@error('event_id')
{{ $message }}
@enderror
@error('invoice_date')
{{ $message }}
@enderror
@error('due_date')
{{ $message }}
@enderror
KES
@error('total_amount')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('notes')
{{ $message }}
@enderror
Summary
@if($invoice->quotation)
@endif
@if($invoice->receipts->count() > 0)
KES
KES
@endif
@if($invoice->is_cancelled)
Invoice Cancelled

Reason: {{ $invoice->cancellation_reason }}

Cancelled By: {{ $invoice->cancelledBy->name ?? 'N/A' }}

Cancelled On: {{ $invoice->cancelled_at ? $invoice->cancelled_at->format('d M, Y h:i A') : 'N/A' }}

@if($invoice->cancellation_approved)

Approved By: {{ $invoice->cancellationApprovedBy->name ?? 'N/A' }}

Approved On: {{ $invoice->cancellation_approved_at ? $invoice->cancellation_approved_at->format('d M, Y h:i A') : 'N/A' }}

@endif
@endif
@if($invoice->receipts->count() > 0)
Related Receipts
@foreach($invoice->receipts as $receipt) @endforeach
Receipt # Date Payment Method Reference Amount Actions
{{ $receipt->receipt_number }} {{ $receipt->receipt_date ? $receipt->receipt_date->format('d M, Y') : 'N/A' }} {{ $receipt->payment_method }} {{ $receipt->reference_number }} {{ number_format($receipt->amount, 2) }}
@endif
@endsection @section('scripts') @endsection