Orders
@foreach($categories as $cat) @endforeach
Syncing live inventory data...
Medicine Quantity Actions @forelse($medicines as $m)
{{ strtoupper(substr($m->name, 0, 1)) }}

{{ $m->name }}

{{ $m->category }} | {{ $m->strength }}

{{ $m->generic_name ?? '—' }}

@php $isExpired = $m->expire_date && $m->expire_date->isPast(); $isNearExpiry = $m->expire_date && !$isExpired && $m->expire_date->diffInMonths(now()) < 3; @endphp

Exp: {{ $m->expire_date ? $m->expire_date->format('d M, Y') : 'N/A' }}

@php $low = $m->stock_quantity <= $m->min_stock_level @endphp {{ $m->stock_quantity }} @if($low)
@endif
@empty @endforelse
@if($medicines->hasPages())
{{ $medicines->links() }}
@endif
@if($selectedMedicineId) @php $med = \App\Models\Medicine::find($selectedMedicineId); @endphp

Adjusting Stock For

{{ $med?->name }}

Current Stock

{{ $med?->stock_quantity }}

@endif