@extends('layouts.app') @section('title', 'Product Purchase - EDUC Pharmacy') @section('content')

Product Purchase Management

@if ($errors->any()) @endif
New Purchase Order
@csrf
@error('supplier_id')
{{ $message }}
@enderror
@error('purchase_date')
{{ $message }}
@enderror
Purchase reference number
Products
0
0
MWK 0.00
MWK 0.00
Recent Purchases
@foreach ($recentPurchases as $purchase) @endforeach
Reference No Date Supplier Products Total Amount Status Actions
{{ $purchase->reference_no }} {{ $purchase->purchase_date->format('d-m-Y') }} {{ $purchase->supplier->name ?? 'N/A' }} {{ $purchase->items->count() }} items MWK {{ number_format($purchase->grand_total, 2) }} {{ ucfirst($purchase->status) }} View
@endsection