@extends('layouts/master') @section('content') {{--*/ $totalpag = 0; $listbypage= 150; $i=0; $j=0; /*--}}
{{--*/ $key=1; /*--}}

  Ir atras

@foreach($response['entidadRespuesta'] as $value)

Envíos Pre-Alertados Consolidado Número {{ $value['nrotranscons'] }}

@if(!empty($value['listguiaprealert'])) {{--*/ $listprealert='listguiaprealert';/*--}} @elseif(!empty($value['listguiaprealertsinconsolidar'])) {{--*/ $listprealert='listguiaprealertsinconsolidar';/*--}} @else {{--*/ $listprealert='';/*--}} @endif
Fecha Nro. Consolidación Nro. Casillero Estatus de la Orden de Consolidación
{{ date("d-m-Y", strtotime($value['fecha_creacion'])) }} {{ $value['nrotranscons'] }} {{ @$value[$listprealert][0]['codcasillero'] }} @if($value['listestatusconsolidar']['codestatuscons']==1) {{--*/ $style='color:green;' /*--}} @elseif($value['listestatusconsolidar']['codestatuscons']==3) {{--*/ $style='color:blue;' /*--}} @else {{--*/ $style='color:red;' /*--}} @endif {{ $value['listestatusconsolidar']['nombre'] }}
@if(!empty($listprealert) && (!empty($value[$listprealert]) || $value[$listprealert] !='[]')) @if ((count($value[$listprealert]) > 0) and (!empty($value[$listprealert]))) {{--*/ $totalpag = count($value[$listprealert])/$listbypage; $totalpag = floor($totalpag)+1; /*--}} @for ($i=0;$i<$totalpag;$i++) {{--*/ $desde = (($i+1)*$listbypage)-$listbypage; /*--}} @if($i==0) {{--*/ $visible='overflow'; /*--}} @else {{--*/ $visible='none'; /*--}} @endif @if(($totalpag-$i)==1) {{--*/ $hasta = count($value[$listprealert]); /*--}} @else {{--*/ $hasta = ($i+1)*$listbypage; /*--}} @endif {{--*/ $i=1; $sumValueDeclared=0; /*--}} @for ($j = $desde; $j < $hasta; $j++) {{--*/ $sumValueDeclared=$sumValueDeclared + $value[$listprealert][$j]['valordeclaradoglobal']; /*--}} {{--*/ $key++; /*--}} @endfor @endfor @else @endif
Nro. Nro. Guía Rack Número de Tracking del Envío Remitente Valor Global Declarado USD Factura
{{$j+1}} {{--*/ $url=config('customs.url_factura', true); /*--}} {{ $value[$listprealert][$j]['codguiazoom']}} @if(!empty($value[$listprealert][$j]['listguiaprealertrack'])){{ @$value[$listprealert][$j]['listguiaprealertrack']['rack'] }}@else {{ '-' }} @endif 0,00 @if(!empty($value[$listprealert][$j]['nombrearc'])) @endif
Total Valor Declarado USD {{ number_format($sumValueDeclared, 2,',','.') }}
No Existen Datos Registrados
@endif
@endforeach

@endsection