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

Master Contracts

You’ve made {{ $masterContractsThisMonth }} master contracts this month

Total Master Contracts
{{ $contracts->count() }} Contract(s)
Total Master Value
{{ number_format($totalMasterValue, 2) }} USD
Active Master Contracts
{{ $activeMasterContracts }} Contract(s)
@foreach ($contracts as $contract) @endforeach
Contract ID Product No. of Contract's' Volume AVG Price Value Supplier Status

{{ $contract->contract_id }}

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

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

{{ $contract->contract_count }}

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

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

{{ number_format($contract->master_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