@php $lastclass='rowGray'; @endphp @foreach($registers as $item) @if($loop->first)
@can('internalRoutine', App\Usuario::class) @else @endcan @can('internalRoutine', App\Usuario::class) @endcan @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 @php $blDate = '-'; $insurancePremium = $item->oldestInsuranceCertificate->insurancePremium ?? ''; @endphp @foreach($item->loading_confirmations as $item) @php isset($item->BlDate) ? $blDate = $item->BlDate : $blDate = '-'; @endphp @endforeach @else @can('internalRoutineAllManagers', App\Usuario::class) @endcan @endif @endif @endif @endif @endcan @else @can('internalRoutineAllManagers', App\Usuario::class) @endcan @endif @endif @endif @endif @endcan @endforeach
Process NumberShipper Ref.Client Shipper Product Carrier Vessel - Voyage Qty -
Equipment
Booking POL POD ETD POL BL DateInsurance PremiumLoading
Confirmation
Payment
Request
Hauling
Payment
Stuffing
Payment
{{-- id}} style="cursor: pointer"> --}} @can('internalRoutine', App\Usuario::class) {{ $item->SAOE }} @else {{ $item->shipperReference ?? ' N/A ' }} @endcan {{ (isset($item->clients->fantasyName) ? str_limit($item->clients->fantasyName, $limit = 10, $end = '...') : $item->clients->name)}} {{ (isset($item->shippers->name) ? str_limit($item->shippers->name, $limit = 10, $end = '...') : '-')}} {{ isset($item->platforms->descricao) ? $item->platforms->descricao : '' }} {{ $item->carriers->descricao }} {{ isset($item->vessel->descricao) ? $item->vessel->descricao : '' }} - {{ $item->voyage }} {{ $item->containerQty}} x {{ $item->container_types->descricao }} {{ $item->booking }} @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 {{date( 'd-m-Y' , strtotime($item->etaPol))}}{{$blDate == '-' ? $blDate : date( 'd-m-Y' , strtotime($blDate))}} {{ $insurancePremium ?? ''}} @if($item->loading_requests->incoterm <> 3 ) @can('clientClearence', App\Usuario::class) @if( App\Http\Controllers\ClientProfileChecksController::check_payment_local_charge($item->loading_requests_id, 'Local Charges') ) @else @if( App\Http\Controllers\ClientProfileChecksController::check_local_charges($item->loading_requests->clients_id, $item->loading_requests->platforms_id,$item->loading_requests->id) ) @else @can('internalRoutineAllManagers', App\Usuario::class) @endcan @endif @endif @endcan @endif @can('clientClearence', App\Usuario::class) @if( App\Http\Controllers\ClientProfileChecksController::check_payment_local_charge($item->loading_requests_id,'Hauling') ) @else @if(isset($item->loading_requests->hauling_id)) @if( App\Http\Controllers\ClientProfileChecksController::check_hauling($item->loading_requests->clients_id, $item->loading_requests->platforms_id,$item->loading_requests->id) ) @if($item->loading_requests->hauling_id != null && $item->loading_requests->hauling_id != '') @can('clientClearence', App\Usuario::class) @if( App\Http\Controllers\ClientProfileChecksController::check_payment_local_charge($item->loading_requests_id, 'Stuffing') ) @else @if(isset($item->loading_requests->loading_stuffings_client[0])) @if(App\Http\Controllers\ClientProfileChecksController::check_stuffing_terminal($item->loading_requests->clients_id, $item->loading_requests->platforms_id,$item->loading_requests->id) ) @if($item->loading_requests->loading_stuffings_client[0]->stuffing_terminals_id != null && $item->loading_requests->loading_stuffings_client[0]->stuffing_terminals_id != '')
@include('bibliotecas.floatthead')