@php // تعيين اللغة بناءً على لغة النظام الحالية لضمان استمرارها في طلبات الـ AJAX app()->setLocale($getLocale); @endphp @if (isset($data) && !empty($data) && count($data) > 0) @php $i = 1; @endphp
| # | Product No. | Product | Product Location | Quantity | @can('System setting')Purchase Price (Excl. Tax) | Average Cost | @endcanSelling Price (Excl. Tax) | Ref Number | Client Notes | Added At |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $product->id }} | {{ $product->Product_Code }} | {{-- ملاحظة: اسم المنتج وموقعه سيظلان بالعربية إذا كانا مخزنين بالعربية في الداتابيز --}}{{ $product->product_name }} | {{ $product->Product_Location }} | @if($product->numberofpice <= 0) {{ $product->numberofpice }} / {{ __('home.notavailable') }} @else {{ $product->numberofpice }} @endif | @can('System setting'){{ $product->purchasingـprice }} | {{ $product->average_cost }} | @endcan{{ $product->sale_price }} | {{ $product->refnumber == null ? __('home.notdata') : str_replace("+", " - ", $product->refnumber) }} | {{ $product->notes }} |
@php $count = App\Models\products::where('main_product', $product->main_product)->where('main_product', '!=', 0)->count(); @endphp @if($count > 1) @endif |