@php // تعيين اللغة بناءً على لغة النظام الحالية لضمان استمرارها في طلبات الـ AJAX app()->setLocale($getLocale); @endphp @if (isset($data) && !empty($data) && count($data) > 0) @php $i = 1; @endphp
| # | {{ __('home.productNo') }} | {{ __('home.product') }} | {{ __('home.productlocation') }} | {{ __('home.quantity') }} | {{ __('home.purchaseproductwithouttax') }} | {{ __('home.average_cost') }} | {{ __('home.sellingproduct without tax') }} | {{ __('home.refnumber') }} | {{ __('home.notesClient') }} | {{ __('home.Add') }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $product->id }} | {{ $product->Product_Code }} | {{-- ملاحظة: اسم المنتج وموقعه سيظلان بالعربية إذا كانا مخزنين بالعربية في الداتابيز --}}{{ $product->product_name }} | {{ $product->Product_Location }} | @if($product->numberofpice <= 0) {{ $product->numberofpice }} / {{ __('home.notavailable') }} @else {{ $product->numberofpice }} @endif | {{ $product->purchasingـprice }} | {{ $product->average_cost }} | {{ $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 |