@php use SimpleSoftwareIO\QrCode\Facades\QrCode; @endphp @php $url = route('get.invoice', $shipment); $qr_code = QrCode::size(100)->generate($url); @endphp
  User Image   {{ $qr_code }}
TELEPHONE:+233-302-668281, 678971, 668464
P.O. Box 1017
< !-- -->
Inv. No: GC: {{ strtoupper($shipment->invoice_number) }}
Entry No:
FAX: +233-302-667058
Accra
Date: {{ date('d - M - Y', strtotime($shipment->invoice_date)) }}
{{-- @if ($contract->consignee->id != 7 && $shipment->novated == 'no') --}} {{-- @else
Messrs: {{ strtoupper($contract->consignee->name) }}
@php $string = $consignee_address->address; echo wordwrap($string, 40, '
', true); @endphp
@endif --}}
Messrs: {{ strtoupper($contract->consignee->name) }}
@php $string = $contract->consignee->address; echo wordwrap($string, 40, '
', true); @endphp
"PAYMENT TO BE MADE BY {{ $contract->consignee->name }} ON BEHALF OF {{ $contract->consignee->name }}
IN ACCORDANCE WITH THE NOVATED CONTRACTS."

{{ strtoupper($contract->consignee->name) }}
@php $string = $contract->consignee->address; echo wordwrap($string, 40, '
', true); @endphp
{{-- $contract->country->name --}}
Drs. To: Cocoa Marketing Co. (Ghana) Limited
@php $ch_mk_num = []; foreach ($all_contracts as $ic) { $ch_mk_num[] = $ic->contract->mk_number; $ch_date_declared[] = $ic->contract->date_declared; $ch_type[] = $ic->type; } $allValuesAreTheSame = count(array_unique($ch_mk_num)) === 1; $allDatesAreTheSame = count(array_unique($ch_date_declared)) === 1; //dd($allValuesAreTheSame); @endphp @if ($allValuesAreTheSame) @else @endif @if ($allValuesAreTheSame) @else @endif @endif
{{ strtoupper($contract->sales_advice->product_quality->quality) }} GHANA RAW COCOA BEANS    Contract No: @php $fc = $all_contracts->where('type', 'range')->first(); $lc = $all_contracts->where('type', 'range')->last(); @endphp @if (collect($ch_type)->search('range') !== false)     {{ strtoupper($fc->contract->number) }} - {{ substr($lc->contract->number, -2) }} MK ({{ strtoupper($ic->contract->mk_number) }})
@endif @if (collect($ch_type)->search('single') !== false) @foreach ($all_contracts->where('type', 'single') as $ic)                               {{ strtoupper($ic->contract->number) }} MK ({{ strtoupper($ic->contract->mk_number) }})
@endforeach @endif
   Contract No: @foreach ($all_contracts->where('type', 'single') as $ic)   {{ strtoupper($ic->contract->number) }} MK ({{ strtoupper($ic->contract->mk_number) }}) DATED {{ date('d - M - Y', strtotime($ic->contract->sales_advice->advice_date)) }}
@endforeach
{{ strtoupper($shipment->additional_remarks) }}
{{ strtoupper($shipment->remarks) }}     Contract date: {{ date('d - M - Y', strtotime($contract->contract_date)) }}
@if ($shippingmode->id == 1) PACKED IN NEW SOUND CLEAN STANDARD JUTE BAGS @else {{ strtoupper($shippingmode->name) }}  
 
@if ($first_contract->shippingmode->id != 3 && $first_contract->shippingmode->id != 4) @endif

SHIPPING MARKS

@endif

 

 

 

 

@if ($first_contract->shippingmode->id != 3 && $first_contract->shippingmode->id != 4)

GCB/POG COCOA PRODUCE OF GHANA

@if ($allValuesAreTheSame && $allDatesAreTheSame) {{-- --}} @else @foreach ($shipment->multi_contracts as $ic) @php $alphabet = range('A', 'Z'); @endphp @endforeach @endif @if ($allValuesAreTheSame && $allDatesAreTheSame) {{-- expr --}} @else @endif {{-- @if ($shipment->invoice_date < '2023-09-08' || $shipment->invoice_date > '2023-11-20') --}} {{-- @else @endif --}}
MV: {{ strtoupper($shipment->vessel->name) }}
From: {{ strtoupper($loading_port_name) }}                         To: {{ strtoupper($destination_port_name) }} ({{ strtoupper($contract->country->name) }})
B/L No.: {{ strtoupper($shipment->bill_of_laden_number) }}                         Date: {{ date('d - M - Y', strtotime($shipment->bill_of_laden_date)) }}
 
{{ $total_bags }} Bags of 62.5 Kgs Net Each
  = {{ number_format($all_contracts->sum('tonnage_shipped'), 4) }} Tonnes
  @ US$ {{ number_format($ic->contract->sales_advice->uk_cif_price, 2) }} @if ($shipment->multi_contracts->first()->contract->sales_advice->lid_id != 1) Per Tonne (C.I.F. UK Port Price with LID of ${{ $lid }} ) @else Per Tonne (C.I.F. UK Port Price ) @endif
  Less ${{ number_format($discount, 4) }} Per Tonne (UK Freight) of £{{ number_format($uk_frieght, 2) }} @ US$ {{ number_format($ex_rate_dl, 4) }} = £ 1
  = US $ {{ number_format($ic->c_and_i, 4) }} Per Tonne Net
 C & I   {{strtoupper($first_contract->destinationport->name)}}                                               US ${{number_format($ic->c_and_i_gross,4)}}
 
({{ $alphabet[$loop->index] }})        {{ $ic->tonnage_shipped * 16 }} Bags of 62.5 Kgs Net Each
  = {{ number_format($ic->tonnage_shipped, 4) }} Tonnes
  @ US$ {{ number_format($ic->contract->sales_advice->uk_cif_price, 2) }} @if ($shipment->multi_contracts->first()->contract->sales_advice->lid_id != 1) Per Tonne (C.I.F. UK Port Price with LID of ${{ $lid }} ) @else Per Tonne (C.I.F. UK Port Price ) @endif
  Less ${{ number_format($discount, 4) }} Per Tonne (UK Freight) of £{{ number_format($uk_frieght, 2) }} @ US$ {{ number_format($ex_rate_dl, 4) }} = £ 1
  = US $ {{ number_format($ic->c_and_i, 4) }} Per Tonne Net
                                                                                        US ${{ number_format($ic->c_and_i_gross, 4) }}
 
 TOTAL C & I VALUE @php @endphp                      US ${{ number_format($shipment->multi_contracts->sum('c_and_i_gross'), 4) }} TOTAL C & I VALUE OF (@foreach ($shipment->multi_contracts as $ic) @php $alphabet = range('A', 'Z'); @endphp {{ $alphabet[$loop->index] }} @if (!$loop->last) + @endif @endforeach)                      US ${{ number_format($shipment->multi_contracts->sum('c_and_i_gross'), 4) }}
Less The Following
Insurance Premium of US $ {{ number_format($insurance_premium, 2) }} (insurance certificate No. {{ strtoupper($shipment->insurance_number) }} )
On the above consignment payable to the credit of {{ $insurer->name }} No. {{ $insurer->iban_number }} Account with {{ $insurer->bank_name }}, {{ $insurer->bank_address }}, {{ $insurer->bank_location }} by the Collecting Bank.
 
Watermark Image
US$ {{ number_format($retention_amt, 2) }} being 2% Retention for the credit of Ghana Cocobod Export Retention
Account No. 14955916 (Export Rehabilitation Programmme) By the Collecting Bank
  Freight on {{ number_format($multi_contract_tonnage * 1000, 0) }} kilos
  @ US $ {{ number_format($far_east_freight, 2) }} Per 1,000 kilos
 
  Additional Handling Charge of $ {{ number_format($additional_handling_charge, 2) }}
 
 
 
 
US $ {{ number_format($total_tonnage_freight, 2) }} payable to the credit of CMC freight Account No. 0001155106
with Ghana International Bank (G.I.B) London by the Collecting Bank
US $ {{ number_format($total_tonnage_freight, 2) }} payable to the credit of {{ $shipping_line_bank->shipping_line?->shipping_line }} @if (empty($shipping_line_bank->acct_no)) IBAN No. {{ $shipping_line_bank->IBAN }} @else freight Account No. {{ $shipping_line_bank->acct_no }} IBAN No. {{ $shipping_line_bank->IBAN }} @endif
with {{ $shipping_line_bank->bank_name }} by the Collecting Bank
 
PAYMENT 100% CASH AGAINST DOCUMENTS IN LONDON/VIA DOCUMENTARY COLLECTION.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
US $ {{ number_format($total_tonnage_freight, 2) }}
 
 
              {{ number_format($additional_handling_charge, 2) }}
_______________
US $ {{ number_format($total_freight_charge_usd, 2) }}
 
 
 
 
 
 
 
 
 
 
 
 
US $ {{ number_format($buyers_gross, 2) }}
 
             {{ number_format($insurance_premium, 2) }}
__________________
         {{ number_format($buyers_gross_less_ip, 2) }}
           {{ number_format($retention_amt, 2) }}
___________________
US $   {{ number_format($bank_gross, 2) }}
 
 
 
 
 
 
 
 
 
US$ {{ number_format($total_freight_charge_usd, 2) }}
 
 
 


For and on behalf of:
@if ($shipment->status == 'approved') User Image @endif

 

 

 

 

 

 

 

 

{{ csrf_field() }}