Пример #1
0
 public function index()
 {
     return view('app.lead.index', ['leads' => Lead::orderBy('updated_at', 'DESC')->get()]);
 }
Пример #2
0
 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()]);
 }