@php $isEdit = $invoice->exists; $action = $isEdit ? route('admin.invoices.update', $invoice) : route('admin.invoices.store'); $type = $invoice->type ?? 'sales'; $isSales = $type === 'sales'; $taxRate = $tax_rate ?? 14; @endphp
@push('scripts') @include('admin._partials.line_items_recalc', [ 'tableId' => 'itemsTable', 'searchUrl' => route('admin.stock.product-search'), 'taxRate' => $taxRate, 'extraFee' => 'shipping_fee', 'totShippingId' => 'totShipping', ]) @endpush