@php $extraColumns = 0; if($generalSettings->allow_reserve_price){ $extraColumns += 1; } if($generalSettings->enable_wholeselling){ $extraColumns += 2; } @endphp @if($generalSettings->allow_reserve_price) @endif @if($generalSettings->enable_wholeselling) @endif @foreach($products as $index => $product) @if($generalSettings->allow_reserve_price) @endif @if($generalSettings->enable_wholeselling) @endif @endforeach
PRODUCTS
S/N CATEGORY PRODUCT NAME PRODUCT CODE IN STOCK UNITS MINIMUM QTY BUYING PRICE AVERAGE BUYING PRICE SELLING PRICERESERVE PRICEWHOLESALE UNIT PRICE WHOLESALE RESERVE PRICE
{{ $index + 1 }} {{ $product->businessproduct?->category?->name ?? '-' }} {{ auth()->user()->branch_id === 0 ? $product->product_name. ' - '. auth()->user()->branch->name : $product->product_name }} {{ $product->product_code ?? '' }} {{ $product->quantity }} {{ $product->unit?->symbol ?? '-' }} {{ $product->minimum_quantity }} {{ number_format($product->stock->buying_price) }} {{ number_format($product->stock->average_buyingprice) }} {{ number_format($product->selling_price) }}{{ number_format($product->reserve_price) }}{{ number_format($product->wholesale_unitprice) }} {{ number_format($product->wholesale_reserveprice) }}