@extends('admin.layout.app') @section('more-head') @endsection @section('main-content') contract contract @include('includes.messages') {{ csrf_field() }} {{ method_field('PUT') }} MK Number Contract Number Contract Date Buyer: @foreach ($consignees as $consignee) consignee_id == $consignee->id) selected @endif value="{{ $consignee->id }}">{{ $consignee->name }} @endforeach Tolling Select Yes Or No tolling_status == 'yes') selected @endif>Yes tolling_status == 'no') selected @endif>No Tolling Factory: @foreach ($consignees as $consignee) Select Tolling Factory tolling_factory_id == $consignee->id) selected @endif>{{ $consignee->name }} @endforeach Advice Reference/Shipping Instruction Ref @php $tonnage_remaining = $contract->sales_advice->tonnage - $contract->sales_advice->contracts->sum('tonnage') + $contract->tonnage; @endphp tonnage ( {{ $tonnage_remaining }} available ) Destination Destination @foreach ($destinationports as $destinationport) destinationport_id == $destinationport->id) selected @endif value="{{ $destinationport->id }}"> {{ $destinationport->name }} ({{ optional($destinationport->country)->name }}) @endforeach Price ($) Select Basis: Select basis: @foreach ($bases as $base) base_id == $base->id) selected @endif>{{ $base->name }} @endforeach Freight Charge Date Declared {{-- --}} {{-- Exchange Rate (GBP/USD) --}} Product @foreach ($crops as $crop) crop_id == $crop->id) selected @endif value="{{ $crop->id }}">{{ $crop->name }} @endforeach Select Cocoa Type: Select Cocoa Type: @foreach ($cocoa_types as $cocoa_type) shipping_instruction->cocoa_type_id == $cocoa_type->id) selected @endif> {{ $cocoa_type->type_name }} @endforeach Specialty: Shipment Period Select Shipping Mode Select shipping mode @foreach ($shippingmodes as $shippingmode) shippingmode_id == $shippingmode->id) selected @endif value="{{ $shippingmode->id }}"> {{ $shippingmode->name }} @endforeach SELECT LOAN TYPE: Type of Loan: type_of_loan == 'MTLF') selected @endif>MTLF type_of_loan == 'AFDB') selected @endif>AFDB type_of_loan == 'ANNUAL SYNDICATION') selected @endif>ANNUAL SYNDICATION type_of_loan == 'ANNUAL SYNDICATION (1ST ADDITION)') selected @endif>ANNUAL SYNDICATION (1ST ADDITION) type_of_loan == 'ANNUAL SYNDICATION (2ND ADDITION)') selected @endif>ANNUAL SYNDICATION (2ND ADDITION) type_of_loan == 'ANNUAL SYNDICATION (3RD ADDITION)') selected @endif>ANNUAL SYNDICATION (3RD ADDITION) type_of_loan == 'PRE-PAYMENT') selected @endif>PRE-PAYMENT type_of_loan == 'NON COLLATERAL') selected @endif>NON COLLATERAL type_of_loan == 'ANNUAL COLLATERAL') selected @endif>ANNUAL COLLATERAL {{-- Select Production Year {{ $contract->sales_advice->production_year->year }} --}} @endsection @section('more-scripts') @endsection