update
parent
4cc59b9bb9
commit
e059da856f
|
|
@ -72,7 +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)
|
->where('d.status',1)
|
||||||
->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