@extends('layouts.admin') @section('title', 'Edit Invoice') @section('page-title', 'Edit Invoice') @section('breadcrumbs') Invoices chevron_right {{ $invoice->invoice_number }} chevron_right Edit @endsection @section('content')
@csrf @method('PUT')

Invoice Header

PDF and on-screen invoice layout for this document.

Billed To (Client) *

search

{{ $invoice->customer->company ?? $invoice->customer->name ?? '' }}

@if($invoice->customer && (($invoice->customer->image && \Illuminate\Support\Facades\Storage::disk('public')->exists($invoice->customer->image)) || ($invoice->customer->logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($invoice->customer->logo)))) {{ $invoice->customer->name }} @else business @endif
@if($invoice->customer) @if($invoice->customer->address)

{{ $invoice->customer->address }}

@endif @php $cityStateZip = trim(($invoice->customer->city ?? '') . ', ' . ($invoice->customer->state ?? '') . ' ' . ($invoice->customer->zip ?? ''), ', '); @endphp @if($cityStateZip)

{{ $cityStateZip }}

@endif @if($invoice->customer->phone)

{{ $invoice->customer->phone }}

@endif @if($invoice->customer->email)

{{ $invoice->customer->email }}

@endif @endif

Invoice Items

Item Details Qty Rate Tax % Amount

Notes

Terms & Conditions

Subtotal $0.00
Tax Amount $0.00
Total $0.00

Payment Method

@php $paymentMethod = old('payment_method', $invoice->payment_method); if ($paymentMethod === 'online') { echo 'Online Payment'; } elseif ($paymentMethod && str_starts_with($paymentMethod, 'bank_')) { $bankId = str_replace('bank_', '', $paymentMethod); $bankAccount = \App\Models\BankAccount::find($bankId); if ($bankAccount) { echo 'Bank Transfer: ' . $bankAccount->bank_name . ' - ' . $bankAccount->account_name; } else { echo 'Bank Transfer'; } } else { echo 'No payment method selected. Click "Add Payment Method" to select.'; } @endphp

Signature

@if(isset($signatures) && $signatures->count() > 0)

Select a signature to preview

@endif
Cancel
@endsection