@php $isEdit = $po->exists; $action = $isEdit ? route('admin.purchase-orders.update', $po) : route('admin.purchase-orders.store'); $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