@extends('layouts.omd.omd') @section('title', 'Purchase Orders') @section('content')
| PO No | Vendor | Project | Materials | Qty | Total | GST | Grand Total | Status | Action |
|---|---|---|---|---|---|---|---|---|---|
| {{ $order->po_number }} | {{-- Vendor --}}
{{ $order->vendor->user->name ?? '-' }}
{{ $order->vendor->company_name ?? '' }}
|
{{-- Project (FIXED SAFE) --}}
{{ $order->project->title ?? 'N/A' }} | {{-- Materials --}}{{ $order->items->pluck('name')->filter()->implode(', ') ?: '-' }} | {{-- Qty --}}{{ $order->items->sum('quantity') }} | {{-- Subtotal --}}₹ {{ number_format($order->subtotal, 2) }} | {{-- GST --}}{{ $order->gst_percent }}% | {{-- Total --}}₹ {{ number_format($order->total_amount, 2) }} | {{-- Status --}}{{ ucfirst($order->status) }} | {{-- Action --}}View |
| No Purchase Orders Found | |||||||||