@for ($not=1;$not<4;$not ++) @php $num=0; $cantP=0; $totGros=0.00; $cantPI=""; $totGrosI=""; $tipo=""; $last=0; $i=ceil($packages->count()/5); $ban=$packages->count()-floor($packages->count()/5)*5; @endphp
{{-- --}} @php $pack = 0; @endphp @for($j=1;$j<=$i;$j++)
{{-- section 1 --}} {{--Section 2--}} @php $pack = $packages[$num]->measurement+$pack; @endphp @include('bl.reporte.blS1') @php $n=5; $totServ=0; $totServ1=0; $sbTot=0; $sbTot1=0; @endphp @if ($ban!=0 && $j==$i) @php $n=$ban; @endphp @endif @if ($j==1)       CONTAINERS: {{$cant}}     @else           @endif @for ($k=0; $k < 5 ; $k++) @if($k<$n) @include('bl.reporte.blS2') @php $cantP+=$packages[$num]->cant_pack; $totGros+=$packages[$num]->gross_weight; $num++; @endphp @else         @endif @endfor @php $totGrosI=0.00; @endphp @if ($j==$i) @php $cantPI=$cantP; $totGrosI=$totGros; $tipo=$packages[$num-1]->type_pack; $last=1; @endphp @endif @include('bl.reporte.blS3')

         BILL OF LADING APOPSA, S.A DE C.V                                                                                                                                   {{ $j }}/{{ $i }}

@if ($j!=$i && $not==3)
@endif @if ($not<3)
@endif {{-- seccion 3 --}}
@endfor {{--
--}}
@endfor