@extends('layouts.buyer') @section('title', 'My Requirements') @section('buyer-content')
Total Requirements

{{ $rfqs->total() }}

Open Requirements

{{ $rfqs->where('status', 'open')->count() }}

Total Quotes

{{ $rfqs->sum('quotes_count') ?? 0 }}

Closed

{{ $rfqs->where('status', 'closed')->count() }}

All Requirements
@forelse($rfqs as $rfq)
{{ $rfq->title }}

{{ Str::limit($rfq->description, 100) }}

{{ $rfq->quantity ?? 'N/A' }} units @if($rfq->category) {{ $rfq->category->name }} @endif
{{ $rfq->quotes_count ?? 0 }}
QUOTES
{{ ucfirst($rfq->status) }}
{{ $rfq->created_at->format('d M Y') }}
@empty
No Requirements Posted Yet

Post your first buying requirement to start receiving quotes from verified suppliers.

Post Your First Requirement
@endforelse @if($rfqs->hasPages())
{{ $rfqs->links() }}
@endif
@endsection