main
Ilham Wara Nugroho 2026-03-03 08:36:36 +07:00
parent 0c153a61e3
commit f8aee0974b
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class HomeController extends Controller
foreach ($data as $key => $row) { foreach ($data as $key => $row) {
//cek upload //cek upload
$status = ''; $status = '';
$cek = Dataset::where('ms_tabel_data_id',$row->MsTabelDataId)->where('tahun',date('Y'))->first(); $cek = Dataset::where('instansi_id',session('instansi_id'))->where('ms_tabel_data_id',$row->MsTabelDataId)->where('tahun',date('Y'))->first();
if(@$cek){ if(@$cek){
if(@$cek->status == 1){ if(@$cek->status == 1){
$status = ' <small class="p-1 w-full flex 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>';