@extends('layout.padrao') @section('title', 'Loading Confirmation - BL') @include('include.attach_edit_list') @section('content') @if($errors->any())

Algo deu errado. Verificar Campos Obrigatórios

@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ Form::open(array('name'=>'enviar', 'method' => 'post', 'id'=> 'form-BL', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>array('updateLoading', $register->id))) }} {{method_field('PUT')}} {{ csrf_field() }}
{{ Form::hidden('loadingType', $request->loadingType) }} {{ Form::hidden('type', $request->loadingType) }} {{ Form::hidden('loading_requests_id', $register->id) }} {{ Form::hidden('exists_equipments', $exists_equipments) }} {{ Form::hidden('cargoCutoffDate', $register->cargoCutoffDate) }} {{ Form::hidden('inspectionDate', $register->inspectionDate) }} {{ Form::hidden('imoCutoffDate', $register->imoCutoffDate) }} {{ Form::hidden('slipt', null, array('id' => 'slipt')) }} {{ Form::hidden('addBL', $addBL) }}
profile Pic

Booking information

Client: {{$register->clients->fantasyName ?? ''}}

Booking: {{$register->booking ?? ''}}

Product: {{$register->platforms->descricao ?? ''}}

Carrier: {{$register->carriers->descricao ?? ''}} - Vessel: {{$register->vessel->descricao ?? ''}} - Voyage: {{$register->voyage ?? ''}} @if(substr($register->SAOE, 0, 4) == "SAOI")

Loading Port: {{(isset($register->code_of_ports1->place) ? $register->code_of_ports1->place . ',' . $register->code_of_ports1->country : '')}}

Destination Port:{{$register->loading_ports->descricao ?? ''}}

@else

Loading Port: {{$register->loading_ports->descricao ?? ''}}

Destination Port: {{(isset($register->code_of_ports1->place) ? $register->code_of_ports1->place . ',' . $register->code_of_ports1->country : '')}}

@endif

ETD POL: {{ date( 'd-m-Y' , strtotime($register->etaPol))}}

ETA POD: {{ date( 'd-m-Y' , strtotime($register->etaPod))}}

@if(substr($register->SAOE, 0, 4) == "SAOI") @else

Draft Deadline: {{ date( 'd-m-Y' , strtotime($register->draftCutoffDate)) }}

VGM Deadline: {{ date( 'd-m-Y' , strtotime($register->vgmCutoffDate))}}

Cargo Deadline: {{ date( 'd-m-Y' , strtotime($register->cargoCutoffDate))}}

@endif

{!! ($register->container_types_id == 7 && isset($register->inspectionDate) ? (' Inspection Date: ' . date( 'd-m-Y' , strtotime($register->inspectionDate))) : '' ) !!}

{!! Form::label('BlDate', 'BL Date(*)', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('BlDate', old('BlDate',empty($bl) ? null:$bl[0]->BlDate), ['min' => '2019-01-01', 'max' => date('Y-m-d'), 'class' => 'form-control', 'placeholder'=>'00:00', ($addBL == 'YES'? "readonly ":"")]) !!}

BL Date precisa ser maior que Cargo Cutoff Date

{!! Form::label('grossweight', 'Gross Weight', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('grossweight', old('grossweight' , $register->grossweight) ,['class' => 'form-control', 'step' => '0.001', 'min' => '0.001', 'max' => '999999999999.999', 'oninput' => 'check(this)', App\Http\Controllers\UserController::userControlReadOnly()]) !!}
{!! Form::label('net_weight', 'Net Weight', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('net_weight', old('net_weight' , $register->net_weight) ,['class' => 'form-control', 'step' => '0.001', 'min' => '0.001', 'max' => '999999999999.999', 'oninput' => 'check(this)', ($addBL == 'YES'? "readonly ":"")]) !!}
{!! Form::label('shipperReference', 'Shipper Reference', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('shipperReference', old('shipperReference', $register->shipperReference), ['class' => 'form-control', App\Http\Controllers\UserController::userControlReadOnly()]) !!}
@if($addBL == 'YES')
{!! Form::label('containerQty', 'Planned Qt*', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('containerQty', old('containerQty',empty($bl) ? null:$bl[0]->containerQtyPlanned), ['class' => 'form-control', 'readonly'=>'readonly']) !!}
@else
{!! Form::label('containerQty', 'Planned Qt*', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('containerQty', old('containerQty',$register->containerQty), ['class' => 'form-control', 'readonly'=>'readonly']) !!}
@endIf
{!! Form::label('shippers_id', 'Shipper According To BL Document', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('shippers_id', [''=>'------ Select Required ------']+$select['shipper'], old('shippers_id',$register->shippers_id), ['class' => 'shippers form-control', App\Http\Controllers\UserController::userControlReadOnly()]) !!}
@forelse ($blNumber as $key => $value)
{!! Form::label('containerQtyActual', 'Actual Qt*', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('containerQtyActual[]', old('containerQtyActual[]', $value->containerQtyActual), ['class' => 'form-control', $addBL == 'YES'? "readonly ":""]) !!}
{!! Form::label('BlNumber', 'BL Number', [ 'class' => 'w-100 control-label']) !!} {!! Form::text("BlNumber[]", old('BlNumber[]', $value->BlNumber),['class' => 'form-control', $addBL == 'YES'? "readonly ":""]) !!}
@empty
{!! Form::label('containerQtyActual', 'Actual Qt*', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('containerQtyActual[]', null, ['class' => 'form-control', $addBL == 'YES'? "readonly ":""]) !!}
{!! Form::label('BlNumber', 'BL Number', [ 'class' => 'w-100 control-label']) !!} {!! Form::text("BlNumber[]", null,['class' => 'form-control', $addBL == 'YES'? "readonly ":""]) !!}
@endforelse
{!! Form::label('consignee', 'Consignee', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('consignee', old('consignee',empty($bl) ? null:$bl[0]->consignee), ['class' => 'form-control textsAreaMedium', 'rows' => 4, $addBL == 'YES'? "readonly ":"" , 'id' => 'consigComments']) !!}
{!! Form::label('comments', 'Comments', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('comments', old('comments',empty($bl) ? null:$bl[0]->comments), ['class' => 'form-control textsAreaMedium', 'rows' => 4, $addBL == 'YES'? "readonly ":"" , 'id' => 'comments']) !!}
@if(empty($bl))
{!! Form::label('paymentInstruction', 'Payment Instructions', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('paymentInstruction', null, ['class' => 'form-control', 'id' => 'editor1']) !!}
@else {!! Form::label('paymentInstruction', 'Payment Instructions', [ 'class' => 'w-100 control-label']) !!}
{!! $bl[0]->paymentInstruction !!}
{{ Form::hidden('paymentInstruction', $bl[0]->paymentInstruction) }} @endif
{!! Form::select('anexo_types_id[]',[''=>'-- Select Required --']+$select['anexo_types_id'], null, ['class' => 'form-control', 'style'=>'height:40px']) !!}
{{-- @include('include.modal_reason', ["rota" => "LoadingTransferVGM"])--}} @include('loading.loadingPlan.modal_splitBooking')
@can('internalRoutine', App\Usuario::class) @endcan
@yield('attach_edit_list') @include('include.modal_deletar', ["rota" => "Anexo"]) @include('bibliotecas.inputReadOnlyControl', ["form_id" => "form-BL","clients_id" => ($register->clients_id_responsible ?? null)]) @include('loading.loadingPlan.script') @include('loading.loadingPlan.style') @endSection