{{ $product->code }}| Warehouse | Variation | Barcode | Batch No | Cost (LKR) | Retail (LKR) | Wholesale (LKR) | Stock |
|---|---|---|---|---|---|---|---|
| {{ $batch->warehouse->name ?? 'N/A' }} @if($batch->warehouse_id == $product->warehouse_id) Current @endif | {{ $pv->variation_id ? ($pv->variationType->name ?? 'N/A') : 'Default' }} | {{ $pv->barcode ?? 'N/A' }} |
{{ $batch->batch_no }} |
{{ number_format($batch->cost_price, 2) }} | {{ number_format($batch->retail_price, 2) }} | {{ number_format($batch->wholesale_price, 2) }} | {{ number_format($batch->current_stock) }} units |
| No active stock batches found. | |||||||
{{ $product->note }}
| Date | Variation Type | Batch No | Old Pricing (LKR) | New Pricing (LKR) | Changed By |
|---|---|---|---|---|---|
| {{ $history->created_at->format('Y-m-d H:i') }} | {{ ($pv && $pv->variation_id) ? ($pv->variationType->name ?? 'N/A') : 'Default' }} | {{ $pb->batch_no ?? 'N/A' }} |
Cost: {{ number_format($history->old_cost_price, 2) }}
Retail: {{ number_format($history->old_retail_price, 2) }}
Wholesale: {{ number_format($history->old_wholesale_price, 2) }}
|
Cost: {{ number_format($history->new_cost_price, 2) }}
Retail: {{ number_format($history->new_retail_price, 2) }}
Wholesale: {{ number_format($history->new_wholesale_price, 2) }}
|
{{ $history->user->name ?? 'System' }} |
| No price history found. | |||||
| Date | PR Code | Warehouse | Supplier | Variation / Batch | Qty Returned | Status |
|---|---|---|---|---|---|---|
| {{ date('Y-m-d', strtotime($returnItem->purchaseReturn->return_date)) }} |
@can('view_purchase_return_management')
{{ $returnItem->purchaseReturn->pr_code }}
@else
{{ $returnItem->purchaseReturn->pr_code }}
@endcan
|
{{ $returnItem->purchaseReturn->warehouse->name ?? 'N/A' }} | {{ $returnItem->purchaseReturn->supplier->name ?? 'N/A' }} |
{{ $returnItem->variationType->name ?? 'Default' }}
@if($returnItem->batch)
Batch: {{ $returnItem->batch->batch_no }}
@endif
|
-{{ number_format($returnItem->qty, 0) }} | @if($returnItem->purchaseReturn->status == \App\Models\PurchaseReturn::SENT) Sent @else Pending @endif |
| No purchase returns recorded for this product. | ||||||
| Date | Reference | From | To | Variation / Batch | Qty | Status |
|---|---|---|---|---|---|---|
| {{ date('Y-m-d', strtotime($transfer->transfer_date)) }} |
@can('view_transfers_management')
{{ $transfer->reference_no }}
@else
{{ $transfer->reference_no }}
@endcan
|
{{ $transfer->fromWarehouse->name ?? 'N/A' }} | {{ $transfer->toWarehouse->name ?? 'N/A' }} |
{{ $transferItem->variationType->name ?? 'Default' }}
@if($transferItem->batch)
Batch: {{ $transferItem->batch->batch_no }}
@endif
|
{{ number_format($transferItem->quantity, 0) }} | @if($transfer->transfer_status == \App\Models\Transfer::COMPLETED) Completed @else Pending @endif |
| No internal transfers recorded. | ||||||
| {{ $pv->variation_id ? ($pv->variationType->name ?? 'N/A') : 'Product' }} | LKR {{ number_format($pv->price_retail, 2) }} |