示例#1
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()]);
 }
示例#2
0
 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()]);
 }
示例#3
0
 public function index()
 {
     return view('app.contact.index', ['contacts' => Contact::orderBy('updated_at', 'DESC')->get()]);
 }