main
Ilham Wara Nugroho 2026-03-02 09:45:39 +07:00
parent 2fcba34124
commit 647ab03a70
6 changed files with 13 additions and 12 deletions

View File

@ -61,7 +61,7 @@ class UserController extends Controller
} }
$role = ''; $role = '';
$role .= '<div class="flex flex-col items-start gap-1 text-xs">'; $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 .= '<span class=" '.(@$instansi->instansi ? 'bg-success' : 'bg-danger').' text-white p-1 rounded">Instansi : '.@$instansi->instansi->name.'</span>';
$role .= '</div>'; $role .= '</div>';
@ -71,7 +71,7 @@ class UserController extends Controller
'name' => @$row->name, 'name' => @$row->name,
'role' => @$role, 'role' => @$role,
'username' => @$row->username, 'username' => @$row->username,
'instansi' => @$instansi->name, 'instansi' => @$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,

View File

@ -124,11 +124,11 @@ class DatasetController extends Controller
} }
$status = ''; $status = '';
if($row->status == 1){ 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){ }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){ }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[] = [ $_data[] = [

View File

@ -89,11 +89,11 @@ class DatasetTambahanController extends Controller
} }
$status = ''; $status = '';
if($row->status == 1){ 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){ }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){ }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[] = [ $_data[] = [

View File

@ -29,9 +29,9 @@
</h3> </h3>
<div class="flex flex-col gap-6 mt-6"> <div class="flex flex-col gap-6 mt-6">
<div class="w-full"> <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=""> <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) @foreach ($instansi as $dataInstansi)
<option {{ decode_id(@request()->instansi_id) == $dataInstansi->MsInstansiId ? 'selected' : '' }} value="{{encode_id($dataInstansi->MsInstansiId)}}">{{$dataInstansi->name}}</option> <option {{ decode_id(@request()->instansi_id) == $dataInstansi->MsInstansiId ? 'selected' : '' }} value="{{encode_id($dataInstansi->MsInstansiId)}}">{{$dataInstansi->name}}</option>
@endforeach @endforeach

View File

@ -29,9 +29,9 @@
</h3> </h3>
<div class="flex flex-col gap-6 mt-6"> <div class="flex flex-col gap-6 mt-6">
<div class="w-full"> <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=""> <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) @foreach ($instansi as $dataInstansi)
<option {{ decode_id(@request()->instansi_id) == $dataInstansi->MsInstansiId ? 'selected' : '' }} value="{{encode_id($dataInstansi->MsInstansiId)}}">{{$dataInstansi->name}}</option> <option {{ decode_id(@request()->instansi_id) == $dataInstansi->MsInstansiId ? 'selected' : '' }} value="{{encode_id($dataInstansi->MsInstansiId)}}">{{$dataInstansi->name}}</option>
@endforeach @endforeach

View File

@ -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-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="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="role">Role</th>
<th class="border font-bold text-slate-900 text-center" data-field="instansi">Instansi</th>
</tr> </tr>
</thead> </thead>
</table> </table>