{{-- Shared Visa Application form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $application (null on create), $customers, $packages, $visaTypes, $documentStatuses, $statuses. --}} @php $app = $application ?? null; $dateValue = fn ($field) => old($field, $app && $app->$field ? $app->$field->format('Y-m-d') : ''); @endphp
@error('application_no') {{ $message }} @enderror
{{-- Not the same person as the customer: one customer often files for a whole family, and the embassy only ever sees the traveller's name. --}} {{ ___('admin.whose_passport_goes_to_the_embassy_filled_from_the_cust_934d89') }} @error('applicant_name') {{ $message }} @enderror
@error('country') {{ $message }} @enderror
@error('visa_type') {{ $message }} @enderror
{{ ___('admin.who_books_and_pays_invoices_and_the_portal_follow_this__8d0328') }} @error('customer_id') {{ $message }} @enderror
@error('package_id') {{ $message }} @enderror
{{-- Ties the case back to the published catalogue entry, which is what makes per-service revenue reporting possible. Picking one fills the two fee fields below from the catalogue. --}}
@error('visa_service_id') {{ $message }} @enderror
@error('govt_fee') {{ $message }} @enderror
@error('service_fee') {{ $message }} @enderror
@error('applied_date') {{ $message }} @enderror
@error('appointment_date') {{ $message }} @enderror
{{-- A visa only has an expiry once it has been issued, so the field stays out of the way until the case is Approved. Filling it earlier put cases that were never issued into Expiry Management. --}}
{{ ___('admin.set_once_the_visa_is_issued_available_when_the_status_i_40f20d') }} @error('expiry_date') {{ $message }} @enderror
@error('documents_status') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
{{-- Payment is its own track: `status` is the embassy lifecycle. Marking it Paid raises the invoice + receipt and credits any marketplace vendor. --}}
@error('payment_status') {{ $message }} @enderror
{{ ___('vendor.Fee due') }}: {{ currency_symbol() }}{{ number_format(($app ?? null)?->totalFee() ?? 0, 2) }}
{{ ___('label.cancel') }}
@push('scripts') @endpush