2020-06-29 10:56:08 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Feedback - Vis
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
|
|
|
<a href="{{ route('feedbacks.index') }}" class="text-white">Vis Feedback</a> /
|
|
|
|
@endsection
|
|
|
|
|
2020-08-03 08:08:03 +00:00
|
|
|
|
2020-06-29 10:56:08 +00:00
|
|
|
@section("content")
|
2020-08-03 08:08:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div class="risRos">
|
|
|
|
<label for="risros">Vælg type feedback:</label>
|
|
|
|
<select name="risRosName" id="risRosValue">
|
|
|
|
<option selected="selected" name="all" value="all">Alle</option>
|
|
|
|
<option name="ris" value="Ris">Ris</option>
|
|
|
|
<option name="ros" value="Ros">Ros</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2020-06-29 10:56:08 +00:00
|
|
|
<table class="tbl">
|
|
|
|
<tr>
|
|
|
|
<th>Feedback Besked</th>
|
|
|
|
<th>Ris el. Ros</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($feedback as $fb)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $fb->message }}</td>
|
|
|
|
<td>{{ $fb->suggestion_form }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{ $feedback->links() }}
|
2020-08-03 08:08:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$('#risRosValue').change(function () {
|
|
|
|
$value = $('#risRosValue').find(":selected").val();
|
|
|
|
$.ajax({
|
|
|
|
type: 'get',
|
|
|
|
url: '{{route('feedbacks.search')}}',
|
|
|
|
data: {'option':$value},
|
|
|
|
success:function (data) {
|
|
|
|
$('tbody').html(data);
|
|
|
|
},
|
|
|
|
error:function (data) {
|
|
|
|
console.log(data);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-29 10:56:08 +00:00
|
|
|
@endsection
|