{!! Form::open(['url' => action([\Modules\Repair\Http\Controllers\RepairAppointmentController::class, 'storeInvoice'], [$appointment->id]), 'method' => 'post', 'id' => 'appointment_invoice_form']) !!}

Create Invoice — {{ $appointment->appointment_no }}

@if(!empty($existing_invoice))
Invoice {{ $existing_invoice->invoice_no }} already exists for this job sheet. @if(!empty($existing_invoice->invoice_token)) @endif
@endif
Vehicle: {{ $appointment->vehicle_no }} @if($appointment->vehicle_make_model) ({{ $appointment->vehicle_make_model }}) @endif
Customer: {{ $appointment->customer_name }} ({{ $appointment->customer_mobile }})
@if(!empty($appointment->jobSheet))
Job Sheet: {{ $appointment->jobSheet->job_sheet_no }} · Expected Cost: {{ number_format($expected_cost, 2) }}
@endif
{!! Form::label('inv_amount', 'Invoice Amount (Expected Cost):*') !!}
{!! Form::label('inv_date', __('messages.date') . ':*') !!}
{!! Form::label('inv_payment_status', __('sale.payment_status') . ':*') !!}
{!! Form::label('inv_payment_method', __('lang_v1.payment_method') . ':') !!}
{!! Form::label('inv_paid_amount', 'Paid Amount:') !!}
{!! Form::label('inv_layout_id', __('invoice.invoice_layout') . ':') !!} {!! Form::select('invoice_layout_id', $invoice_layouts ?? [], $default_layout_id ?? null, ['id' => 'inv_layout_id', 'class' => 'form-control']) !!}
{!! Form::label('inv_notes', __('lang_v1.sell_note') . ':') !!}
@if(!empty($appointment->customer_mobile)) @endif
{!! Form::close() !!}