@foreach($columns as $column) @if($column['field'] == 'fuel') @else @endif @endforeach @foreach($columns as $column) @if($column['field'] == 'fuel') @endif @endforeach @foreach($grouped as $key => $devices) @foreach($devices as $device) @foreach($columns as $column) @endforeach @endforeach @endforeach
{{ $column['title'] }}{{ $column['title'] }}
{{ trans('global.percentage') }} {{ trans('global.quantity') }} {{ trans('global.price') }}
@if($column['field'] == 'status') @elseif($column['field'] == 'position') @if ($device['lat'] && $device['lng']) {{ $device['lat'] }}°, {{ $device['lng'] }}° @endif @elseif($column['field'] == 'fuel') {{ $device['fuel']['col1'] }} {{ $device['fuel']['col2'] }} {{ $device['fuel']['col3'] }} @else {{ $device[$column['field']] or '-' }} @endif