/**
  * Show the form for editing the specified resource.
  *
  * @param $user
  * @return Response
  */
 public function getActivity($tickets)
 {
     if ($tickets->id) {
         $list = TicketLog::whereRaw('ticket_id = ?', array($tickets->id))->select(array('id', 'action', 'created_at'));
         if (Api::Enabled()) {
             $u = $list->get();
             return Api::make($u->toArray());
         } else {
             return Datatables::of($list)->edit_column('created_at', '{{{ Carbon::parse($created_at)->diffForHumans() }}}')->make();
         }
     }
 }