Ejemplo n.º 1
0
 /**
  * Display a list of all of the user's tickets.
  *
  * @param  Project  $project
  * @return Response
  */
 public function index(Project $project)
 {
     $tickets = $this->tickets->byProject($project);
     //dd($tickets);
     //return $tickets->first()->user;
     return view('tickets.index', ['tickets' => $tickets, 'project' => $project]);
 }
Ejemplo n.º 2
0
 /**
  * Display a list of all of the user's tickets.
  *
  * @param  Project  $project
  * @return Response
  */
 public function scrum(Project $project)
 {
     $tickets = $this->tickets->byProject($project);
     $statuses = Status::all();
     $data = array();
     $i = 0;
     foreach ($statuses as $status) {
         $data[] = array('status' => $status, 'tickets' => array());
         foreach ($tickets as $ticket) {
             if ($ticket->status->id == $status->id) {
                 array_push($data[$i]['tickets'], $ticket);
             }
         }
         $i++;
     }
     //		dd($data);
     return view('scrum.board', ['scrum_data' => $data, 'project' => $project]);
 }
 /**
  * Display a project.
  *
  * @param  Request  $request
  * @return Response
  */
 public function view(Request $request)
 {
     return view('tickets.index', ['tickets' => $this->tickets->byProject($request->project())]);
 }
Ejemplo n.º 4
0
 /**
  * Display a list of all of the user's tickets.
  *
  * @param  Project  $project
  * @return Response
  */
 public function index(Project $project)
 {
     $tickets = $this->tickets->byProject($project);
     return view('scrum.index', ['tickets' => $tickets, 'project' => $project]);
 }