@extends ('layouts.in') @section ('body') {{--$list--}}
@if ($users_multiple)
@endif
@if ($user_empty) @endif {{-- @if ($vehicle_empty) --}} {{-- @endif --}} @if ($device_empty) @endif @foreach ($list as $row) @php ($link = route('trip.update.map', $row->id)) @if ($user_empty) @endif {{-- @if ($vehicle_empty) --}} {{-- @endif --}} @if ($device_empty) @endif @endforeach
{{ __('trip-index.user') }}{{ __('trip-index.vehicle') }}{{ __('trip-index.device') }} {{ __('trip-index.start_at') }} {{ __('trip-index.end_at') }} {{ __('trip-index.distance') }} {{ __('trip-index.time') }} {{ __('trip-index.shared') }} {{ __('trip-index.shared_public') }} {{ __('trip-index.actions') }}
{{ $row->user->name }}{{ $row->vehicle->name }}{{ $row->device->name }} @dateLocal($row->start_at) @dateLocal($row->end_at) @unitHuman('distance', $row->distance) @timeHuman($row->time) @status($row->shared) @status($row->shared_public) @icon('edit', 'w-4 h-4') @icon('bar-chart-2', 'w-4 h-4') @icon('map', 'w-4 h-4') @icon('map-pin', 'w-4 h-4') @icon('bell', 'w-4 h-4') @icon('git-merge', 'w-4 h-4') @icon('package', 'w-4 h-4')
@unitHuman('distance', $list->sum('distance')) @timeHuman($list->sum('time'))
@stop