/**
  * Bind data to the view.
  *
  * @param  View  $view
  * @return void
  */
 public function compose(View $view)
 {
     $tasks = $this->tasks->find($view->getData()['tasks']['id']);
     /**
      * [User assigned the task]
      * @var contact
      */
     $contact = $tasks->assignee;
     $client = $tasks->clientAssignee;
     $view->with('contact', $contact);
     $view->with('client', $client);
 }
 /**
  * Display a list of all the user's task. 
  *
  * @param Request $request
  * @return Response
  */
 public function index(Request $request)
 {
     return view('tasks.index', ['tasks' => $this->tasks->forUser($request->user())]);
 }