{{__('msg.dinereservationer')}}
@foreach($reservations as $reservation) -
-
{{ \App\WashingMachine::query()->find($reservation->machine_id)->name }}
-
- {{__('msg.tid')}}: {{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($reservation->time))->format('d/m/Y \k\l\. H:i') }}
- $reservation ]) }}">
- @csrf
- @method("delete")
-
-
-
+ @if(date('Y-m-d H:i:s', strtotime('-1 hour')) < $reservation->time)
+
+
+ @endif
@endforeach
- @if(count($reservations) < 1)
+ @if(count($reservations) < 1 || $washingreservations == 0)
+
- {{ \App\WashingMachine::query()->find($reservation->machine_id)->name }}
+
+ {{__('msg.tid')}}: {{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($reservation->time))->format('d/m/Y \k\l\. H:i') }}
+ $reservation ]) }}">
+ @csrf
+ @method("delete")
+
+
+
+
{{__('msg.duharingenreservationer')}}.
@else {{ $reservations->links() }}