@extends('admin.layout.app') @section('more-head') Allocation Letter @endsection @section('main-content')

OPERATIONS MANAGEMENT SYSTEM

@if ($allocation_letter->complete_status == 'yes') @else @endif

COCOA MARKETING COMPANY (GHANA) LIMITED


TELEPHONES: 668352/668464/668281

CABLE: COCOAMAK

FAX: 233 21667057, 22665076

Our Ref: {{ $allocation_letter->ref_number }}


THE WPO MANAGER CMC (GH) LTD

ACCRA                                                                                    (SP/{{ substr($allocation_letter->shipping_programme->sp_ref, -3) }})

P.O.BOX 1017

ACCRA, GHANA


DATE: {{ \Carbon\Carbon::parse($allocation_letter->date)->format('jS F, Y') }}


Dear Sir,

RE: MV “{{ $old_allocation_letter->vessel->name }}” ETA: @if ($old_allocation_letter->eta_dfrom == $old_allocation_letter->eta_dto) {{ Carbon\Carbon::parse($old_allocation_letter->eta_dfrom)->format('d/m') }} @else {{ Carbon\Carbon::parse($old_allocation_letter->eta_dfrom)->format('d') }} - {{ Carbon\Carbon::parse($old_allocation_letter->eta_dto)->format('d/m') }} @endif
{{ $full_season_name }}

Further to the reference {{ $old_allocation_letter->ref_number }} Dated {{ Carbon\Carbon::parse($old_allocation_letter->date)->format('d-m-y') }}, we wish to advise that the above vessel has been @if ($old_allocation_letter->vessel_id == $allocation_letter->vessel_id) revised to load @else substituted for MV “{{ $allocation_letter->vessel->name }}” to load a revised booking of @endif {{ $allocation_letter->allocation_tonnages->sum('tonnage') }}MT {{ ltrim($full_season_name, $new_season) }} TO @if ($allocation_letter->destinationports->count() > 1) THE VARIOUS PORTS as @else {{ $allocation_letter->destinationports->first()->name }} @endif indicated below:


@foreach ($ldps as $dp) @foreach ($allocation_letter->allocation_batches()->where('destinationport_id', $dp->destinationport_id)->get() as $allocation_batch) @if (count($types) > 1) @else @endif @if ($allocation_batch->batch_status == 'multi') @else @endif @if ($allocation_batch->batch_status == 'multi') @else @endif {{-- --}} @endforeach @endforeach

@if (!$loop->first)

@endif FOR {{ $dp->destinationport->name }}

C/NO
{{ $allocation_batch->letter }} {{ $allocation_batch->fac->contract->number }}-{{ str_pad($allocation_batch->range, 2, '0', STR_PAD_LEFT) }} {{ $allocation_batch->fac->contract->number }} (MK {{ $allocation_batch->fac->contract->mk_number }})

-

{{ number_format($allocation_batch->allocation_tonnages->sum('tonnage'), 4) }} {{ number_format($allocation_batch->fac->fac_tonnage, 4) }} {{ $allocation_batch->fac->contract->consignee->name }} {{ $allocation_batch->letter }}

{{ number_format($allocation_letter->allocation_tonnages->sum('tonnage'), 4) }}


@php $string = $allocation_letter->remarks; echo str_replace('.', '
', $string); @endphp

@foreach ($arr as $ar)

@if (count($types) > 1) {{ $ar['letter'] }}-{{ $ar['specialty_type'] }} @else {{ $ar['specialty_type'] }} @endif

@endforeach

@if ($allocation_letter->shippingmode_id == 1) LOADING INTO 40FT CONTAINERS @else {{ $allocation_letter->shippingmode->name }} @endif

Kindly amend your records accordingly
This allocation is for {{ $allocation_letter->shipping_line->shipping_line }}

Yours faithfully

COCOA MARKETING COMPANY (GH) LIMITED


{{ $manager->name }}
({{ $manager->rank }})

FOR MANAGING DIRECTOR

@endsection @section('more-scripts') @endsection