@extends('layouts.app') @section('content')

Available RFQs

You have {{ $rfqs->count() }} RFQ suggestions

Active Request for Quotes
{{ $activeRfqs }} RFQ’s
Closed Deals
{{ $closedDeals }} Deals
@foreach ($items as $rfq) @if (!in_array($rfq->id, $sellerOffers)) @else @endif @endforeach
ID Rating Product & Type Volume Port Destination Scout Created Date Deadline Status

{{ $rfq->ref_id }}

@php $ratingText = ' Financial Stability: ' . $buyerRatingsData[$rfq->id]['financial_stability'] . ' | Activity on Platform: ' . $buyerRatingsData[$rfq->id]['activity_on_platform'] . ' | Claim Management: ' . $buyerRatingsData[$rfq->id]['claim_management'] . ' | Reliability: ' . $buyerRatingsData[$rfq->id]['reliability'] . ' | Adaptability: ' . $buyerRatingsData[$rfq->id]['adaptability']; @endphp star @if ($averageRatings[$rfq->id] == '0') N/A @else {{ $averageRatings[$rfq->id] }} @endif

{{ $rfq->defaultProduct->name }}

{{ $rfq->processing_type }}

{{ number_format($rfq->quantity, 2) . ' ' . $rfq->unit ?? 'undefined' }}

{{ $rfq->port_of_unloading ?? 'undefined' }}

profile

Natalie

{{ $rfq->created_at->format('d-m-y') }}

{{ \Carbon\Carbon::parse($rfq->deadline)->format('d-m-y') }}

@if ($rfq->status == '1')

New

@elseif ($rfq->status == '2')

Proposals

@elseif ($rfq->status == '0')

Closed

@else

Canceled

@endif
@if (in_array($rfq->id, $sellerOffers))

Offer posted

@else Respond to RFQ @endif
{{ $rfqs->onEachSide(1)->withQueryString()->links('pagination::bootstrap-4') }}
@endsection