@extends ('layouts.shared') @section ('body')

{{ $trip->name }}

@if ($positions->isNotEmpty())
@endif @if ($stats)

{{ __('shared-trip.distance.title') }}

{{ __('shared-trip.distance.total') }}: @unitHuman('distance', $trip->distance)

{{ __('shared-trip.speed.title') }}

{{ __('shared-trip.speed.max') }}: @unitHuman('speed', $stats['speed']['max'])
{{ __('shared-trip.speed.avg') }}: @unitHuman('speed', $stats['speed']['avg'])
{{ __('shared-trip.speed.avg_movement') }}: @unitHuman('speed', $stats['speed']['avg_movement'])
{{ __('shared-trip.speed.min') }}: @unitHuman('speed', $stats['speed']['min'])

{{ __('shared-trip.time.title') }}

{{ __('shared-trip.time.total') }}: @timeHuman($stats['time']['total'])
{{ __('shared-trip.time.movement') }}: @timeHuman($stats['time']['movement'])
{{ __('shared-trip.time.stopped') }}: @timeHuman($stats['time']['stopped'])
@endif
@stop