where('active', true)->get(); foreach ($sections as $key => $section) { $section->en = Blade::render($section->en); $section->zh_cn = Blade::render($section->zh_cn); } return $sections->keyBy('section'); }); } }