main
Ilham Wara Nugroho 2026-04-08 15:23:36 +07:00
parent ff171d041e
commit 7d7075604a
1 changed files with 2 additions and 2 deletions

View File

@ -70,11 +70,11 @@ class HomeController extends Controller
) as total_resource
")
->value('total_resource');
dd(json_decode(session('resource_data')));
$data['total'] = Dataset::where('instansi_id', session('instansi_id'))
->where('status',1)
->where('tahun',date('Y'))
->whereIn('template_id', session('resource_data'))->count();
->whereIn('template_id', json_decode(session('resource_data')))->count();
// $data['total'] = Instansi::where('MsInstansiId',session('instansi_id'))->join('dataset as d', 'd.instansi_id', '=', 'ms_instansi.MsInstansiId')
// ->whereRaw("ms_instansi.resource_data IS NOT NULL