@extends('layouts.app') @section('content')
Manage expired batches: acknowledge, dispose, or recover value
| Product | Batch | Expired | Qty | Cost | Supplier | Action |
|---|---|---|---|---|---|---|
|
{{ $batch->name_local ?: $batch->product_name }}
{{ $batch->barcode }}
|
{{ $batch->batch_name ?: 'No batch name' }}
#{{ $batch->price_detail_id }}
|
{{ \Carbon\Carbon::parse($batch->expiry_date)->format('Y-m-d') }}
{{ $daysExpired }} {{ $daysExpired === 1 ? 'day' : 'days' }} ago
|
{{ number_format((float) $batch->qty, 3) }} |
Rs. {{ number_format((float) $batch->unit_cost, 2) }}/ea
Total: Rs. {{ number_format($totalCost, 2) }}
|
{{ $batch->supplier_name ?: '-' }} |
|
| Reference | Product | Qty | Outcome | Cost | Recovered | Loss | Resolved |
|---|---|---|---|---|---|---|---|
| {{ $item->reference_number }} |
{{ $item->product?->name_local ?: $item->product?->name }}
{{ $item->batch_name }}
|
{{ number_format($item->qty, 3) }} | {{ $outcomeLabels[$item->outcome_type] ?? $item->outcome_type }} | Rs. {{ number_format($item->total_cost, 2) }} | Rs. {{ number_format($item->refund_value, 2) }} @if($recoveryPct > 0) ({{ $recoveryPct }}%) @endif | Rs. {{ number_format($loss, 2) }} | {{ $item->resolved_at?->format('Y-m-d H:i') }} |