@extends("admin.layout.base") @extends("admin.layout.header") @section("title") Vaskemaskine Reservationer - Vis @endsection @section("path") Vis Vaskemaskine Reservationer / @endsection @section("content") @if(auth()->user()->can('washing.machine.reservation.delete')) @endif @foreach($reservations as $reservation) @if(date('Y-m-d H:i:s', strtotime('-1 hour')) < $reservation->time) @if(auth()->user()->can('washing.machine.reservation.delete')) @endif @endif @endforeach
Lokation Vaskemaskine Tidspunkt BrugerDelete
{{ \App\Location::query()->find(\App\WashingMachine::query()->find($reservation->machine_id)->location_id)->name }} {{ \App\WashingMachine::query()->find($reservation->machine_id)->name }} {{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($reservation->time))->format('d/m/Y \k\l\. H:i') }} {{ ucfirst(\App\User::query()->find($reservation->user_id)->name_first) }} {{ ucfirst(\App\User::query()->find($reservation->user_id)->name_last) }} @csrf Delete
@endsection @section('scripts') @endsection