/**
  * Display the specified resource.
  * @param  int $id
  * @param RevenueVsCost $revenue_vs_cost
  * @return Response
  */
 public function show($id, RevenueVsCost $revenue_vs_cost)
 {
     $project = Project::with(['revenues', 'costs', 'costs.staff'])->findOrFail($id);
     $performance = $revenue_vs_cost->get(['project_id' => $id], ['month_logged']);
     return view('project.show', compact('project', 'performance'));
 }
Beispiel #2
0
 public function monthly(RevenueVsCost $revenue_vs_cost)
 {
     $performance = $revenue_vs_cost->get([], ['month_logged']);
     return view('reports.monthly', compact('performance'));
 }