{{-- Shared Agent Invoice form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $agents, $statuses. --}} @php $app = $item ?? null; $issuedOn = old('issued_on', $app && $app->issued_on ? $app->issued_on->format('Y-m-d') : ''); $dueOn = old('due_on', $app && $app->due_on ? $app->due_on->format('Y-m-d') : ''); @endphp
@error('agent_id') {{ $message }} @enderror
@error('invoice_no') {{ $message }} @enderror
@error('customer_name') {{ $message }} @enderror
@error('amount') {{ $message }} @enderror
@error('issued_on') {{ $message }} @enderror
@error('due_on') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
{{-- Marking an invoice paid moves real money: Wallet nets it off the agent's commission balance, the others record cash/bank arriving. --}}
@error('method') {{ $message }} @enderror
@error('paid_on') {{ $message }} @enderror
{{ ___('label.cancel') }}