@include('admin.layout.laravel_errors')
Id | Category | Product | Total Quantity | Sale | Quantity Remaining | Latest Purchase Price | Latest Sale Price |
---|---|---|---|---|---|---|---|
{{ $i+1 }} | {{ ($stock->category_data) ? $stock->category_data->name : '--' }} | {{ ($stock->name) ? $stock->name : '--' }} | {{ ($stock->inventory_data) ? $stock->inventory_data->sum('quantity') : '' }} | {{ ($stock->sale_data) ? $stock->sale_data->sum('quantity') : '' }} | {{ number_format($stock->inventory_data->sum('quantity')-$stock->sale_data->sum('quantity')) }} | {{ ($stock->latest_purchase_price->first()) ? number_format($stock->latest_purchase_price->first()->price) : '--' }} | {{ ($stock->latest_purchase_price->first()) ? number_format($stock->latest_purchase_price->first()->sale_price) : '--' }} |