@extends('layouts.admin') @section('title', 'Edit Invoice') @section('page-title', 'Edit Invoice') @section('breadcrumb') @endsection @section('content')

Editing Invoice: {{ $invoice->invoice_number }} {{ $invoice->status_label }}

@if(!$invoice->isQuotation() && !$invoice->isCancelled())
This invoice cannot be edited because it's already in {{ $invoice->status_label }} status. View details
@else
@csrf @method('PUT')
@error('client_id')
{{ $message }}
@enderror
@if($invoice->client_id)
Client Information:
Name: {{ $invoice->client->name ?? '' }}
Email: {{ $invoice->client->email ?? '' }}
Phone: {{ $invoice->client->phone ?? '' }}
Company: {{ $invoice->client->company->name ?? '' }}
Address: {{ $invoice->client->company->address ?? '' }}
@endif
@error('customer_name')
{{ $message }}
@enderror
@error('customer_email')
{{ $message }}
@enderror
@error('customer_phone')
{{ $message }}
@enderror
Status cannot be changed here. Use action buttons on view page.
@error('invoice_date')
{{ $message }}
@enderror
@error('due_date')
{{ $message }}
@enderror
@error('customer_address')
{{ $message }}
@enderror
@error('tax')
{{ $message }}
@enderror
@error('discount')
{{ $message }}
@enderror
@error('notes')
{{ $message }}
@enderror

Invoice Items

@foreach($invoice->items as $index => $item)
@endforeach
Subtotal RM 0.00
Tax RM 0.00
Discount RM 0.00
Total RM 0.00
Cancel
@endif
@endsection @section('scripts') @endsection