update
parent
fa0990e7ca
commit
4cc59b9bb9
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue