This commit is contained in:
Neerholt 2020-08-17 09:21:57 +02:00
commit 5f516992d7
1 changed files with 9 additions and 1 deletions

View File

@ -135,7 +135,8 @@ class FeedbackController extends Controller
$output = "<tr>".
"<th>Feedback Besked</th>".
"<th>Ris el. Ros</th>".
"</tr>";
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>".
"</tr>";
//$value = Feedbacks::query('feedbacks')->select('suggestion_form ')->dump();
//$value = DB::table('feedbacks')->select('suggestion_form ')->dump();
@ -150,6 +151,13 @@ class FeedbackController extends Controller
$output.='<tr>'.
'<td>' . $feedback->message . '</td>'.
'<td>' . $feedback->suggestion_form . '</td>'.
'<td><form method="post" action="' .route("feedbacks.destroy", [ "feedback" => $feedback ]). '" class="w-100 nostyle">'.
csrf_field().
method_field("delete").
'<button class="w-100 nostyle" onclick="return confirm(\'Are you sure you want to delete?\');" type="submit"><img class="w-100 cursor-pointer" src="'. asset('/images/icons/trashcan-dark.svg') . '" alt="Delete"></button>'.
'</form>'.
'</td>'.
'</tr>';
}
}