@php /* Dynamic min-width based on which conditional columns are actually rendered. Without this, hidden columns (Service staff, Warranty, Tax+PriceIncTax when inline_tax is off, Unit Price/Discount when permission denied) leave wasted space and force a horizontal scroll. */ $dst_fixed_cols = 40 + 220 + 160 + 110 + 130 + 140 + 110 + 50; // #, Product, Qty, UnitPrice, Discount, PriceIncTax, Subtotal, X if (session()->get('business.enable_inline_tax') == 1) { $dst_fixed_cols += 80; // Tax } else { $dst_fixed_cols -= 140; // Price inc. tax also hidden when inline tax is off } if (!empty($pos_settings['inline_service_staff'])) $dst_fixed_cols += 140; if (!empty($common_settings['enable_product_warranty'])) $dst_fixed_cols += 140; if (!auth()->user()->can('edit_product_price_from_sale_screen')) $dst_fixed_cols -= 110; if (!auth()->user()->can('edit_product_discount_from_sale_screen')) $dst_fixed_cols -= 130; @endphp