|
|
@ -203,12 +203,11 @@ class DashboardBoDController extends Controller |
|
|
|
$year = $this->interpolateYear($year); |
|
|
|
$year = $this->interpolateYear($year); |
|
|
|
$divisions = Divisi::whereNull('parent') |
|
|
|
$divisions = Divisi::whereNull('parent') |
|
|
|
->where('company_id', $company_id) |
|
|
|
->where('company_id', $company_id) |
|
|
|
|
|
|
|
->whereNull('parent') |
|
|
|
->get(); |
|
|
|
->get(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$divisions = Divisi::whereNull('parent')->get(); |
|
|
|
|
|
|
|
foreach ($divisions as $index => $division) { |
|
|
|
foreach ($divisions as $index => $division) { |
|
|
|
|
|
|
|
|
|
|
|
$scheduleData = new Collection(); |
|
|
|
$scheduleData = new Collection(); |
|
|
|
$behindSchedule = $warning = $onSchedule = 0; |
|
|
|
$behindSchedule = $warning = $onSchedule = 0; |
|
|
|
|
|
|
|
|
|
|
|