|
|
@ -278,7 +278,7 @@ class ProjectController extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
$projectsByType = DB::table('m_proyek') |
|
|
|
$projectsByType = DB::table('m_proyek') |
|
|
|
->select('m_type_proyek.name', DB::raw('count(id) as total')) |
|
|
|
->select('m_type_proyek.name', DB::raw('count(m_type_proyek.id) as total')) |
|
|
|
->join('m_type_proyek', 'm_type_proyek.id', '=', 'm_proyek.type_proyek_id') |
|
|
|
->join('m_type_proyek', 'm_type_proyek.id', '=', 'm_proyek.type_proyek_id') |
|
|
|
->groupBy('m_type_proyek.name') |
|
|
|
->groupBy('m_type_proyek.name') |
|
|
|
->get(); |
|
|
|
->get(); |
|
|
|