@if ($item['status'] == 1)
| {{ rtl(trans('front.moving'), $data) }} |
{{ $item['show'] }} |
{{ $item['left'] }} |
{{ $item['time'] }} |
{{ rtl($item['driver'], $data) }} |
{{ $items[$device['id']]->unit_of_distance == 'mi' ? kilometersToMiles($item['distance']) : $item['distance'] }} {{ rtl(trans('front.'.$items[$device['id']]->unit_of_distance), $data) }} |
{{ $item['top_speed'] }} {{ rtl(trans("front.dis_h_{$items[$device['id']]->unit_of_distance}"), $data) }} |
{{ $item['average_speed'] }} {{ rtl(trans("front.dis_h_{$items[$device['id']]->unit_of_distance}"), $data) }} |
@if ($item['fuel_consumption'] == 0 && $device['fuel_per_km'] > 0)
{{ $device['fuel_measurement_id'] == 1 ? float($item['distance'] * $device['fuel_per_km']).' '.rtl(trans('front.liters'), $data) : number_format(litersToGallons(($item['distance'] * $device['fuel_per_km'])), 2, '.', '').' '.rtl(trans('front.gallons'), $data) }}
@else
{{ float($item['fuel_consumption']).' '.($device['fuel_measurement_id'] == 1 ? rtl(trans('front.liters'), $data) : rtl(trans('front.gallons'), $data)) }}
@endif
|
@endif
@if ($item['status'] == 2)
{{ rtl(trans('front.stopped'), $data) }} |
{{ $item['show'] }} |
{{ $item['left'] }} |
{{ $item['time'] }} |
{{ rtl($item['driver'], $data) }} |
{{ $item['stop_position']['lat'] }} °, {{ $item['stop_position']['lng'] }} °
@if(!empty($item['stop_position']['address']))
- {{ rtl($item['stop_position']['address'], $data) }}
@endif
|
@endif
@if (isset($data['zones_instead']))
{{ array_key_exists('geofences', $item) ? rtl($item['geofences'], $data) : '' }} |
@endif
@if (array_key_exists('zones', $item))
@foreach ($item['zones'] as $zone)
| {{ rtl(trans('front.zone_'.$zone['type']), $data) }} |
{{ $zone['time'] }} |
|
|
|
{{ $zone['lat'] }} °, {{ $zone['lng'] }} °
- {{ rtl(implode(', ', $zone['zones']), $data) }}
|
@if (isset($data['zones_instead']))
|
@endif
@endforeach
@endif
@endforeach
@endif