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-09-21 06:32:05 +00:00
< table class = " tbl " id = " table_id " >
< thead >
2020-08-18 11:01:39 +00:00
< th style = " width: 6em; " > Dato </ th >
2020-06-29 10:56:08 +00:00
< th > Feedback Besked </ th >
2020-09-10 10:35:38 +00:00
< th style = " width: 7em; " > Feedback type </ th >
2020-08-31 08:57:26 +00:00
@ if ( auth () -> user () -> can ( 'feedback.delete' ))
< th style = " width: 1em; " >< img class = " w-100 " src = " { { asset('/images/icons/trashcan.svg') }} " alt = " Delete " ></ th >
@ endif
2020-09-21 06:32:05 +00:00
</ thead >
< tbody >
@ foreach ( $feedback as $fb )
< tr >
< td > {{ date ( 'd-m-Y' , strtotime ( $fb -> created_at )) }} </ td >
< td > {{ $fb -> message }} </ td >
< td > {{ $fb -> suggestion_form }} </ td >
@ if ( auth () -> user () -> can ( 'feedback.delete' ))
< td >< form method = " post " action = " { { route( " feedbacks . destroy " , [ " feedback " => $fb ]) }} " class = " w-100 nostyle " >
@ csrf
@ method ( " delete " )
< button onclick = " return confirm('Are you sure you want to delete?'); " class = " w-100 nostyle " type = " submit " >< img class = " w-100 cursor-pointer " src = " { { asset('/images/icons/trashcan-dark.svg') }} " alt = " Delete " ></ button >
</ form >
</ td >
@ endif
</ tr >
@ endforeach
</ tbody >
2020-06-29 10:56:08 +00:00
</ table >
2020-09-21 06:32:05 +00:00
@ endsection
@ section ( 'scripts' )
2020-08-03 08:08:03 +00:00
< script >
2020-09-21 06:32:05 +00:00
$ ( document ) . ready ( function () {
$ ( '#table_id' ) . DataTable ({
columnDefs : [
{ orderable : false , targets : [ - 1 ] }
]
2020-08-03 08:08:03 +00:00
});
2020-09-21 06:32:05 +00:00
});
2020-08-03 08:08:03 +00:00
</ script >
2020-06-29 10:56:08 +00:00
@ endsection