@extends('layouts.app') @section('title', 'Test drives') @section('heading', 'Test drives') @section('content') @forelse ($upcoming as $date => $drives)

{{ \Illuminate\Support\Carbon::parse($date)->isToday() ? 'Today' : \Illuminate\Support\Carbon::parse($date)->format('l d M') }}

@empty

No test drives booked. Book one from a lead's page.

@endforelse @if ($recent->count())

Recent

@foreach ($recent as $t) @endforeach
Recent test drives
WhenCustomerVehicleOutcomeRecord
{{ $t->scheduled_for->format('d M, H:i') }}{{ $t->customer->name }}{{ $t->vehicle->display_name }} {{ ucfirst(str_replace('_', ' ', $t->status)) }}{{ $t->outcome_note ? ' · '.$t->outcome_note : '' }} @if ($t->indemnity_signature_path)View signature@endif
@endif @endsection