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

{{$page['user']['name']}}

{{$page['user']['rol']}}

Punto: {{ $page['row']['point']['name'] }} Ciudad: {{ $page['row']['point']['city']['name'] }} Provincia: {{ $page['row']['point']['province']['name'] }} Fecha: {{ $page['row']['date'] }}
@php $track = "" ; $line = "" ; $key_map = "&key=".env('KEY_STATIC_MAP') ; $size = "&size=700x700" ; $marker_point = "" ; if( count($page['row']['tracking']) > 0 ) : $line = "&path=color:blue|weight:3|" ; foreach( $page['row']['tracking'] as $tracking) : $lat = $tracking->geo->lat ; $lng = $tracking->geo->lng ; $latlng = $lat.','.$lng ; $track .= "&markers=color:red%7Clabel:T%7C$latlng"; $line .= "$latlng|"; endforeach; $line = substr($line, 0, -1) ; endif; if ( $page['row']['point']->geo != Null OR $page['row']['point']->geo != "" ): $point = $page['row']['point']->geo->lat.','.$page['row']['point']->geo->lng; $marker_point="&markers=color:blue%7Clabel:P%7C$point"; endif; @endphp
@if(count($page['row']['point']['activity_count']))

Actividades


    @foreach( $page['row']['point']['activity_count'] as $activity )
  • {{$activity['title']}} ({{$activity['count']}})
  • @endforeach
@endif @if( isset($page['row']['point']['assistance']) )

Control de Asistencia


    @foreach ($page['row']['point']['assistance'] as $assistance)
  • {{$assistance['action']}}: {{$assistance['hour']}}
  • @endforeach
@endif
@endforeach