From 093a94498088ce96e9ffd1e428df7cd78898108c Mon Sep 17 00:00:00 2001 From: frederikpyt Date: Mon, 3 Aug 2020 13:50:27 +0200 Subject: [PATCH] Fix --- .../app/Http/Controllers/WashingReservationController.php | 2 -- .../resources/views/admin/washing-reservations/index.blade.php | 3 --- 2 files changed, 5 deletions(-) diff --git a/skolehjem/app/Http/Controllers/WashingReservationController.php b/skolehjem/app/Http/Controllers/WashingReservationController.php index a38660c..0a775de 100644 --- a/skolehjem/app/Http/Controllers/WashingReservationController.php +++ b/skolehjem/app/Http/Controllers/WashingReservationController.php @@ -188,7 +188,6 @@ class WashingReservationController extends Controller "Vaskemaskine". "Tidspunkt". "Bruger". - "\"Update\"". "\"Delete\"". ""; @@ -219,7 +218,6 @@ class WashingReservationController extends Controller '' . WashingMachine::query()->find($user->machine_id)->name . ''. '' . $user->time . ''. '' . ucfirst(User::query()->find($user->user_id)->name_first) . ' ' . ucfirst(User::query()->find($user->user_id)->name_last) . ''. - ' $user->id ]) . '">Update'. '
$user->id ]). '" class="w-100 nostyle">'. csrf_field(). method_field("delete"). diff --git a/skolehjem/resources/views/admin/washing-reservations/index.blade.php b/skolehjem/resources/views/admin/washing-reservations/index.blade.php index 073bbab..47886c7 100644 --- a/skolehjem/resources/views/admin/washing-reservations/index.blade.php +++ b/skolehjem/resources/views/admin/washing-reservations/index.blade.php @@ -33,7 +33,6 @@ Vaskemaskine Tidspunkt Bruger - Update Delete @foreach($reservations as $reservation) @@ -41,7 +40,6 @@ {{ \App\WashingMachine::query()->find($reservation->machine_id)->name }} {{ $reservation->time }} {{ ucfirst(\App\User::query()->find($reservation->user_id)->name_first) }} {{ ucfirst(\App\User::query()->find($reservation->user_id)->name_last) }} - Update @csrf @method("delete") @@ -65,7 +63,6 @@ url: '{{route('washing-reservations.search')}}', data: {'search':$value, 'isCheck': $checkboxValue}, success:function (data) { - console.log($checkboxValue); $('tbody').html(data); }, error:function (data) {