public function activities($id) { return view('app.ticket.activities', ['ticket' => Ticket::withTrashed()->find($id)]); }
public function index() { return view('app.dashboard.index', ['opportunities' => Opportunity::where('user_id', auth()->user()->id)->where('opportunity_stage_id', '<=', 3)->orderBy('updated_at', 'DESC')->get(), 'tickets' => Ticket::where('user_id', auth()->user()->id)->orderBy('updated_at', 'DESC')->get()]); }