update
parent
288e32dcbe
commit
29c3a51151
|
|
@ -48,6 +48,8 @@ class UserController extends Controller
|
||||||
|
|
||||||
$action = '';
|
$action = '';
|
||||||
|
|
||||||
|
$instansi = UserInstansi::where('user_id',$row->id)->first();
|
||||||
|
|
||||||
if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){
|
if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){
|
||||||
$action .= '<div class="flex gap-3 justify-center items-center flex-row">';
|
$action .= '<div class="flex gap-3 justify-center items-center flex-row">';
|
||||||
$action .= '<a href="'.url('management/user/update/'.encode_id($row->id)).'" data-toggle="tooltip" title="Edit Data" class="btn btn-sm btn-block bg-primary"><i class="ri-pencil-line text-white"></i></a>';
|
$action .= '<a href="'.url('management/user/update/'.encode_id($row->id)).'" data-toggle="tooltip" title="Edit Data" class="btn btn-sm btn-block bg-primary"><i class="ri-pencil-line text-white"></i></a>';
|
||||||
|
|
@ -64,6 +66,7 @@ class UserController extends Controller
|
||||||
'name' => @$row->name,
|
'name' => @$row->name,
|
||||||
'role' => @$row->group->name,
|
'role' => @$row->group->name,
|
||||||
'username' => @$row->username,
|
'username' => @$row->username,
|
||||||
|
'instansi' => @$instansi->name,
|
||||||
'email' => @$row->email,
|
'email' => @$row->email,
|
||||||
'created_at' => dateTime(@$row->created_at),
|
'created_at' => dateTime(@$row->created_at),
|
||||||
'action' => @$action,
|
'action' => @$action,
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,9 @@
|
||||||
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-width="10" data-field="action">#</th>
|
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-width="10" data-field="action">#</th>
|
||||||
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-width="10" data-field="no">No</th>
|
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-width="10" data-field="no">No</th>
|
||||||
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="role">Role</th>
|
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="role">Role</th>
|
||||||
|
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="instansi">Instansi</th>
|
||||||
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="email">Email</th>
|
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="email">Email</th>
|
||||||
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="name">Name</th>
|
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="name">Name</th>
|
||||||
<th class="gridjs-td gridjs-th text-sm text-gray-500" data-field="created_at">Created At</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="gridjs-tbody"></tbody>
|
<tbody class="gridjs-tbody"></tbody>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue