示例#1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return view('admin', ['customers' => Customer::select('id', 'name', 'phoneMob', 'address')->orderBy('name')->get(), 'items' => MenuItem::all(), 'stats' => Order::adminStats(), 'customerCount' => Customer::all()->count()]);
 }
示例#2
0
 public function index()
 {
     return view('customer', ['customers' => Customer::select('id', 'name', 'phoneMob', 'address')->orderBy('name')->get()]);
 }