Working on MMC

This commit is contained in:
Александр Бабкин
2022-07-14 21:23:54 +03:00
parent ba97a6afc1
commit 36698241ed
4 changed files with 137 additions and 144 deletions

View File

@@ -23,9 +23,9 @@ class MMCController extends Controller
$project_id = $request->session()->get('project_id');
$project = Project::find($project_id);
$top_auks = $project->auks()->where('parent_id', 0)->get()->sortBy('auk_name');
if (count($top_auks)) {
$mmc = $top_auks[0]->mmcs;
}
// if (count($top_auks)) {
// $mmc = $top_auks[0]->mmcs;
// }
return view('mmc.list', ['project' => $project, 'top_auks' => $top_auks]);
}