Exemplo n.º 1
0
 public function index()
 {
     $guests = Guest::all();
     return view('guests.index', compact('guests'));
 }
Exemplo n.º 2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Requests\CobaRequest $request)
 {
     return Guest::all();
 }
Exemplo n.º 3
0
 public function index()
 {
     $items = Guest::all();
     return $items;
 }
Exemplo n.º 4
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $data = array('title' => 'Dashboard', 'household_count' => Household::all()->count(), 'family_count' => Family::all()->count(), 'person_count' => Person::all()->count(), 'guest_count' => Guest::all()->count());
     return view('dashboard')->with($data);
 }
 public function listGuest()
 {
     $data['title'] = 'MANAGE GUEST';
     $data['guest'] = Guest::all();
     return view('default/listGuest', $data);
 }
Exemplo n.º 6
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return Guest::all();
 }
Exemplo n.º 7
0
 /**
  * Generate all of the q-codes for all users
  *
  * @param none
  *
  * @return response
  */
 public function generate_qcodes()
 {
     $guests = Guest::all();
     $count = 0;
     foreach ($guests as $guest) {
         $guest->qcode = $guest->generate_qcode();
         $guest->save();
         $count++;
     }
     return redirect('classmates')->with('message', "{$count} Guests Updated");
 }