Reporte Asistencia
Código de campaña: {{ $campaign['code'] }}
Cliente: {{ $campaign['business']['name'] }}
Inicio: {{$started_at}}
Finalización: {{$finished_at}}
@foreach($pages as $page) @foreach($page['point'] as $point) @foreach( $point['resource'] as $resource )

{{$point['province']['name']}}

{{$point['name']}}

{{$resource['name']}}

@if( count($resource['assistance']) ) @php $array_divide = [] ; $left = 0 ; $count = count($resource['assistance']) ; if ( $count > 25 ): $array_divide = array_chunk( $resource['assistance'] , 25 ) ; $left = 2 ; else : $array_divide[0] = $resource['assistance'] ; $left = 23 ; endif; @endphp
@foreach ( $array_divide as $assistances ) @foreach( $page['header'] as $header ) @endforeach @foreach( $assistances as $assistance ) @foreach( $assistance as $a ) @endforeach @endforeach
{{$header}}
{{$point['name']}}
{{$resource['name']}}
{{ $a }}
@endforeach
@endif
@endforeach @endforeach @endforeach