/** * Show the form for creating a new resource. * * @return Response */ public function create() { $congregation_list = Congregation::lists('name', 'id'); $staff_list = Staff::lists('name', 'id'); $congregations = Congregation::get_all_congregations(); return view('attendances.create', compact('congregations', 'congregation_list', 'staff_list')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $congregations = Congregation::get_all_congregations(); $day_array = array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"); return view('congregations.index', compact('congregations', 'day_array')); }