{{ app()->setLocale($getLocale) }} @if (isset($data) && $data->isNotEmpty())
@can('System setting') @endcan @foreach ($data as $product) @can('System setting') @endcan @endforeach
# {{ __('home.productNo') }} {{ __('home.product') }} {{ __('home.branch') }} {{ __('home.productlocation') }} {{ __('home.quantity') }}{{ __('home.purchaseproductwithouttax') }} {{ __('home.average_cost') }}{{ __('home.sellingproduct without tax') }} {{ __('home.refnumber') }} {{ __('home.notesClient') }} {{ __('home.Add') }}
{{ $loop->iteration }} {{ $product->Product_Code }} {{ $product->product_name }} {{ $product->branch->name ?? '**' }} {{ $product->Product_Location }} @if($product->numberofpice <= 0) {{ __('home.notavailable') }} @else {{ $product->numberofpice }} @endif {{ number_format($product->purchasingـprice, 2) }} {{ number_format($product->average_cost, 2) }}{{ number_format($product->sale_price, 2) }} {{ $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
@else
{{ __('home.notfounddata') }}
@endif