main
Ilham Wara Nugroho 2026-02-20 14:51:12 +07:00
parent 5a59a3187c
commit 30b821c7bd
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class HomeController extends Controller
if(@$resource){
$dataset = Dataset::whereIn('ms_tabel_data_id',$resource)->count();
}
$persentase = $countresource > 0 ? (($dataset/$countresource)*100) : 0;
$persentase = $countresource > 0 ? (($dataset/$countresource)*100) : '0';
$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[] = [

View File

@ -82,7 +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>
<th class="px-6 border py-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest text-center" data-width="20" data-field="persentase">Persentase</th>
</tr>
</thead>
<tbody></tbody>