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

My Offers

@foreach ($items->sortByDesc('created_at') as $offer) @endforeach
Offer ID Product Name Price Volume Deadline Port Origin Port Destination Counter Offer Status

{{ $offer->ref_id }}

RFQ: {{ $offer->rfq->ref_id }}

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

{{ $offer->rfq->palletization == 'US' ? ' US (40"x48")' : ($offer->rfq->palletization == 'EU/Asia' ? ' EU/Asia' : ($offer->rfq->palletization == 'EU' ? ' EU (800mmx1200mm)' : '')) }}

{{ $offer->price_per_kg }} {{ $offer->rfq->currency }} / {{ $offer->rfq->unit }}

{{ number_format($offer->volume, 2) }} {{ $offer->rfq->unit }}

{{ $offer->offer_exp_date }}

{{ $offer->port_origin }}

{{ $offer->port_destination ?? 'Not set' }}

@if ($offer->counter_offer)

{{ $offer->counter_offer }} {{ $offer->rfq->currency }}

@else

Not set

@endif
@if ($offer->counter_status == 'accepted')

Accepted

@elseif($offer->counter_status == 'rejected')

Rejected

@else @if ($offer->status == 'countered')

Counter

@elseif($offer->status == 'accepted')

Accepted

@elseif($offer->status == 'canceled')

Canceled

@elseif($offer->status == null)

Proposal

@else

Rejected

@endif @endif
dots
@endsection