@php $lastclass='rowGray'; @endphp @foreach($registers as $item) @if($loop->first)
@if($item->status == 'Pending') @endif @if($tipo <> 'pending' && $tipo <> 'clearpending') @else @endif @endif @if(!$loop->first) @if ($item->etaPol <> $registers[$loop->index-1]->etaPol) @if ($lastclass=='rowGray') @php $lastclass='rowBlue'; @endphp @else @php $lastclass='rowGray'; @endphp @endif @endif @endif @if($item->status == 'Pending') @endif @if($item->status <> 'Pending') @else @endif @endforeach
Shipper Ref. Client BookingCargoo Ref.Carrier Vessel ETD POL POL POD Equipment Product Imo Draft Cutoff Cargo CutoffLogistics
Plan
Iso/Flexitank
Plan
Plant Load Stuffing BL Draft VGM Loading
Confirmation
Commercial
Edits
Return to
Allocation
Booking History Commercial Status Commercial Suggested
ETD POL
Commercial Comments Commercial User Requested Responsible User
@can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @else @endcan
@if($item->commercial <> 'Waiting For Transference' && $item->old_reasonType == null && ($tipo == 'pending'|| $tipo == 'clearpending')) @endif
@if(!isset($export)) /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 303
');" style="cursor: pointer; margin: 0 15px;">
@endif
{{ $item->shipperReference ?? ' N/A ' }} @if($item->status <> 'Pending') @if(substr($item->SAOE, 0, 4) == "SAOI") @else @endif @endif {{ isset($item->clients->fantasyName) ?str_limit($item->clients->fantasyName, $limit = 10, $end = '...') :'' }} {{ $item->booking }}{{$item->cargooReference}}{{ $item->carriers->descricao }} {{isset($item->vessel->descricao) ? $item->vessel->descricao : 'No vessel'}} / {{isset($item->voyage) ? $item->voyage : 'No voyage' }} {{isset($item->etaPol) ? date( 'd-m-Y' , strtotime($item->etaPol)) : ''}} @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @if($item->manual_integration == 'Yes') ETA Manual @endif @endcan @if (strpos($item->SAOE, 'SAOE') === false) {{isset($item->code_of_ports1->place) ? $item->code_of_ports1->place : ''}} @else {{isset($item->loading_ports->descricao) ? $item->loading_ports->descricao : ''}} @endif @if (strpos($item->SAOE, 'SAOE') === false) {{isset($item->loading_ports->descricao) ? $item->loading_ports->descricao : ''}} @else {{isset($item->code_of_ports1->place) ? $item->code_of_ports1->place : ''}} @endif {{isset($item->containerQty) ? $item->containerQty : '0'}} x {{(isset($item->container_types->descricao) ? $item->container_types->descricao : '-')}} {{isset($item->platforms->descricao) ? $item->platforms->descricao : ''}} @if($item->cargo_types_id == 1 && $item->imoStatus == null) @elseif($item->cargo_types_id == 1 && $item->imoStatus == 'Pending') id}}> @elseif($item->cargo_types_id == 1 && $item->imoStatus == 'IMO Approved') @endif {{isset($item->draftCutoffDate) ? date( 'd-m-Y' , strtotime($item->draftCutoffDate)) : '-'}} as {{isset($item->draftCutofftime) ? date( 'H:i', strtotime($item->draftCutofftime)) : '-'}} {{isset($item->cargoCutoffDate) ? date( 'd-m-Y' , strtotime($item->cargoCutoffDate)) : '-'}} as {{isset($item->cargoCutofftime) ? date( 'H:i', strtotime($item->cargoCutofftime)) : '-'}} @if(isset($item->haulingProcesses[0])) @if($item->haulingProcesses[0]->countHaulingProcessDetailsByPlate('HP5') == ($item->containerQty ?? 0) && $item->haulingProcesses[0]->countHaulingProcessDetailsByPlate('HP5') > 0)
@else
@endif ({{$item->haulingProcesses[0]->countHaulingProcessDetailsByPlate('HP1')}} / {{$item->haulingProcesses[0]->countHaulingProcessDetailsByPlate('HP5')}} / {{$item->containerQty ?? '0'}} ) @else @endif
@if(isset($item->stuffingProcesses[0])) @if($item->stuffingProcesses[0]->checkCurrentStepSituation('SP5') == ($item->containerQty ?? 0) && $item->stuffingProcesses[0]->checkCurrentStepSituation('SP5') > 0)
@else
@endif ({{ number_format($item->stuffingProcesses[0]->checkCurrentStepSituation('SP1-Mask100Percentage'), 0)}}% / {{$item->stuffingProcesses[0]->checkCurrentStepSituation('SP2-2')}} / {{$item->stuffingProcesses[0]->checkCurrentStepSituation('SP5')}} / {{$item->containerQty ?? '0'}} ) @else @endif
@if( $item->BlDraft) @php $get_data = App\VgmBlConfirmation::getLastDraftVgm(['booking'=> $item->booking, 'id' => $item->id, 'type' => 'DrafBL']); if ($get_data ){ $msg = '

' . /* ($get_data->preDraft ? 'Pré-Draft:' : 'Draft: ') . '
' . */ date( 'd-m' , strtotime($get_data->sentDate)) .' as '. date( 'H:i' , strtotime($get_data->sentTime)) . '

'; } else{ unset($msg); } @endphp @forelse ($item->vgm_bl_confirmations as $confirmation) @php $sColor = ''; if(empty($confirmation->sentStatus)){ $sColor = 'blueIcon'; } elseif($confirmation->sentStatus == 'No'){ $sColor = 'red'; } elseif($confirmation->preDraft == 0){ $sColor = 'darkGreenIcon'; } else { $sColor = 'yellowIcon'; } @endphp @if($confirmation->type == 'DrafBL') @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan @else @if(count($item->vgm_bl_confirmations) == 1) @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) $item->id, 'loadingType'=>'DrafBL'])) }} > @endcan @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan {!!( $msg ?? '' )!!} @endif @endif @empty @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) $item->id, 'loadingType'=>'DrafBL'])) }} > @endcan @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan {!!( $msg ?? '' )!!} @endforelse @endif
@if( $item->VGM) @php $get_data = App\VgmBlConfirmation::getLastDraftVgm(['booking'=> $item->booking, 'id' => $item->id, 'type' => 'VGM']); if ($get_data ){ $msg = '

' . /*($get_data->VGM ? '' : 'VGM: ') . '
' . */ date( 'd-m' , strtotime($get_data->sentDate)) .' as '. date( 'H:i' , strtotime($get_data->sentTime)) . '

'; } else{ unset($msg); } @endphp @forelse ($item->vgm_bl_confirmations as $confirmation) @if($confirmation->type == 'VGM') @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan @else @if(count($item->vgm_bl_confirmations) == 1) @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) $item->id, 'loadingType'=>'VGM'])) }} > @endcan @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan {!!( $msg ?? '' )!!} @endif @endif @empty @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) $item->id, 'loadingType'=>'VGM'])) }} > @endcan @can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @endcan {!!( $msg ?? '' )!!} @endforelse @endif
@can('internalRoutineFullAccess', [App\Usuario::class, $item->clients_id_responsible]) @else @endcan @if(isset($item->commercial_id)) id}}> @endif @if(isset($item->commercial_id)) @php $migrationsRemaining = App\CargooMigration::where('status', null)->where('cargooReference', '=', $item->cargooReference); $counts = $migrationsRemaining->get(); $total = count($counts); @endphp @if($item->commercial == 'Waiting For Transference' && $item->old_reasonType == null) /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 616
');" data-toggle="modal" data-target="#modalTradeMigrationsRemaining" data-placement="top" title="Return to Allocation" data-catid={{$item->id}} data-transfermanual='NO'>
{{$total}} @else /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621
', '
Warning: Undefined variable $item in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621

Warning: Attempt to read property "commercial" on null in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621
', '
Warning: Undefined variable $item in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621

Warning: Attempt to read property "carriers_id" on null in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621
', '
Warning: Undefined variable $item in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621

Warning: Attempt to read property "routes_id" on null in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621
', '
Warning: Undefined variable $item in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621

Warning: Attempt to read property "carriers" on null in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621

Warning: Attempt to read property "descricao" on null in /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 621
');" data-toggle="modal" data-target="#modalMigrationsRemaining" data-placement="top" title="Return to Allocation" data-catid={{$item->id}}>
{{$total}} @endif @endif
@if(isset($item->commercial_id)) /home/tabexc29/qa.tabex.com.br/resources/views/loading/loadingPlan/table.blade.php on line 630
');" class="icone-padding" data-toggle="modal" data-target="#myModalHistory" >
@endif
{{$item->commercial}} {{$item->etaPolFake == null ? '' : date( 'd/m/Y' , strtotime($item->etaPolFake)) }} {{$item->comercial_comments}} {{$item->usuario}} {{isset($item->usuarios_id) ? $item->usuarios->nome : '-'}}
@if(!isset($export)) @include('bibliotecas.floatthead') @include('loading.loadingPlan.script_table') @endif