@php $note = $purchaseBill ?? null; $isEdit = (bool) $note; $formAction = $isEdit ? route('admin.purchase-bills.update', $note) : route('admin.purchase-bills.store'); $labels = $docLabels; $lineItems = $lineItems ?? [['item_name' => '', 'description' => '', 'unit' => 'NOS', 'quantity' => 1, 'rate' => 0, 'discount_percent' => 0, 'tax_rate' => 0]]; @endphp
@push('scripts') @include('partials.admin.invoice-form-script') @endpush