|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = 'All';
|
|
|
$modul = 'All';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.compound_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.compound_index', compact('user','site','staff','deedlaw','now','modul','semua','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function pre_notice_index(){
|
|
|
public function pre_notice_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = '03';
|
|
|
$modul = '03';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.new_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.prenotice_index', compact('user','site','staff','deedlaw','now','modul','semua','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function new_index(){
|
|
|
public function new_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = '03';
|
|
|
$modul = '03';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.new_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.new_index', compact('user','site','staff','deedlaw','now','modul','semua','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function investigation_index(){
|
|
|
public function investigation_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = '04';
|
|
|
$modul = '04';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.investigation_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.investigation_index', compact('user','site','staff','deedlaw','now','modul','semua','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function notice_index(){
|
|
|
public function notice_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = '05';
|
|
|
$modul = '05';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.notice_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.notice_index', compact('user','site','staff','deedlaw','now','modul','semua','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function confiscated_index(){
|
|
|
public function confiscated_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = '06-07';
|
|
|
$modul = '06-07';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.confiscated_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.confiscated_index', compact('user','site','staff','deedlaw','now','modul','semua','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function collapsed_index(){
|
|
|
public function collapsed_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$staff = StaffDetail::where('roles_access','PenguatKuasa')->whereIn('department_ids',$user->StaffDetail->department_ids)->get();
|
|
|
$staff = StaffDetail::where('roles_access','PenguatKuasa')->whereIn('department_ids',$user->StaffDetail->department_ids)->get();
|
|
|
$faulty = Deedlaw::with('Faulty')->whereIn('department_ids',$user->StaffDetail->department_ids)->get();
|
|
|
$faulty = Deedlaw::with('Faulty')->whereIn('department_ids',$user->StaffDetail->department_ids)->get();
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.collapsed_index', compact('user','site','staff','faulty','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.collapsed_index', compact('user','site','staff','faulty','pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public function completed_index(){
|
|
|
public function completed_index(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
if(count($user->StaffDetail->department_ids) > 1){
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department','all')->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department','all')->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department','all')->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department','all')->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department','all')->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
$by = ReportOverallCompound::where('department','all')->where('status','Berbayar')->first();
|
|
|
}else {
|
|
|
}else {
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
$overall = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','all')->where('status','all')->first();
|
|
|
// $n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
$n = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','02')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$b = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','03')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$pk = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','04')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
$na = ReportOverallCompound::where('department',$user->StaffDetail->department_ids[0])->where('modul','05')->where('status','Belum Bayar')->first();
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$semua = $overall->total;
|
|
|
$semua = $overall->total;
|
|
|
// $pre_notice = $n->total;
|
|
|
|
|
|
|
|
|
$pre_notice = $n->total;
|
|
|
$baru = $b->total;
|
|
|
$baru = $b->total;
|
|
|
$invest = $pk->total;
|
|
|
$invest = $pk->total;
|
|
|
$notice = $na->total;
|
|
|
$notice = $na->total;
|
|
|
|
|
|
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$now = Carbon::now()->format('Y-m-d');
|
|
|
$modul = 'All';
|
|
|
$modul = 'All';
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.completed_index', compact('user','site','staff','deedlaw','now','modul','semua','baru','invest','notice','inven','collap','comp'));
|
|
|
|
|
|
|
|
|
return view('main-dashboard.compound.completed_index', compact('user','site','staff','deedlaw','now','modul','semua', 'pre_notice','baru','invest','notice','inven','collap','comp'));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|