{{ app()->setLocale($getLocale) }} @if (isset($data) && $data->isNotEmpty())
| # | {{ __('home.productNo') }} | {{ __('home.product') }} | {{ __('home.branch') }} | {{ __('home.productlocation') }} | {{ __('home.quantity') }} | @can('System setting'){{ __('home.purchaseproductwithouttax') }} | {{ __('home.average_cost') }} | @endcan{{ __('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 | @can('System setting'){{ number_format($product->purchasingŁprice, 2) }} | {{ number_format($product->average_cost, 2) }} | @endcan{{ 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
|