Make eol, notes sortable on asset model
This commit is contained in:
@@ -26,7 +26,7 @@ class AssetModelsController extends Controller
|
||||
public function index(Request $request)
|
||||
{
|
||||
$this->authorize('view', AssetModel::class);
|
||||
$allowed_columns = ['id','name','created_at'];
|
||||
$allowed_columns = ['id','image','name','model_number','eol','notes','created_at'];
|
||||
|
||||
$assetmodels = AssetModel::select(['id','image','name','model_number','eol','notes','created_at'])
|
||||
->with('category','depreciation', 'manufacturer','fieldset')
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<th data-sortable="false" data-field="category">{{ trans('general.category') }}</th>
|
||||
<th data-sortable="true" data-field="eol">{{ trans('general.eol') }}</th>
|
||||
<th data-sortable="false" data-field="fieldset">{{ trans('admin/models/general.fieldset') }}</th>
|
||||
<th data-sortable="false" data-field="notes">{{ trans('general.notes') }}</th>
|
||||
<th data-sortable="true" data-field="notes">{{ trans('general.notes') }}</th>
|
||||
<th data-switchable="false" data-searchable="false" data-sortable="false" data-field="actions">{{ trans('table.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Reference in New Issue
Block a user