{{-- Shared Invoice form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $customers, $bookings, $statuses. --}} @php $issueDate = old('issue_date', $item && $item->issue_date ? $item->issue_date->format('Y-m-d') : ''); $dueDate = old('due_date', $item && $item->due_date ? $item->due_date->format('Y-m-d') : ''); @endphp
@error('invoice_no') {{ $message }} @enderror
{{ ___('admin.optional_select_a_booking_to_fill_customer_and_amount_a_531b40') }} @error('booking_id') {{ $message }} @enderror
{{ ___('admin.links_this_invoice_to_a_saved_customer_account_1df29e') }} @error('customer_id') {{ $message }} @enderror
{{ ___('admin.printed_on_the_invoice_this_can_differ_from_the_saved_c_e58182') }} @error('customer_name') {{ $message }} @enderror
@error('issue_date') {{ $message }} @enderror
@error('due_date') {{ $message }} @enderror
@error('amount') {{ $message }} @enderror
{{-- Status and paid amount come from the receipts recorded against this invoice, so they can never disagree with the money received. --}}
{{ admin_label(ucfirst($item->status ?? 'unpaid')) }} @if($item) {{ ___('admin.paid_dc9d45') }} {{ currency_symbol() }}{{ number_format($item->paid_amount, 2) }} {{ ___('admin.due_7eb307') }} {{ currency_symbol() }}{{ number_format($item->dueAmount(), 2) }} @endif
{{ ___('admin.set_automatically_from_this_invoice_s_receipts_0f1ecd') }}
{{ ___('label.cancel') }}
@push('scripts') @endpush