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

Purchase RFQ List

Total RFQs
{{ $rfqs->count() }}
Pending
{{ $rfqs->where('status', 'pending')->count() }}
Approved
{{ $rfqs->where('status', 'approved')->count() }}
Rejected
{{ $rfqs->where('status', 'rejected')->count() }}
Purchase RFQ Directory
Add New RFQ
@foreach ($rfqs as $rfq) @endforeach
RFQ No Date Vendor Vendor Ref No RFQ Type Status Actions
{{ $rfq->rfq_no }} {{ \Carbon\Carbon::parse($rfq->rfq_date)->format('d M Y') }} {{ $rfq->customerInfo ? $rfq->customerInfo->company : '-' }} {{ $rfq->vendor_reference_no ?: '-' }} {{ $rfq->rfq_type }} @php $status = $rfq->status ?? 'pending'; $statusClass = $status === 'approved' ? 'bg-success' : ($status === 'rejected' ? 'bg-danger' : 'bg-secondary'); @endphp {{ ucfirst($status) }}
@if(($rfq->status ?? 'pending') === 'pending') @endif
@endsection @section('scripts') @endsection