main
Ilham Wara Nugroho 2026-04-08 15:08:56 +07:00
parent fa0990e7ca
commit 4cc59b9bb9
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class HomeController extends Controller
->value('total_resource'); ->value('total_resource');
$data['total'] = \DB::table('dataset as d') $data['total'] = \DB::table('dataset as d')
->where('d.instansi_id', session('instansi_id')) ->where('d.instansi_id', session('instansi_id'))
->where('d.status',0)
->whereIn('d.template_id', function ($q) { ->whereIn('d.template_id', function ($q) {
$q->selectRaw('(jsonb_array_elements_text(resource_data::jsonb))::int') $q->selectRaw('(jsonb_array_elements_text(resource_data::jsonb))::int')
->from('ms_instansi') ->from('ms_instansi')