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

Contracts

You’ve made {{ $currentMonthContractsCount }} contracts this month

Total Contracts
{{ $contracts->count() }} Contract(s)
Total Value
{{ number_format($currentMonthTotalValue, 2) }} USD
Active Contracts
{{ $activeContracts }} Contract(s)
@foreach ($items as $contract) @endforeach
Contract ID Product Volume Price Value Supplier Status

{{ $contract->contract_id }}

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

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

{{$contract->rfq->processing_type}}

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

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

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

{{ $contract->seller->company->name }}.

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

Active

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

Paused

@elseif($contract->status == 2)

Canceled

@elseif($contract->status == 3)

Completed

@endif
dots
@endsection