{{ __('Roles') }}

{{ __('Below is a list of all roles.') }}

@can('role & permission create') @endcan
@grid([ 'dataProvider' => $dataProvider, // see info about DataProviders 'rowsPerPage' => $perPage, 'columnOptions' => [ 'class' => 'attribute', 'formatters' => ['text', 'raw'], ], 'columns' => [ [ 'class' => 'raw', 'title' => 'No', 'value' => function () use (&$i) { return ++$i . '.'; }, ], 'name', [ 'class' => 'raw', 'attribute' => 'updated_at', 'title' => 'Last Update', 'formatters' => ['raw'], 'value' => function ($row) { return $row->updated_at->format('d-m-Y H:i:s'); }, ], [ 'class' => 'raw', // class option allows to change column class 'formatters' => ['raw'], 'value' => function ($row) { return view('roles.include.action', ['row' => $row])->render(); }, ], ], ])