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 "<th>Vaskemaskine</th>". "<th>Tidspunkt</th>". "<th>Bruger</th>". - "<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/pencil.svg\" alt=\"Update\"></th>". "<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>". "</tr>"; @@ -219,7 +218,6 @@ class WashingReservationController extends Controller '<td>' . WashingMachine::query()->find($user->machine_id)->name . '</td>'. '<td>' . $user->time . '</td>'. '<td>' . ucfirst(User::query()->find($user->user_id)->name_first) . ' ' . ucfirst(User::query()->find($user->user_id)->name_last) . '</td>'. - '<td><a href="'. route("washing-reservations.edit", [ "washing_reservation" => $user->id ]) . '"><img class="w-100" src="'. asset('/images/icons/pencil-dark.svg') . '" alt="Update"></a></td>'. '<td><form method="post" action="' .route("washing-reservations.destroy", [ "washing_reservation" => $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 @@ <th>Vaskemaskine</th> <th>Tidspunkt</th> <th>Bruger</th> - <th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th> <th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th> </tr> @foreach($reservations as $reservation) @@ -41,7 +40,6 @@ <td>{{ \App\WashingMachine::query()->find($reservation->machine_id)->name }}</td> <td>{{ $reservation->time }}</td> <td>{{ ucfirst(\App\User::query()->find($reservation->user_id)->name_first) }} {{ ucfirst(\App\User::query()->find($reservation->user_id)->name_last) }}</td> - <td><a href="{{ route('washing-reservations.edit', ['washing_reservation' => $reservation]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td> <td><form method="post" action="{{ route('washing-reservations.destroy', ['washing_reservation' => $reservation]) }}" class="w-100 nostyle"> @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) {