| @@ -326,16 +326,20 @@ class TaskController extends Controller | |||
| $tawaran = $compound->jumlah_kemaskini_kompaun; | |||
| } | |||
| $staff = Staff::with('StaffDetail')->where('_id', $compound->dikeluarkan)->first(); | |||
| $staff = Staff::with('StaffDetail')->where('_id', $compound->dikeluarkan)->first(); | |||
| $staffN = Staff::with('StaffDetail')->where('_id', $compound->dikeluarkan_n)->first(); | |||
| $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(); | |||
| info($faultyN); | |||
| $upload [] = [ 'name' => 'compound', 'contents' => $compound ]; | |||
| $upload [] = [ 'name' => 'faulty', 'contents' => $faulty ]; | |||
| $upload [] = [ 'name' => 'faultyN', 'contents' => $faultyN ]; | |||
| $upload [] = [ 'name' => 'staff', 'contents' => $staff ]; | |||
| $upload [] = [ 'name' => 'staff', 'contents' => $staff ]; | |||
| $upload [] = [ 'name' => 'staffN', 'contents' => $staffN ]; | |||
| $upload [] = [ 'name' => 'department', 'contents' => $department ]; | |||
| $upload [] = [ 'name' => 'departmentN', 'contents' => $departmentN ]; | |||
| $upload [] = [ 'name' => 'tawaran', 'contents' => $tawaran ]; | |||