@extends('layout.padrao') @section('title', 'Freight Fee Register') @section('content') @if($errors->any())
@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ Form::open(array('method' => 'post', 'enctype'=>'multipart/form-data', 'route'=>'storeFreightFeeSearch' , 'id'=>'oceanfreightfee_create')) }} {{ csrf_field() }}
{!! Form::label('carriers_id', 'Carrier', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('carriers_id', $select['carriers'], old('carriers_id', $request->carriers_id), ['class' => 'form-control' , 'id' => 'carriers' , 'readonly' => 'readonly']) !!}
{!! Form::label('loading_ports_id', 'Loading Port', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('fakeLP', $select['loadingPorts'], old('loading_ports_id' , $request->loading_ports_id), ['class' => 'loading_ports_id2 form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
{!! Form::label('port_destinations', 'Port of Destination', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('fakePD', $select['destinationPort'], old('port_destinations' , $request->port_destinations), ['class' => 'port_destinations2 form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
@if ($request->carriers_id == 8)
@elseif ($request->carriers_id == 33)
@elseif ($request->carriers_id == 13)
@elseif ($request->carriers_id == 17)
@elseif ($request->carriers_id == 22)
@elseif ($request->carriers_id == 24)
@elseif ($request->carriers_id == 29)
@elseif ($request->carriers_id == 38)
@endif
{!! Form::label('cargo_types_id', 'Cargo Type', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('cargo_types_id', $select['cargo_types'], old('cargo_types_id', $request->cargo_types_id), ['class' => 'form-control' , 'id' => 'cargo_type', 'readonly' => 'readonly']) !!}
group_box == 'Y' ? 'checked' : '') }} >
{!! Form::label('carrierQuoteReference', 'Carrier Quote Ref.', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('carrierQuoteReference', old('carrierQuoteReference', $request->carrierQuoteReference), ['class' => 'form-control ', 'id' => 'carrierQuoteReference', 'readonly' => 'readonly']) !!}
{!! Form::label('freeTimeOrigin', 'Free Time Origin', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('freeTimeOrigin', old('freeTimeOrigin' , $request->freeTimeOrigin) , ['class' => 'form-control ' , 'readonly' => 'readonly']) !!}
{!! Form::label('freeTimeDestination', 'Free Time Destination', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('freeTimeDestination', old('freeTimeDestination' , $request->freeTimeDestination), ['class' => 'form-control ', 'id' => 'freeTimeDestination' , 'readonly' => 'readonly']) !!}
{!! Form::label('transitTime', 'Transit Time', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('transitTime', old('transitTime' , $request->transitTime), ['class' => 'form-control ' , 'readonly' => 'readonly']) !!}
{!! Form::label('transhipments', 'Transhipments', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('fakeTP', $select['destinationPort'], old('transhipments', $request->transhipments), ['class' => 'transhipments2 form-control','multiple'=>'multiple']) !!}
{!! Form::label('platforms_id', 'Product', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('fakePL', $select['platform'], old('platforms_id', $request->platforms_id), ['class' => 'platform2 form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
group_rates) && $request->group_rates == 'ORIGIN' ? 'checked' : '') }}>
group_rates) && $request->group_rates == 'ABROAD' ? 'checked' : '') }} >
group_rates) && $request->group_rates == 'ALL' ? 'checked' : '') }}>

FEE COMMERCIAL LINK

    @foreach($array1 as $classes)
  • {{$classes}}
  • @endforeach @foreach($array2 as $classes)
  • {{$classes}}
  • @endforeach
{!! Form::label('loading_ports_id', 'Loading Port', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('loading_ports_id[]', $select['loadingPorts'], old('loading_ports_id' , $request->loading_ports_id), ['class' => 'loading_ports_id form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
{!! Form::label('port_destinations', 'Port of Destination', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('port_destinations[]', $select['destinationPort'], old('port_destinations' , $request->port_destinations), ['class' => 'port_destinations form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
{!! Form::label('container_types_id', 'Equipment Type', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('container_types_id[]', $select['containerType'], old('container_types_id' , $request->container_types_id), ['class' => 'containerType form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
{!! Form::label('platforms_id', 'Product', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('platforms_id[]', $select['platform'], old('platforms_id', $request->platforms_id), ['class' => 'platform form-control','multiple'=>'multiple' , 'readonly' => 'readonly']) !!}
{!! Form::label('transhipments', 'Transhipments', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('transhipments', $select['destinationPort'], old('transhipments', $request->transhipments), ['class' => 'transhipments form-control','multiple'=>'multiple']) !!}
@if(isset($legend))

Type of Amount Fields:

@php array_walk_recursive($legend, function ($item, $key) { echo "$item
"; }); @endphp
@endif @if(isset($request->group_rates) && $request->group_rates != 'ABROAD') @if($OrigemFee) @foreach($request->loading_ports_id as $keyports => $ports) @foreach ($OrigemFee as $fee) @if($loop->first)
{{ Form::hidden("Origin[ports][{$ports}]", $ports) }}

Origin Charges - {{$ports}}-{{App\Http\Controllers\MaritimeFreightRateController::get_port_name($ports)}}

{!! Form::label('maritimeValidadeFromOrigin1', 'Valid From', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('maritimeValidadeFromOrigin1', old('maritimeValidadeFromOrigin1', null), ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01', 'id' => 'code']) !!}
{!! Form::label('maritimeValidadeToOrigin2', 'Valid To', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('maritimeValidadeToOrigin2', old('maritimeValidadeToOrigin2', null), ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01', 'id' => 'code']) !!}
@endif
{{ Form::hidden("Origin[ports][{$ports}][{$fee->codeid}]", $fee->codeid) }}
{!! Form::label('code', 'Carrier Code', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text("Origin[ports][{$ports}][{$fee->codeid}][carrierCode]", old('code[]', $fee->carrierCode), ['class' => 'form-control ', 'id' => 'code' , 'readonly' => 'readonly']) !!}

Eg.(BAF;THC;ELF)

{!! Form::label('descricao', 'Fee Description', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text("Origin[ports][{$ports}][{$fee->codeid}][feeDescription]", old('descricao[]', $fee->feeDescription) , ['class' => 'form-control ','readonly' => 'readonly']) !!}
@if(isset($legend)) @foreach($legend as $key => $field)
@endforeach @endif
@php $classe_selected = App\Http\Controllers\MaritimeFreightRateController::get_code_info($fee->codeid) ; @endphp
@endforeach @endforeach @else

Origin Charges - Not Found

@endif @endif @if(isset($request->group_rates) && $request->group_rates != 'ORIGIN') @if(isset($getFee))

Others Charges

{!! Form::label('maritimeValidadeTo1', 'Valid From', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('maritimeValidadeFrom1', old('maritimeValidadeFrom1', null), ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01', 'id' => 'code']) !!}
{!! Form::label('maritimeValidadeTo2', 'Valid To', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('maritimeValidadeTo2', old('maritimeValidadeTo2', null), ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01', 'id' => 'code']) !!}
@forelse ($getFee as $key => $fee)
{{ Form::hidden("Abroad[{$fee->codeid}]", $fee->codeid) }} {{ Form::hidden('freightId[]', $fee->codeid) }}
{!! Form::label('codeAbroad', 'Carrier Code', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text("Abroad[{$fee->codeid}][carriersCode]", old('codeAbroad[]', $fee->carrierCode), ['class' => 'form-control ', 'id' => 'code' , 'readonly' => 'readonly']) !!}

Eg.(BAF;THC;ELF)

{!! Form::label('descricaoAbroad', 'Fee Description', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text("Abroad[{$fee->codeid}][feeDescription]", old('descricaoAbroad[]', $fee->feeDescription) , ['class' => 'form-control ','readonly' => 'readonly']) !!}
@if(isset($request->group_box) && $request->group_box == 'Y') @foreach($legend as $key => $field)
@endforeach @else @foreach($legend_abroad as $key => $field)
@endforeach @endif
@php $classe_selected = App\Http\Controllers\MaritimeFreightRateController::get_code_info($fee->codeid) ; @endphp
{{ Form::hidden('FeeTypeAbroad[]', old('FeeTypeAbroad[]', $fee->FeeType)) }} @empty @endforelse @endif @endif
@include('oceanFreightFee.script') @endsection