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

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

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

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

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

Product

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

Type

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

Processing Type

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

Description

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

Issue Date

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

Exp. Date

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

Port Origin

{{ $contract->port_origin }}

Port Destination

{{ $contract->port_destination }}

Incoterm

{{ $contract->incoterm }}

@forelse ($contract->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
@csrf
No file chosen
@foreach ($posFiles as $file) @endforeach

Files

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

{{ $file->file_name }}

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

Price offered (in {{ $contract->currency }})

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

Volume (in {{ $contract->unit }})

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

Payment term

{{ $contract->payment_term }}

Total

{{ number_format($contract->total_price, 2) }} {{ $contract->currency }}
@csrf
@if ($contract->status == 0) Pause Contract Cancel Contract @elseif($contract->status == 1) Unpause Contract Cancel Contract @elseif($contract->status == 2) Canceled Contract @elseif($contract->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