@extends('layouts.master') @section('title', trans('messages.pos')) @section('content') @php $isRTL = app()->getLocale() === 'ar'; $allowNegativeStock = \App\Models\Setting::get('allow_negative_stock', '0') === '1'; // Get warehouse ID if multiple warehouses mode $warehouseId = null; if (\App\Services\StockManager::isMultipleWarehouses()) { $warehouseId = \App\Services\StockManager::getDefaultWarehouse()?->id; } $cartTotals = $cartTotals ?? ['subtotal' => 0, 'tax' => 0, 'total' => 0, 'discount' => 0]; $cartDiscount = $cartDiscount ?? ['type' => 'fixed', 'value' => 0]; @endphp