@extends('layout.padrao') @section('title', ' Edit - Client Claim') @include('include.attach_edit_list') @section('content') @if($errors->any())
@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ Form::open(array('method' => 'post', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>array('updateClaim', $claim->id))) }} {{method_field('PUT')}} {{ csrf_field() }}
{{ Form::hidden('loadingType', 'CLM') }}
{!! Form::label('clients_id', 'Client', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('clients_id', $select['clients'] , old('clients_id',$claim->clients_id), ['class' => 'form-control ', 'readonly' => 'readonly']) !!}
{!! Form::text('booking', old('booking',$claim->booking), ['class' => 'form-control', 'id' => 'bookingSearch', 'readonly' => 'readonly']) !!}
{!! Form::label('csaPerson', 'CSA - Person in Charge', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('csaPerson', $select['usuarios'] , old('csaPerson',$claim->csaPerson), ['class' => 'form-control ']) !!}
{!! Form::label('claimAmount', 'Claim Amount (USD)', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('claimAmount', old('claimAmount',$claim->claimAmount), ['class' => 'form-control', 'step' => '0.01']) !!}
{!! Form::label('claimReference', 'Claim Reference', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('claimReference', old('claimReference',$claim->claimReference), ['class' => 'form-control', 'disabled' => 'disabled']) !!}
{!! Form::label('clientPerson', 'Client - Person in Charge', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('clientPerson', old('clientPerson',$claim->clientPerson), ['class' => 'form-control']) !!}
{!! Form::label('agreedAmount', 'Amount Agreed (USD)', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('agreedAmount', old('agreedAmount',$claim->agreedAmount), ['class' => 'form-control', 'step' => '0.01']) !!}

Closing Date deve ser maior que a Openning Date

Carrier: {{isset($booking[0]->carriers_id) ? $booking[0]->carriers->descricao : '-'}}

Equipment: {{isset($booking[0]->container_types_id) ? $booking[0]->container_types->descricao : '-'}}

Product: {{isset($booking[0]->platforms_id) ? $booking[0]->platforms->descricao : '-'}}

Vessel: {{isset($booking[0]->vessel_id) ? $booking[0]->vessel->descricao : '-'}}

Voyage: {{isset($booking[0]->voyage) ? $booking[0]->voyage : '-'}}

BL Date: {{isset($loadingConfirmation[0]->BlDate) ? date( 'd-m-Y' , strtotime($loadingConfirmation[0]->BlDate)) : '-'}}

POL: {{isset($booking[0]->etaPol) ? date( 'd-m-Y' , strtotime($booking[0]->etaPol)) : '-'}}

POD: {{isset($booking[0]->etaPol) ? date( 'd-m-Y' , strtotime($booking[0]->etaPod)) : '-'}}

Tank Owner: {{isset($booking[0]->tank_owners_id) ? $booking[0]->tank_owners_id : '-'}}

Claim Description


{!! Form::textarea('claimDescription', old('claimDescription',$claim->claimDescription), ['class' => 'form-control', 'id' => 'editor1']) !!}

Follow Up

{!! Form::textarea('followDescription', null, ['class' => 'form-control', 'id' => 'editor2', 'rows' => 2]) !!}
{!! Form::select('anexo_types_id[]',[''=>'------ Select Required ------']+$select['anexo_types'], null, ['class' => 'form-control', 'style'=>'height:40px']) !!}
@yield('attach_edit_list')

Follow Up History

@if($existentFollowUp)
@foreach($existentFollowUp as $followUp) @endforeach
Actions User Create Follow Up Date Follow Up Description Create Date
@can('delete', App\Usuario::class) id}} data-toggle="modal" data-target="#delete" data-toggle="tooltip" data-placement="top" title="Delete"> @endcan {{isset($followUp->usuarios->nome) ? $followUp->usuarios->nome : '-'}} {{isset($followUp->followUpdate) ? date( 'd/m/Y' , strtotime($followUp->followUpdate)) : '-'}} {!! isset($followUp->followDescription) ? $followUp->followDescription : '-' !!} {{isset($followUp->created_at) ? date( 'd/m/Y' , strtotime($followUp->created_at)) : '-'}}
@endif
@include('bibliotecas.floattheadOverflow') @include('include.modal_deletar', ["rota" => "Follow Up"]) @include('claim.script') @endsection