This commit is contained in:
2020-08-24 10:01:26 +02:00
2 changed files with 7 additions and 5 deletions
@@ -133,8 +133,9 @@ class FeedbackController extends Controller
public function search(Request $request){
if($request->ajax()){
$output = "<tr>".
"<th style='width: 6em;'>Dato</th>".
"<th>Feedback Besked</th>".
"<th>Ris el. Ros</th>".
"<th style='width: 5em;'>Ris el. Ros</th>".
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>".
"</tr>";
@@ -149,6 +150,7 @@ class FeedbackController extends Controller
if(count($feedbacks) !== 0){
foreach ($feedbacks as $key => $feedback){
$output.='<tr>'.
'<td>' . date('d-m-Y', strtotime($feedback->created_at)) . '</td>'.
'<td>' . $feedback->message . '</td>'.
'<td>' . $feedback->suggestion_form . '</td>'.
'<td><form method="post" action="' .route("feedbacks.destroy", [ "feedback" => $feedback ]). '" class="w-100 nostyle">'.