Batch Information
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
{{ $batch->batch_number }}
{{ $batch->supplier->name ?? 'N/A' }}
{{ $batch->warehouse_location ?? 'Default' }}
{{ $batch->manufacture_date ? $batch->manufacture_date->format('Y-m-d') : 'N/A' }}
@if($batch->expiry_date)
{{ $batch->expiry_date->format('Y-m-d') }}
@if($batch->expiry_date < now())
Expired
@elseif($batch->expiry_date <= now()->addDays(30))
Expiring Soon
@endif
@else
No expiry
@endif
${{ number_format($batch->batch_cost_price, 2) }}
${{ number_format($batch->batch_sale_price, 2) }}
{{ $batch->initial_quantity }}
{{ $batch->current_quantity }}
@if($batch->initial_quantity > 0)
@endif
{{ $batch->notes }}
{{ $batch->creator->name ?? 'System' }}
{{ $batch->created_at->format('Y-m-d H:i:s') }}
Batch Statistics
Total Movements:
{{ $batchStats['total_movements'] }}
Total Stock In:
{{ $batchStats['total_in'] }}
Total Stock Out:
{{ $batchStats['total_out'] }}
Remaining Stock:
{{ $batchStats['remaining_quantity'] }}
Stock Usage:
{{ number_format($batchStats['remaining_percentage'], 1) }}%
Quick Actions
Edit Batch
@if($batch->current_quantity > 0)
@endif
Recent Stock Movements
| Date | Type | Quantity | Before | After | Reason | User |
|---|---|---|---|---|---|---|
| {{ $movement->created_at->format('Y-m-d H:i') }} | @if($movement->movement_type == 'in') IN @else OUT @endif | {{ $movement->quantity }} | {{ $movement->quantity_before }} | {{ $movement->quantity_before + $movement->quantity }} | {{ $movement->reason }} | {{ $movement->user->name ?? 'System' }} |
| No stock movements found | ||||||