{{-- Header --}} {{-- Header --}}
{{-- Left Section --}}
{{-- Title + Invoice --}}

Edit Invoice

Invoice #: {{ $invoice->invoice_number }}

{{-- Buttons --}}
{{-- View Invoice --}} View Invoice {{-- Back --}} Back
{{-- Total Amount --}}

Total Amount

${{ number_format($invoice->total, 2) }}

{{-- Success Message --}} @if (session('success'))
{{ session('success') }}
@endif {{-- Errors --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- LEFT SIDE --}}
{{-- Current Invoice Items --}}

Current Invoice Items

{{-- Discount Section --}}

Discount

@csrf {{-- Form Fields --}}
{{-- Discount Reason --}}
{{-- Discount Amount --}}
{{-- Discount Type --}}
{{-- Invoice Summary --}}
Subtotal ${{ number_format($invoice->subtotal, 2) }}
Discount - ${{ number_format($invoice->discount ?? 0, 2) }}
Total ${{ number_format($invoice->total, 2) }}
{{-- Submit Button --}}
@forelse($invoice->items as $item)

{{ $item->description }}

Booking ID: #{{ $item->booking_id }}

${{ number_format($item->price, 2) }} {{-- Remove Item --}}
@csrf @method('DELETE')
@empty
No invoice items found.
@endforelse
{{-- RIGHT SIDE --}}

Add More Bookings

@csrf @method('PUT')
@forelse($availableBookings as $booking) @empty
No completed bookings available.
@endforelse