help notification mark read

This commit is contained in:
merdan 2020-06-02 13:50:37 +05:00
parent 6523b09d94
commit f04eae863c
1 changed files with 12 additions and 0 deletions

View File

@ -58,6 +58,18 @@ class HelpTicketCrudController extends CrudController
$this->crud->allowAccess('show');
$this->crud->addButtonFromView('line', 'replay', 'replay', 'beginning');
$this->crud->addFilter([ // dropdown filter
'name' => 'status',
'type' => 'dropdown',
'label'=> 'Status'
], [
1 => 'pending',
2 => 'waiting replay',
3 => 'solved',
], function($value) { // if the filter is active
$this->crud->addClause('where', 'status', $value);
});
backpack_user()->unreadNotifications->markAsRead();
}
public function show($id)
{