help desk admin

This commit is contained in:
merdan 2020-05-05 13:58:50 +05:00
parent 8810e75140
commit 46ce138b95
3 changed files with 7 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class HelpTicketCrudController extends CrudController
$this->crud->denyAccess('create');
$this->crud->denyAccess('update');
$this->crud->allowAccess('show');
$this->crud->addButton('line', 'replay', 'view', '', 'beginning');
$this->crud->addButtonFromView('line', 'replay', 'replay', 'beginning');
}
@ -71,4 +71,8 @@ class HelpTicketCrudController extends CrudController
// use $this->data['entry'] or $this->crud->entry
return $redirect_location;
}
public function replay($id){
}
}

View File

@ -0,0 +1 @@
<a href="{{ Request::url().'/'.$entry->getKey() }}/replay" class="btn btn-xs btn-default"><i class="fa fa-reply"></i> Replay</a>

View File

@ -24,4 +24,5 @@ Route::group([
CRUD::resource('account', 'AccountCrudController');
CRUD::resource('helpTopic','HelpTopicCrudController');
CRUD::resource('helpTicket','HelpTicketCrudController');
Route::get('helpTopic/{id}/replay', 'HelpTopicCrudController@replay');
}); // this should be the absolute last line of this file