Ejemplo n.º 1
0
 public function create()
 {
     $menu = 'registration';
     $generations = Generation::all();
     $classifications = Classification::where('category', '=', 'Registration')->get();
     $locations = Location::where('id', '<>', Auth::user()->location_id)->get();
     $employees = Employee::all();
     $courses = Course::where('project_id', '=', Auth::user()->curr_project_id)->where('location_id', '=', Auth::user()->location_id)->where('availability', '=', 1)->where('active', '=', 1)->get();
     $discounts = Discount::all();
     $promotions = Promotion::all();
     $vouchers = Voucher::all();
     $charges = Charge::all();
     $partners = Partner::where('location_id', '=', Auth::user()->location_id)->get();
     return View::make('registrations.create', compact('classifications', 'locations', 'employees', 'generations', 'courses', 'charges', 'discounts', 'promotions', 'vouchers', 'partners', 'menu'));
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of vouchers
  *
  * @return Response
  */
 public function index()
 {
     $vouchers = Voucher::all();
     return View::make('vouchers.index', compact('vouchers'));
 }
Ejemplo n.º 3
0
 public function index()
 {
     $vouchers = Voucher::all();
     $menu = 'project';
     return View::make('vouchers.index', compact('vouchers', 'menu'));
 }