@extends('layouts.dashboard.adminapp') @section('title', 'Purchase Order List') @section('styles') @endsection @section('content')

UEPL | Purchase Order List

day, 00 month 0000
@foreach ($purchaseOrders as $po) @endforeach
ID Purchase Order No. Date Vendor Name GRN No. Grand Total Status Actions
{{ $po->id }} {{ $po->purchase_order_no }} {{ \Carbon\Carbon::parse($po->purchase_order_date)->format('d M Y') }} {{-- Show Vendor Name (using relationship if exists, fallback to id) --}} {{ $po->vendor ? $po->vendor->company : $po->company_name }} {{ $po->grn_no }} ₹{{ number_format($po->grand_total, 2) }} @if ($po->status == 'Inactive') Inactive @else Active @endif
@endsection @section('scripts') @endsection