|
|
@@ -51,17 +51,18 @@ class TaskController extends Controller |
|
|
|
|
|
|
|
if($request->dashboard == "true"){ |
|
|
|
|
|
|
|
if($request->modul == '02') |
|
|
|
{ |
|
|
|
$compound = Compound::with('ConfidentialFile')->where('confidential_file_id',$request->confidential_id)->first(); |
|
|
|
$faulty = Faulty::with('DeedLaw', 'Department') ->where('_id', $compound->seksyen_kesalahan_n)->first(); |
|
|
|
$jbkod = $compound->jbkod_n; |
|
|
|
} |
|
|
|
else{ |
|
|
|
// if($request->modul == '02') |
|
|
|
// { |
|
|
|
// $compound = Compound::with('ConfidentialFile')->where('confidential_file_id',$request->confidential_id)->first(); |
|
|
|
// $faulty = Faulty::with('DeedLaw', 'Department') ->where('_id', $compound->seksyen_kesalahan_n)->first(); |
|
|
|
// $jbkod = $compound->jbkod_n; |
|
|
|
// } |
|
|
|
// else{ |
|
|
|
$compound = Compound::with('ConfidentialFile')->where('kpd',$request->kpd)->first(); |
|
|
|
$faulty = Faulty::with('DeedLaw', 'Department') ->where('_id', $compound->seksyen_kesalahan)->first(); |
|
|
|
$faulty = Faulty::with('DeedLaw', 'Department') ->where('_id', $compound->seksyen_kesalahan) |
|
|
|
->orWhere('_id', $compound->seksyen_kesalahan_n)->first(); |
|
|
|
$jbkod = $compound->jbkod; |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
$roles = Roles::where('kod', $request->kategori_modul)->first(); |
|
|
|
|
|
|
@@ -144,9 +145,9 @@ class TaskController extends Controller |
|
|
|
{ |
|
|
|
$compound = Compound::with('ConfidentialFile')->where('non',$request->non)->first(); |
|
|
|
$faulty = Faulty::where('_id', $compound->seksyen_kesalahan_n)->first(); |
|
|
|
$department = Department::where('_id', $compound->jbkod_n)->first(); |
|
|
|
$department = Department::where('_id', $compound->jbkod)->first(); |
|
|
|
$deedlaw = DeedLaw::where('_id', $compound->akta_n)->first(); |
|
|
|
$jbkod = $compound->jbkod_n; |
|
|
|
$jbkod = $compound->jbkod; |
|
|
|
$kpd = $compound->non; |
|
|
|
|
|
|
|
// dd($faulty); |
|
|
@@ -334,7 +335,7 @@ class TaskController extends Controller |
|
|
|
$faulty = Faulty::with('DeedLaw')->where('_id',$compound->seksyen_kesalahan)->first(); |
|
|
|
$faultyN = Faulty::with('DeedLaw')->where('_id', $compound->seksyen_kesalahan_n)->first(); |
|
|
|
$department = Department::where('_id', $compound->jbkod)->first(); |
|
|
|
$departmentN = Department::where('_id', $compound->jbkod_n)->first(); |
|
|
|
$departmentN = Department::where('_id', $compound->jbkod)->first(); |
|
|
|
|
|
|
|
info($faultyN); |
|
|
|
|