public function get_update() { $layout = Layout::where('studio_id', "=", $this->studio_id)->order_by('size_x', 'asc')->order_by('size_y', 'asc')->get(); $name = Studio::find($this->studio_id); $name = $name->name; return View::Make('user.pricing.update')->with('layout', $layout)->with('name', $name); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $error = Session::get('error'); $success = Session::get('success'); $tclass = ClassModel::count(); $tsubject = Subject::count(); $tstudent = Student::count(); return View::Make('dashboard', compact('error', 'success', 'tclass', 'tsubject', 'tstudent')); }
public function get_update() { $category = Category::find($this->category_id); $organisations = Organisation::get(); $selected_org = array(); foreach ($category->organisations as $o) { $selected_org[] = $o->id; } return View::Make('user.categories.update')->with('category', $category)->with('organisations', $organisations)->with('selected_org', $selected_org); }
public function get_update() { $gallery = Gallery::Find($this->gallery_id); $organisations = Organisation::get(); $selected_org = array(); foreach ($gallery->organisations as $o) { $selected_org[] = $o->id; } return View::Make('user.galleries.update')->with('gallery', $gallery)->with('organisations', $organisations)->with('selected_org', $selected_org); }
public function get_update() { $testimonial = Testimonial::Find($this->testimonial_id); $organisations = Organisation::get(); $selected_org = array(); foreach ($post->organisations as $o) { $selected_org[] = $o->id; } return View::Make('user.testimonials.update')->with('testimonial', $testimonial)->with('organisations', $organisations)->with('selected_org', $selected_org); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $formdata = new formfoo(); $formdata->class = ""; $formdata->section = ""; $formdata->shift = ""; $formdata->exam = ""; $formdata->session = ""; $classes = ClassModel::lists('name', 'code'); return View::Make('app.tabulationsheet', compact('classes', 'formdata')); }
public function get_update() { $page = Page::Find($this->page_id); $user = Auth::user(); $organisations = Organisation::get(); $selected_org = array(); foreach ($page->organisations as $o) { $selected_org[] = $o->id; } return View::Make('user.pages.update')->with('page', $page)->with('user', $user)->with('organisations', $organisations)->with('selected_org', $selected_org); }
public function get_update() { $faq = Faq::find($this->faq_id); $faqcategories = Faqcategory::get(); $organisations = Organisation::get(); $selected = array(); foreach ($faq->faqcategories as $c) { $selected[] = $c->id; } $selected_org = array(); foreach ($faq->organisations as $o) { $selected_org[] = $o->id; } return View::Make('user.faqs.update')->with('faq', $faq)->with('faqcategories', $faqcategories)->with('organisations', $organisations)->with('selected_org', $selected_org)->with('selected', $selected); }
public function showFavorites() { if (Auth::check()) { $favorites = Favorite::where('user_id', '==', Auth::User()->id)->get(); $posts = array(); $i = 0; foreach ($favorites as $favorite) { $posts[i] = Post::where('post_id', '==', $favorite->post_id)->get(); return Post::where('post_id', '==', $favorite->post_id)->get(); } return View::Make('favorites', ['posts' => $posts]); } else { return Redirect::to('login_index'); } }
public function get_update() { $post = Post::Find($this->post_id); $user = Auth::user(); $categories = Category::get(); $organisations = Organisation::get(); $selected = array(); foreach ($post->categories as $c) { $selected[] = $c->id; } $selected_org = array(); foreach ($post->organisations as $o) { $selected_org[] = $o->id; } return View::Make('user.posts.update')->with('post', $post)->with('user', $user)->with('categories', $categories)->with('selected', $selected)->with('organisations', $organisations)->with('selected_org', $selected_org); }
/** * Store a newly created resource in storage. * POST /users * * @return Response */ public function store() { //return View::make('users.create'); $data = Input::only(['first_name', 'last_name', 'has_access', 'email', 'password', 'password_confirmation']); $validator = Validator::make($data, ['first_name' => 'required|min:5', 'last_name' => 'required|min:5', 'email' => 'required|email|min:5', 'has_access' => 'required|has_access|min:2', 'password' => 'required|min:5|confirmed', 'password_confirmation' => 'required|min:5']); $newUser = User::create($data); if ($newUser) { Auth::login($newUser); //return Redirect::route('user.create'); $response = "Ok."; return View::Make('users.create')->with('result', $response); } if ($validator->fails()) { return Redirect::route('user.create')->withErrors($validator)->withInput(); } return Redirect::route('user.create')->withInput(); }
public function get_view() { $quotes = Quotation::order_by('id', 'asc')->get(); return View::Make('user.quotations.view')->with('quotes', $quotes); }
function verPagina() { return View::Make('vista_temarios'); }
public function getList() { return View::Make('mods.list'); }
public function search() { return View::Make('post.search'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $gpa = GPA::find($id); $gpaes = GPA::all(); return View::Make('app.GPA', compact('gpaes', 'gpa')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $class = ClassModel::find($id); return View::Make('app.classEdit', compact('class')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $attendance = DB::table('Attendance')->join('Student', 'Attendance.regiNo', '=', 'Student.regiNo')->select('Attendance.id', 'Attendance.regiNo', 'Student.rollNo', 'Student.firstName', 'Student.middleName', 'Student.lastName', 'Attendance.status')->where('Attendance.id', '=', $id)->first(); return View::Make('app.attendanceEdit', compact('attendance')); }
public function ProcessPayment() { $this->layout->hide_returning_customer = true; $this->layout->hide_greeting = true; $np = Input::get('np'); $verified = Input::get('verified'); if (md5($np . $_SERVER['HTTP_HOST']) == $verified) { $this->layout->content .= View::Make('client_thankyou', array('instantly' => true, 'client' => $this->GetClientFromSession())); } else { $this->layout->content .= View::Make('client_thankyou', array('instantly' => false, 'client' => $this->GetClientFromSession())); } // $this->layout->content .= "<pre>". print_r( $this->leadtracapi->GetClient(Session::get('fileNumber'), array('LastName')), 1)." </pre>"; }
<?php Route::get('/', function () { return View::Make('dashboard'); }); Route::group(array('prefix' => 'api'), function () { Route::get('/', function () { $url = URL::to('/') . '/api'; return Response::json(array('status' => $url, 'words' => $url . '/words', 'word' => $url . '/words/{id}', 'randomwords' => $url . '/randomwords', 'moderate_words' => $url . '/moderate/words', 'moderate_word' => $url . '/moderate/words/{id}', 'user_words' => $url . '/user/{id}/words', 'categories' => $url . '/categories', 'category' => $url . '/category/{id}', 'settings' => $url . '/settings'), 200); }); Route::post('/', array('before' => 'auth', function () { return Response::json(['Authenticated'], 200); })); // Route::get('randomwords', 'WordCardsController@randomwords'); Route::group(['before' => 'auth.admin'], function () { Route::resource('words', 'WordCardsController'); /* Moderation */ Route::get('moderate/words', 'MwordsController@show_all'); Route::get('moderate/words/{word_id}', 'MwordsController@show'); Route::put('moderate/words/{word_id}', 'MwordsController@update'); Route::delete('moderate/words/{word_id}', 'MwordsController@decline'); Route::delete('moderate/{word_id}/remove', 'MwordsController@remove_word'); Route::post('moderate/words/{word_id}/changestatus', 'MwordsController@change_status'); Route::post('moderate/words/{word_id}/acceptpush', 'MwordsController@acceptPush'); /* Category */ Route::resource('categories', 'CategoriesController'); Route::get('/categories/{category_id}/words', 'CategoriesController@show_words'); Route::get('users', 'UsersController@index'); Route::resource('users', 'UsersController'); Route::post('settings', 'SettingsController@update'); });
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $classes = ClassModel::lists('name', 'code'); $student = Student::find($id); return View::Make("app.studentEdit", compact('student', 'classes')); }
public function smsLog() { $smslogs = SMSLog::all(); return View::Make('app.smsLog', compact('smslogs')); }
public function getResetPassword($token = null) { $title = 'Reset Password - ' . $this->site_name; $one_hour_ago = Carbon\Carbon::now()->subHours(1)->toDateTimeString(); if (!$token) { return Redirect::route('index'); } $reset_request = PasswordReminder::where('created_at', '>=', $one_hour_ago)->where('token', $token)->first(); if (!$reset_request) { return Redirect::route('index'); } $user = User::where('email', $reset_request->email)->first(); return View::Make('user.reset_password', ['title' => $title, 'token' => $token, 'username' => $user->username]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $classes = ClassModel::all(); return View::Make('app.promotion', compact('classes')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $marks = DB::table('Marks')->join('Student', 'Marks.regiNo', '=', 'Student.regiNo')->select('Marks.id', 'Marks.regiNo', 'Student.rollNo', 'Student.firstName', 'Student.middleName', 'Student.lastName', 'Marks.written', 'Marks.mcq', 'Marks.practical', 'Marks.ca', 'Marks.total', 'Marks.grade', 'Marks.point', 'Marks.Absent')->where('Marks.id', '=', $id)->first(); return View::Make('app.markEdit', compact('marks')); }
public function getAbout() { $title = 'About - ' . $this->site_name; $meta_description = 'About & FAQ for Modpack Index.'; return View::Make('pages.about', ['title' => $title, 'meta_description' => $meta_description]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $set = User::select("*")->where('id', '=', Auth::id())->first(); return View::Make('app.Settings', compact('set')); }
public function ProcessPayment() { $this->layout->hide_returning_customer = true; $this->layout->hide_greeting = true; $this->layout->content .= View::Make('client_thankyou'); // $this->layout->content .= "<pre>". print_r( $this->leadtracapi->GetClient(Session::get('fileNumber'), array('LastName')), 1)." </pre>"; }
public function mecanic($val) { $date = date("d/m/Y"); $programari = DB::table('programari')->where('mecanic', '=', $val)->where('data', '=', $date)->get(); return View::Make('programari.mecanic')->with('val', $programari); }
public function displayBidForm() { return View::Make('bidform'); }