public function edit($id) { return view('app.call.edit', ['call' => Call::find($id), 'leads' => Lead::orderBy('name', 'ASC')->get(), 'accounts' => Account::orderBy('name', 'ASC')->get(), 'contacts' => Contact::orderBy('name', 'ASC')->get(), 'users' => User::orderBy('name', 'ASC')->get()]); }
public function edit($id) { return view('app.ticket.edit', ['ticket' => Ticket::withTrashed()->find($id), 'users' => User::orderBy('name', 'ASC')->get(), 'accounts' => Account::orderBy('name', 'ASC')->get(), 'contacts' => Contact::orderBy('name', 'ASC')->get()]); }
public function index() { return view('app.contact.index', ['contacts' => Contact::orderBy('updated_at', 'DESC')->get()]); }