@php
$startDateTime = new DateTime($trip->trip->arrival_time);
$endDateTime = new DateTime($trip->trip->departure_time);
@endphp
{{ $endDateTime->format('H:i') }}
{{ $trip->trip->endLocation->name }}
{{ $startDateTime->format('H:i') }}
{{ $trip->trip->startLocation->name }}
@if (strlen($trip->trip->description) > 20)
{{ substr($trip->trip->description, 0, 20) }}
Read More
@else
{{ $trip->trip->description ?? 'N/A' }}
@endif
@php
$startDateTime = new DateTime($trip->trip->arrival_time);
$endDateTime = new DateTime($trip->trip->departure_time);
$timeInterval = $startDateTime->diff($endDateTime);
$hours = $timeInterval->h;
$minutes = $timeInterval->i;
$hours += $timeInterval->days * 24;
@endphp
Bus:
{{ $trip->trip->bus->type }}
{{ $hours }}
timer, {{ $minutes }} minutter
Pris:{{ $trip->total_fare }}DKK
Book dato:{{ $trip->booking_date }}
Rejsende:
@foreach ($trip->customers as $customers)
{{$customers->name}},
@endforeach
Bestillingsbekræftelse:
{{$trip->confirmed===1 ? 'Bekræftet' : 'Ikke bekræftet'}}