update
parent
2fcba34124
commit
647ab03a70
|
|
@ -61,7 +61,7 @@ class UserController extends Controller
|
|||
}
|
||||
$role = '';
|
||||
$role .= '<div class="flex flex-col items-start gap-1 text-xs">';
|
||||
$role .= '<span class="bg-primary text-white p-1 rounded">Role & Hak Akses : '.@$row->group->name.'</span>';
|
||||
$role .= '<span class="bg-blue-500 text-white p-1 rounded">Role & Hak Akses : '.@$row->group->name.'</span>';
|
||||
$role .= '<span class=" '.(@$instansi->instansi ? 'bg-success' : 'bg-danger').' text-white p-1 rounded">Instansi : '.@$instansi->instansi->name.'</span>';
|
||||
$role .= '</div>';
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ class UserController extends Controller
|
|||
'name' => @$row->name,
|
||||
'role' => @$role,
|
||||
'username' => @$row->username,
|
||||
'instansi' => @$instansi->name,
|
||||
'instansi' => @$instansi->instansi->name,
|
||||
'email' => @$row->email,
|
||||
'created_at' => dateTime(@$row->created_at),
|
||||
'action' => @$action,
|
||||
|
|
|
|||
|
|
@ -124,11 +124,11 @@ class DatasetController extends Controller
|
|||
}
|
||||
$status = '';
|
||||
if($row->status == 1){
|
||||
$status = '<small class="p-1 w-full bg-emerald-500 text-white rounded" title="Valid">Valid</small>';
|
||||
$status = '<small class="p-1 w-full flex bg-emerald-500 text-white rounded" title="Valid">Valid</small>';
|
||||
}elseif($row->status == 0){
|
||||
$status = '<small class="p-1 w-full bg-yellow-500 text-white rounded" title="Tidak Valid">Menunggu Verifikasi</small>';
|
||||
$status = '<small class="p-1 w-full flex bg-yellow-500 text-white rounded" title="Tidak Valid">Menunggu Verifikasi</small>';
|
||||
}elseif($row->status == 2){
|
||||
$status = '<small class="p-1 w-full bg-red-500 text-white rounded" title="Tidak Valid">Verifikasi Ditolak</small>';
|
||||
$status = '<small class="p-1 w-full flex bg-red-500 text-white rounded" title="Tidak Valid">Verifikasi Ditolak</small>';
|
||||
}
|
||||
|
||||
$_data[] = [
|
||||
|
|
|
|||
|
|
@ -89,11 +89,11 @@ class DatasetTambahanController extends Controller
|
|||
}
|
||||
$status = '';
|
||||
if($row->status == 1){
|
||||
$status = '<small class="p-1 w-full bg-emerald-500 text-white rounded" title="Valid">Valid</small>';
|
||||
$status = '<small class="p-1 w-full flex bg-emerald-500 text-white rounded" title="Valid">Valid</small>';
|
||||
}elseif($row->status == 0){
|
||||
$status = '<small class="p-1 w-full bg-yellow-500 text-white rounded" title="Tidak Valid">Menunggu Verifikasi</small>';
|
||||
$status = '<small class="p-1 w-full flex bg-yellow-500 text-white rounded" title="Tidak Valid">Menunggu Verifikasi</small>';
|
||||
}elseif($row->status == 2){
|
||||
$status = '<small class="p-1 w-full bg-red-500 text-white rounded" title="Tidak Valid">Verifikasi Ditolak</small>';
|
||||
$status = '<small class="p-1 w-full flex bg-red-500 text-white rounded" title="Tidak Valid">Verifikasi Ditolak</small>';
|
||||
}
|
||||
|
||||
$_data[] = [
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@
|
|||
</h3>
|
||||
<div class="flex flex-col gap-6 mt-6">
|
||||
<div class="w-full">
|
||||
<h1 class="mb-3 font-bold text-left">Organisasi</h1>
|
||||
<h1 class="mb-3 font-bold text-left">Instansi</h1>
|
||||
<select class="p-3 bg-white border text-sm select2 rounded-xl w-full" name="instansi_id" id="">
|
||||
<option value="">-- Pilih Organisasi --</option>
|
||||
<option value="">-- Pilih Instansi --</option>
|
||||
@foreach ($instansi as $dataInstansi)
|
||||
<option {{ decode_id(@request()->instansi_id) == $dataInstansi->MsInstansiId ? 'selected' : '' }} value="{{encode_id($dataInstansi->MsInstansiId)}}">{{$dataInstansi->name}}</option>
|
||||
@endforeach
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@
|
|||
</h3>
|
||||
<div class="flex flex-col gap-6 mt-6">
|
||||
<div class="w-full">
|
||||
<h1 class="mb-3 font-bold text-left">Organisasi</h1>
|
||||
<h1 class="mb-3 font-bold text-left">Instansi</h1>
|
||||
<select class="p-3 bg-white border text-sm select2 rounded-xl w-full" name="instansi_id" id="">
|
||||
<option value="">-- Pilih Organisasi --</option>
|
||||
<option value="">-- Pilih Instansi --</option>
|
||||
@foreach ($instansi as $dataInstansi)
|
||||
<option {{ decode_id(@request()->instansi_id) == $dataInstansi->MsInstansiId ? 'selected' : '' }} value="{{encode_id($dataInstansi->MsInstansiId)}}">{{$dataInstansi->name}}</option>
|
||||
@endforeach
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
<th class="border font-bold text-slate-900 text-center" data-width="10" data-field="no">No</th>
|
||||
<th class="border font-bold text-slate-900 text-center" data-field="name">Name</th>
|
||||
<th class="border font-bold text-slate-900 text-center" data-field="role">Role</th>
|
||||
<th class="border font-bold text-slate-900 text-center" data-field="instansi">Instansi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in New Issue