@php
$startDateTime = new DateTime($booking->trip->arrival_time);
$endDateTime = new DateTime($booking->trip->departure_time);
$timeInterval = $startDateTime->diff($endDateTime);
$hours = $timeInterval->h + $timeInterval->days * 24;
$minutes = $timeInterval->i;
@endphp
| Bus: |
{{ $booking->trip->bus->type }} |
| Tid: |
{{ $hours }} timer, {{ $minutes }} minutter |
| Pris: |
{{ $booking->total_fare }}DKK |
| Book dato: |
{{ $booking->booking_date }} |
| Type billet: |
@if ($booking->type_of_trip != 'single')
Returbillet
@else
Enkeltbillet
@endif
|
| Kunde navne: |
@foreach ($booking->customers as $customer)
{{ $customer->name }},
@endforeach
|
| Bekræftet: |
{{ $booking->confirmed === 1 ? 'Ja' : 'Nej' }} |