diff --git a/app/Http/Controllers/TicketsController.php b/app/Http/Controllers/TicketsController.php index 9ef9600e..e122fc4f 100644 --- a/app/Http/Controllers/TicketsController.php +++ b/app/Http/Controllers/TicketsController.php @@ -143,7 +143,19 @@ class TicketsController extends Controller ->editColumn('updated_at', function (Ticket $tickets) { return $tickets->updated_at ? $tickets->updated_at->diffForHumans() : ''; }) - ->rawColumns(['category', 'title', 'status', 'updated_at']) + ->addColumn('actions', function (Ticket $tickets) { + return ' + +
+ '.csrf_field().' + '.method_field('POST').' + +
+ + + '; + }) + ->rawColumns(['category', 'title', 'status', 'updated_at', "actions"]) ->make(true); } } diff --git a/themes/default/views/ticket/index.blade.php b/themes/default/views/ticket/index.blade.php index 670a0176..394a93a7 100644 --- a/themes/default/views/ticket/index.blade.php +++ b/themes/default/views/ticket/index.blade.php @@ -44,6 +44,7 @@ {{__('Priority')}} {{__('Status')}} {{__('Last Updated')}} + {{__('Actions')}} @@ -88,6 +89,7 @@ {data: 'priority'}, {data: 'status'}, {data: 'updated_at', sortable: false}, + {data: 'actions', sortable: false}, ], fnDrawCallback: function( oSettings ) { $('[data-toggle="popover"]').popover();