update
parent
7cdc95c04c
commit
8ae393136d
|
|
@ -70,11 +70,10 @@ class HomeController extends Controller
|
||||||
) as total_resource
|
) as total_resource
|
||||||
")
|
")
|
||||||
->value('total_resource');
|
->value('total_resource');
|
||||||
dd(session());
|
|
||||||
$data['total'] = Dataset::where('instansi_id', session('instansi_id'))
|
$data['total'] = Dataset::where('instansi_id', session('instansi_id'))
|
||||||
->where('status',1)
|
->where('status',1)
|
||||||
->where('tahun',date('Y'))
|
->where('tahun',date('Y'))
|
||||||
->whereIn('template_id', session('instansi_id'))->count();
|
->whereIn('template_id', session('resource_data'))->count();
|
||||||
|
|
||||||
// $data['total'] = Instansi::where('MsInstansiId',session('instansi_id'))->join('dataset as d', 'd.instansi_id', '=', 'ms_instansi.MsInstansiId')
|
// $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
|
// ->whereRaw("ms_instansi.resource_data IS NOT NULL
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue