@extends('layouts.app') @section('title', 'Stock Batches') @section('content')

Stock Batches

← Drug List + Receive Stock
@forelse($batches as $batch) @empty @endforelse
Batch # Drug Supplier Qty Received Qty Remaining Cost Price Sell Price Expiry Status
{{ $batch->batch_number }} {{ $batch->drugItem->name ?? '-' }} {{ $batch->supplier->name ?? '-' }} {{ number_format($batch->quantity_received) }} {{ number_format($batch->quantity_remaining) }} {{ number_format($batch->cost_price) }} {{ number_format($batch->selling_price) }} @if($batch->expiry_date) {{ $batch->expiry_date->format('d M Y') }} @else - @endif @if($batch->is_expired) Expired @elseif($batch->is_expiring_soon) Expiring Soon @elseif($batch->quantity_remaining <= 0) Depleted @else Active @endif
No stock batches found.
{{ $batches->links() }}
@endsection