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

Contract ID: {{ $selectedContract->contract_id }}

RFQ ID: {{ $selectedContract->rfq->ref_id }}
RFQ ID: {{ $selectedContract->rfq->ref_id }}

{{ number_format($selectedContract->total_price, 2) }} {{ $selectedContract->currency }}

@php $expirationDate = \Carbon\Carbon::parse($selectedContract->expiration_date); $daysUntilExpiration = now()->diffInDays($expirationDate, false); @endphp

Product

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

Type

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

Processing Type

{{ $selectedContract->processing_type ?? 'Undefined' }}

Description

{{ $selectedContract->description ?? 'Undefined' }}

Issue Date

{{ \Carbon\Carbon::parse($selectedContract->created_at)->format('Y-m-d') }}

Exp. Date

{{ $selectedContract->expiration_date }} @if ($daysUntilExpiration > 0) - expires in {{ $daysUntilExpiration }} days @elseif($daysUntilExpiration == 0) - expires today @else - expired @endif

Port Origin

{{ $selectedContract->port_origin }}

Port Destination

{{ $selectedContract->port_destination }}

Incoterm

{{ $selectedContract->incoterm }}

@forelse ($selectedContract->pos as $po) @empty @endforelse
POs Volume Arrival Date Status

PO {{ $po->po_id }}

{{ $po->volume_kg }} Kg

{{ $po->arrival_date }}

@if ($po->status == 0)

In progress

@elseif($po->status == 1)

Delivered

@else

Canceled

@endif

There are no POS yet.

Files

@foreach ($selectedContract->files as $file)
file icon

{{ $file->file_name }}

{{ $file->file_size }}MB
@endforeach
Summary

Price offered (in {{ $selectedContract->currency ?? $selectedContract->rfq->currency }})

{{ number_format($selectedContract->price_per_kg, 2) }}

Volume (in {{ $selectedContract->unit ?? $selectedContract->rfq->unit }})

{{ number_format($selectedContract->volume_kg, 2) }}

Payment term

{{ $selectedContract->payment_term }}

Total

{{ number_format($selectedContract->total_price, 2) }} {{ $selectedContract->currency }}
@csrf
@if ($selectedContract->status == 0) Pause Contract Cancel Contract @elseif($selectedContract->status == 1) Unpause Contract Cancel Contract @elseif($selectedContract->status == 2) Canceled Contract @elseif($selectedContract->status == 3) Completed Contract @endif

By clicking on “Accept Offer”, you agree to our
Terms and Conditions of Use.

@if (isset($po)) @else @endif @endsection