Purchase Management (PO)

Procure costumes, jewelry, and props from weavers and suppliers with automated asset code generation.

@if(session()->has('success'))
{{ session('success') }}
@endif
@forelse($purchases as $po) @empty @endforelse
PO Number Supplier Date Items & Qty Total Amount Status Actions
{{ $po->purchase_number }} {{ $po->supplier->name }} {{ $po->supplier->city ?? 'Kerala' }} @if($po->supplier->gstin) GST: {{ $po->supplier->gstin }} @endif {{ $po->purchase_date->format('d M Y') }} @foreach($po->items as $item) {{ $item->quantity }}× {{ $item->product->name }} @endforeach ₹{{ number_format($po->total_amount, 2) }} {{ $po->status }}
@if($po->status !== 'received') @else Received @endif
No purchase orders created yet.
{{ $purchases->links() }}
@if($showCreateModal)

New Purchase Order

@error('supplierId') {{ $message }} @enderror
@error('productId') {{ $message }} @enderror
@endif @if($showViewModal && $viewingPurchase)

Purchase Order: {{ $viewingPurchase->purchase_number }}

{{ $viewingPurchase->status }}

Order Date: {{ $viewingPurchase->purchase_date->format('d M Y') }}

Supplier / Vendor Details {{ $viewingPurchase->supplier->name }} @if($viewingPurchase->supplier->contact_person) Contact: {{ $viewingPurchase->supplier->contact_person }} @endif Phone: {{ $viewingPurchase->supplier->phone }} @if($viewingPurchase->supplier->gstin) Supplier GSTIN: {{ $viewingPurchase->supplier->gstin }} @endif @if($viewingPurchase->supplier->pan_number) Supplier PAN: {{ $viewingPurchase->supplier->pan_number }} @endif {{ $viewingPurchase->supplier->address }}, {{ $viewingPurchase->supplier->city }}, {{ $viewingPurchase->supplier->state ?? 'Kerala' }}
Order Financials
Subtotal: ₹{{ number_format($viewingPurchase->subtotal, 2) }}
Tax Amount: ₹{{ number_format($viewingPurchase->tax_amount ?? 0, 2) }}
Total Amount: ₹{{ number_format($viewingPurchase->total_amount, 2) }}
@foreach($viewingPurchase->items as $item) @endforeach
Item / Product SKU Quantity Unit Cost Total
{{ $item->product->name }} {{ $item->product->sku }} {{ $item->quantity }} ₹{{ number_format($item->unit_cost, 2) }} ₹{{ number_format($item->total_amount, 2) }}
@endif