@php $money = fn ($minor) => config('care.billing.currency').' '.number_format($minor / 100, 2); @endphp

{{ $drug->name }}

Stock: {{ $drug->stockOnHand() }} {{ $drug->unit }} · {{ $money($drug->unit_price_minor) }}

@if ($canManage)Edit@endif
@if ($canManage)

Receive stock

@csrf
@endif

Batches

@forelse ($drug->batches as $batch)
{{ $batch->batch_number }} · {{ $batch->quantity_on_hand }} on hand {{ $batch->expiry_date?->format('Y-m-d') ?? 'No expiry' }}
@empty

No batches received.

@endforelse