|
|
@ -350,8 +350,9 @@ class DashboardBoDController extends Controller |
|
|
|
public function getDetailExpenditure($year = '%') |
|
|
|
public function getDetailExpenditure($year = '%') |
|
|
|
{ |
|
|
|
{ |
|
|
|
$year = $this->interpolateYear($year); |
|
|
|
$year = $this->interpolateYear($year); |
|
|
|
$projects = Project::where('mulai_proyek', 'like', $year) |
|
|
|
$projects = Project::select('m_proyek.*', 'md.name as divisi_name') |
|
|
|
/* ->orWhere('akhir_proyek', 'like', $year) */ |
|
|
|
->where('mulai_proyek', 'like', $year) |
|
|
|
|
|
|
|
->join('m_divisi as md', 'md.id', '=', 'm_proyek.divisi_id') |
|
|
|
->orderBy('id', 'desc') |
|
|
|
->orderBy('id', 'desc') |
|
|
|
->get(); |
|
|
|
->get(); |
|
|
|
foreach ($projects as $project) { |
|
|
|
foreach ($projects as $project) { |
|
|
|