Esempio n. 1
0
 /**
  * Display issues assigned to current user for a project
  *
  * @param Project $project
  *
  * @return \Illuminate\View\View
  */
 public function getAssigned(Project $project)
 {
     $issues = $project->listAssignedIssues($this->auth->user()->id);
     return view('project.index', ['project' => $project, 'active' => 'issue_assigned_to_you', 'issues' => $issues, 'open_issues_count' => $project->openIssuesCount()->count(), 'closed_issues_count' => $project->closedIssuesCount()->count(), 'assigned_issues_count' => $issues->count(), 'notes_count' => $project->notes()->count(), 'sidebar' => 'project']);
 }