update
parent
0bd370ec7f
commit
1f760458d0
|
|
@ -74,7 +74,7 @@ class HomeController extends Controller
|
|||
if(@$resource){
|
||||
$dataset = Dataset::whereIn('ms_tabel_data_id',$resource)->count();
|
||||
}
|
||||
|
||||
$persentase = (($dataset/$countresource)*100).'%';
|
||||
$btn = '<a data-toggle="modal" data-target="modal" href="#" data-id="'.encode_id($row->MsInstansiId).'" class="p-2 rounded bg-blue-500 text-white">'.$dataset.'/'.$countresource.'</a>';
|
||||
|
||||
$_data[] = [
|
||||
|
|
@ -82,6 +82,7 @@ class HomeController extends Controller
|
|||
'name' => @$row->name,
|
||||
// 'dataset' => tabelInstansi(@$row->MsInstansiId),
|
||||
'dataset' => $btn,
|
||||
'persentase' => $persentase,
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@
|
|||
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-width="10" data-field="no">No</th>
|
||||
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest" data-field="name">Instansi</th>
|
||||
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-width="20" data-field="dataset">Dataset</th>
|
||||
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-width="20" data-field="pesentase">Persentase</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
|
|
|
|||
Loading…
Reference in New Issue