54 lines
2.7 KiB
PHP
54 lines
2.7 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('title')
|
|
{{__('Role Management')}}
|
|
@endsection
|
|
|
|
@section('content')
|
|
|
|
<div class="content-wrapper">
|
|
<div class="page-header">
|
|
<h3 class="page-title">
|
|
{{__('Role Management')}}
|
|
</h3>
|
|
@can('role-create')
|
|
<div class="buttons">
|
|
<a class="btn btn-primary" href="{{ route('roles.create') }}"> {{ __('Create New Role') }}</a>
|
|
</div>
|
|
@endcan
|
|
</div>
|
|
|
|
@can('role-list')
|
|
<div class="row grid-margin">
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<table aria-describedby="mydesc" class='table' id='table_list' data-toggle="table"
|
|
data-url="{{ route('roles.list') }}" data-click-to-select="true" data-side-pagination="server"
|
|
data-pagination="true" data-page-list="[5, 10, 20, 50, 100, 200]" data-search="true"
|
|
data-show-columns="true" data-show-refresh="true" data-fixed-columns="true"
|
|
data-fixed-number="2" data-fixed-right-number="1" data-trim-on-search="false"
|
|
data-mobile-responsive="true" data-sort-name="id" data-toolbar="#toolbar" data-sort-order="desc"
|
|
data-maintain-selected="true" data-export-data-type='all'
|
|
data-escape="true"
|
|
data-export-options='{ "fileName": "roles-list-<?= date('d-m-y') ?>" ,"ignoreColumn":["operate"]}'
|
|
data-show-export="true" data-query-params="queryParams" data-escape="true"
|
|
data-export-types="['pdf','json', 'xml', 'csv', 'txt', 'sql', 'doc', 'excel']">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-field="id" data-sortable="true" data-visible="false">{{ __('ID') }}</th>
|
|
<th scope="col" data-field="no">{{ __('No.') }}</th>
|
|
<th scope="col" data-field="name" data-sortable="true">{{ __('Name') }}</th>
|
|
<th scope="col" data-field="operate" data-escape="false" data-escape="false">{{ __('Action') }}</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endcan
|
|
</div>
|
|
|
|
@endsection
|