v1.1.0a - Added "andet option" til feedback

This commit is contained in:
2020-09-10 12:35:38 +02:00
parent 201e2b5b35
commit 89ea2c971b
5 changed files with 25 additions and 11 deletions
@@ -134,13 +134,13 @@ class FeedbackController extends Controller
$output = "<tr>".
"<th style='width: 6em;'>Dato</th>".
"<th>Feedback Besked</th>".
"<th style='width: 5em;'>Ris el. Ros</th>".
"<th style='width: 7em;'>Feedback type</th>".
"<th style=\"width: 1em;\"><img class=\"w-100\" src=".asset('/images/icons/trashcan.svg')." alt=\"Delete\"></th>".
"</tr>";
//$value = Feedbacks::query('feedbacks')->select('suggestion_form ')->dump();
//$value = DB::table('feedbacks')->select('suggestion_form ')->dump();
if($request->option === "Ris" || $request->option === "Ros")
if($request->option === "Ris" || $request->option === "Ros" || $request->option === "Andet")
$feedbacks = Feedbacks::query()->orderBy('created_at', 'desc')->where('suggestion_form', '=', $request->option)
->get();
else