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-10-21 07:12:53 +00:00
< style >
. letterSpaceTable {
letter - spacing : 1.2 px ;
}
</ style >
< table class = " tbl letterSpaceTable " id = " table_id " >
2020-09-21 06:32:05 +00:00
< thead >
2020-11-26 09:19:12 +00:00
< th class = " w-6em " > Dato </ th >
2020-06-29 10:56:08 +00:00
< th > Feedback Besked </ th >
2020-11-26 09:19:12 +00:00
< th class = " w-7em " > Feedback type </ th >
2020-08-31 08:57:26 +00:00
@ if ( auth () -> user () -> can ( 'feedback.delete' ))
2020-11-26 09:19:12 +00:00
< th class = " w-1em " >< img class = " w-100 " src = " { { asset('/images/icons/trashcan.svg') }} " alt = " Delete " ></ th >
2020-08-31 08:57:26 +00:00
@ 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