Manage drug catalog and information
Upload Errors:
| Name | Dosage Form | Strength | Price (₦) | Qty | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $drug->name }} | {{ $drug->dosage_form }} | {{ $drug->strength }} {{ $drug->unit }} | @php $latestStock = $drug->pharmacyStocks ->where('quantity', '>', 0) ->whereNotNull('unit_price') ->sortByDesc('created_at') ->first(); @endphp @if($latestStock && $latestStock->unit_price) {{ number_format($latestStock->unit_price, 2) }} @else - @endif | @php $totalQuantity = $drug->pharmacyStocks->sum('quantity') ?? 0; $availableQuantity = $drug->pharmacyStocks->filter(function($stock) { return !$stock->expiry_date || $stock->expiry_date->isFuture(); })->sum('quantity') ?? 0; @endphp @if($totalQuantity > 0) {{ number_format($availableQuantity) }} @if($totalQuantity != $availableQuantity) ({{ number_format($totalQuantity) }} total) @endif units @else No stock @endif | {{ $drug->is_active ? 'Active' : 'Inactive' }} | |
| No drugs found. | ||||||
Upload a CSV file with the following columns (header row optional):
Required Drug Fields:
Optional Fields:
Inventory Fields (Optional):
Example (with inventory):
Panadol,paracetamol,GlaxoSmithKline,Pain Reliever,Tablet,500mg,mg,Common pain killer,true,true,100,10,50.00,2025-12-31,BATCH001,Supplier ABC,2024-01-15,Initial stock
Example (drug only, no inventory):
Panadol,paracetamol,GlaxoSmithKline,Pain Reliever,Tablet,500mg,mg,Common pain killer,true,true
💡 Tip: If quantity is provided, inventory will be automatically created for the drug!