/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $trainees = Registration::lists('english_name', 'id');
     $courses = Course::lists('course_name', 'id');
     $data = TraineeCourse::whereId($id)->firstOrFail();
     return view('traineeCourse.edit', compact('trainees', 'courses', 'data'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $trainer_course = TrainerCourse::whereid($id)->firstOrfail();
     $trainers = Trainer::lists('name', 'id');
     $courses = Course::lists('course_name', 'id');
     return view('TrainerCoursesRelation.edit', compact('trainer_course', 'trainers', 'courses'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $trainer_course = TrainerCourse::whereid($id)->firstOrfail();
     $trainers = DB::table('users')->leftjoin('role_user', 'users.id', '=', 'role_user.user_id')->where('role_user.role_id', 2)->select('users.id as id', 'users.name as name')->lists('name', 'id');
     $courses = Course::lists('course_name', 'id');
     return view('TrainerCoursesRelation.edit', compact('trainer_course', 'trainers', 'courses'));
 }
Esempio n. 4
0
 public function run()
 {
     $faker = Faker::create();
     $courseIds = Course::lists('id')->all();
     $studentIds = Student::lists('id')->all();
     //        dd($studentIds);
     foreach (range(1, count($courseIds)) as $index) {
         DB::table('course_student')->insert(['course_id' => $faker->randomElement($courseIds), 'student_id' => $faker->randomElement($studentIds)]);
     }
 }
Esempio n. 5
0
 public function run()
 {
     // Class Projects
     $bookstore = Project::create(['name' => 'J2EE E-Commerce Bookstore Website', 'alias' => 'bookstore', 'github_link' => "https://github.com/arbuthnott/JavaJ2EE", 'importance' => 5, 'completion_date' => '2015-12-12', 'description' => "Created for my college J2EE course, this is a sketch of a full e-commerce website for a bookstore, built from scratch using J2EE tools.  The site includes separate user and admin login, with a web-interface back end for administrative users to update records or inventories.  Regular site visitors have access to a modifiable profile, a virtual shopping carts and records of their previous orders.  The full code is available on github, and includes a document with one sentence descriptions of each servlet, filter, and .jsp file."]);
     $ttt = Project::create(['name' => 'TicTacToe with AI Opponent', 'alias' => 'ttt', 'github_link' => "https://github.com/arbuthnott/CPPVisualStudio/tree/master/TicTacToe", 'importance' => 3, 'completion_date' => '2015-10-01', 'description' => "This console implementation of TicTacToe was my college introduction to the C++ language. Part of the grade was awarded for having a computer player (or 'AI') that could not be beaten. My AI used the Minimax algorithm to search the entire game tree, and make an optimal move assuming it was playing against an ideal opponent."]);
     $zombies = Project::create(['name' => 'Zombie Apocalypse Predator/Prey Simulation', 'alias' => 'zombies', 'github_link' => "https://github.com/arbuthnott/CPPVisualStudio/tree/master/Zombies", 'importance' => 3, 'completion_date' => '2015-12-01', 'description' => "This was a C++ console application that ran a 'Zombie-Apocalypse' simulation on a 2D grid. Different ASCII characters and console colors were used to represent humans and zombies, and at each iteration the zombies attempted to catch the humans, and the humans to escape, following various rules.  Some credit was given for tweaking to rules to make the simulation last longer under certain starting conditions."]);
     $laravelCms = Project::create(['name' => 'Laravel Content Management System', 'alias' => 'laravelCms', 'github_link' => "https://github.com/arbuthnott/inet2005-kc", 'importance' => 5, 'completion_date' => '2015-12-15', 'description' => "This was the final project for my Web Application Development course, created cooperatively with my fellow student Kristina Lall. We used the laravel Php framework through PhpStorm to create a full front-and-back-end Content Management System. The Application includes multiple user-permission levels, and a web interface for creating pages, page areas and page contents that appear on the front end."]);
     $laravelBlog = Project::create(['name' => 'Laravel Blog Application', 'alias' => 'laravelBlog', 'github_link' => "https://github.com/arbuthnott/inet2005-ca/tree/master/Lab8", 'other_link' => "https://laracasts.com/series/laravel-5-fundamentals", 'importance' => 3, 'completion_date' => '2015-11-18', 'description' => "This was a first attempt at a Laravel Application: a Blog with complete Create/Update/Delete functionality, created along with a Laracasts tutorial. The project introduced me to Laravels Object Relational Model 'Eloquent', the cmd tools artisand and tinker, routing, and database seeding and migration."]);
     $mvc = Project::create(['name' => 'Model/View/Controller Web Application', 'alias' => 'mvc', 'github_link' => "https://github.com/arbuthnott/inet2005-ca/tree/master/Lab7", 'importance' => 3, 'completion_date' => '2015-11-08', 'description' => "This project served as in introduction to MVC Architecture, and was coded entirely from scratch (no templates or frameworks). Full Create/Update/Delete functionality was included, accessing different methods of a custom controller based on the get/post parameters found at a single site url."]);
     $life = Project::create(['name' => "Conway's Game of Life for Android", 'alias' => 'life', 'github_link' => "https://github.com/arbuthnott/AndroidStudio/tree/master/Jareds_Machine", 'importance' => 3, 'completion_date' => '2015-11-30', 'description' => "This project implements Conway's Game of Life as an Android App. It was created for a Project Management Class in collaboration with group members Jared Everett, Aaron Gallant and Ryan Hackett. The app itself is created using Java in Android Studio, but much of the project focus was on using Agile and Scrum methodologies - the project consisted of two well documented Sprints, and my role included much of organizational work (creating and updating burndown charts, etc)."]);
     $quizzer = Project::create(['name' => 'Quizzer for Android', 'alias' => 'quizzer', 'github_link' => "https://github.com/arbuthnott/AndroidStudio/tree/master/Quizzer", 'importance' => 0, 'completion_date' => '2015-10-12', 'description' => "This was my first multi-Activity Android App. The Quizzer App would use a list of term/definition pairs from a resource file, and use them to randomly generate a multiple choice quiz. The question selection, order, incorrect answers and correct answer placement are rerandomized every play, which made this App a good study tool for my college classes."]);
     $trailers = Project::create(['name' => 'Streaming Youtube Movie Trailers for Android', 'alias' => 'trailers', 'github_link' => "https://github.com/arbuthnott/AndroidStudio/tree/master/MovieTrailers", 'importance' => 0, 'completion_date' => '2015-11-15', 'description' => "This Android App was able to stream Youtube content to a video player within the app. The player was embedded in a custom Activity, not just a wrapper for the default Youtube viewer. Making this work involved generating a Youtube API key, and using some of their packages. The app maintained a stored list of trailers that the user could manage, rate, or watch when connected to the internet."]);
     $pvp = Project::create(['name' => 'Fantasy Battle for Java Swing', 'alias' => 'pvp', 'github_link' => "https://github.com/arbuthnott/JavaEclipse/tree/master/Assign3_PvPClasses", 'importance' => 2, 'completion_date' => '2015-03-02', 'description' => "This project was a battle-simulation game written in Java with a Swing user interface. A player could choose a human or automated opponent, then purchase from a list of randomly generated armaments and mythical creatures (dragons, unicorns, etc) to aid in the battle. Winnings from a battle could be used to purchase further armaments or helpers. Using some of the same battle functionality for 'players' and 'helpers' was an excersize in subclassing and polymorphism."]);
     $screensaver = Project::create(['name' => 'Demo ScreenSaver - Java Swing Animation', 'alias' => 'screensaver', 'github_link' => "https://github.com/arbuthnott/JavaEclipse/tree/master/Assign5_ScreenSaver_ChrisArbuthnott", 'importance' => 3, 'completion_date' => '2015-04-10', 'description' => "This college Java Swing project was an excersize in animation. The requirements were to implement some linear 'bouncing ball' motions and use collision detection, but I went a little further. My implementation used gradients, gradual color fades, and a scatter response to clicks in the ball display. I also created a polygon display that implemented polygons that continuously rotated about their centers, and oscillated in shape somewhat (the result with many on the screen resembled three-dimensional windblown litter)."]);
     // Extra-Curricular Projects :)
     $sliderpuzzle = Project::create(['name' => 'JavaScript Kids Slider Puzzle', 'alias' => 'sliderpuzzle', 'other_link' => "http://arbuthnott.byethost15.com/sliderpuzzle.html", 'importance' => 4, 'completion_date' => '2011-01-07', 'description' => "An early project of mine, created just after learning Html DOM and Javascript, this is a 16 tile 'slider-puzzle' with a changable image. This one is online at an old website of mine, so you can play it if you click the link."]);
     $palette = Project::create(['name' => 'Palette Chooser WebPage', 'alias' => 'palette', 'other_link' => "http://arbuthnott.byethost15.com/palette.htm", 'importance' => 3, 'completion_date' => '2011-02-07', 'description' => "I created this early project to use as an aid choosing colors for web projects. It uses javascript to randomly display colors, then allows them to selected, adjusted, and viewed side-by-side from the browser. This page is online at an old website of mine, so you can test it at the link."]);
     $planet = Project::create(['name' => 'Planet Trivia WebPage', 'alias' => 'planet', 'other_link' => "http://arbuthnott.byethost15.com/planet.htm", 'importance' => 3, 'completion_date' => '2011-04-07', 'description' => "This is an old WebPage I created for my (then) 3 year old son to play with. It's a set of trivia questions about our solar system wrapped up in a game-like interface, all implemented using javascript and css."]);
     $fishies = Project::create(['name' => 'FishPond Game using Python and SimpleGui', 'alias' => 'fishies', 'other_link' => "http://www.codeskulptor.org/#user28_wBpHroOrjnRy2A1.py", 'importance' => 8, 'completion_date' => '2012-04-10', 'description' => "This game, written using Python and SimpleGui library, uses the same movement algorithms as the fish/shapes on this website. It was written for an online course that used the 'CodeSkulptor' website. If you click on the link, you can see the source on CodeSkulptor, and clicking Play will allow you to play the game in your browser."]);
     $euler = Project::create(['name' => 'Project Euler Problem Solver, Level 2', 'alias' => 'euler', 'other_link' => "https://projecteuler.net/archives", 'importance' => 3, 'completion_date' => '2013-01-01', 'description' => "Euler was a famous mathematician, and Project Euler is a (somewhat dated) online community where users solve problems using math, algorithm design, and code. Problems like 'find the millionth prime number' are posed on the site, and your progress is updated when you solve a problem. I have solved 50 problems at Project Euler. You can browse the problems they offer at the provided link."]);
     $battlechess = Project::create(['name' => 'Battle-Chess for Java Swing', 'alias' => 'battlechess', 'github_link' => "https://github.com/arbuthnott/JavaEclipse/tree/master/BoardGame", 'importance' => 8, 'completion_date' => '2016-01-03', 'description' => "This swing game is a board-game invented by my young son and I. It is a little like chess, but the pieces can all strike at a distance in different ways, and can withstand different numbers of hits before they are 'taken'. We set out to invent the rules and play this on a physical board, but some of the calculation and data details made it a good fit for an electronic game. When time permits, I intend to create an AI player, and implement the game as an Android App."]);
     $scbugs = Project::create(['name' => 'Bug Team at SimplyCast', 'alias' => 'scbugs', 'other_link' => "https://www.simplycast.com/", 'importance' => 3, 'completion_date' => '2015-08-28', 'description' => "During my 4 month Co-op term at SimplyCast, I spent some time on the Bug Team, finding reported bugs in Phabricator, their ticketing system, claiming the bugs and attempting to find the sources of the bugs and implement fixes. The fixes involved extensive work in Php, Javascript, an SQL Database, and several Javascript libraries (jQuery UI for example). Tracking the bugs in the extensive SimplyCast Web Application was challenging, but I'm happy to report I had both challenges and some success."]);
     $scplan = Project::create(['name' => 'Design of Gamification Backend at SimplyCast', 'alias' => 'scplan', 'other_link' => "https://www.simplycast.com/", 'importance' => 10, 'completion_date' => '2015-08-28', 'description' => "I acted as 'Gamification Analyst' during my 4 month Co-op term at SimplyCast. An important part of the role was the theoretical design of how the Gamification would work: what data would be needed, how would it be catalogued and accessed, etc. One desired outcome was a recommendation system that would make reasonable suggestions about what features of the Web-App users should look at based on what they had previously used. I was successful in designing a database, and suggestion algorithms that would meet these goals, and store data that would later allow analysis of suggestion success. I was leading, not assisting in these designs, and I created the algorithms from scratch."]);
     $scimplement = Project::create(['name' => 'Implementation of Gamification Backend at SimplyCast', 'alias' => 'scimplement', 'other_link' => "https://www.simplycast.com/", 'importance' => 7, 'completion_date' => '2015-08-28', 'description' => "I acted as 'Gamification Analyst' during my 4 month Co-op term at SimplyCast. After designing algorithms for data-collection and suggestion of Web-App features to users, I was able to implement the prototype on a large portion of the live application. This involved triggering data-recording in a MySQL Database I designed and created, and writing scripts that could access and collate that data into suggestions or reports. Scalability was a factor, as data recording was triggered several thousand times each day. Inserting the triggers properly involved lots of work in Php and Javascript, as well as work with the APIs of third-party plugins, such as CK-Editor. Following implementation, data collection went on successfully for a month or so before the end of my Co-op term."]);
     $portfolio = Project::create(['name' => 'This Portfolio Website', 'alias' => 'portfolio', 'github_link' => "https://github.com/arbuthnott/Portfolio/tree/master/LaravelProj", 'importance' => 5, 'completion_date' => '2016-01-20', 'description' => "This website is entirely my own creation, leveraged using the Laravel framework. The Javascript (the swimming shapes and the ripples) and CSS Styling (look and layout of the site) is entirely original. Getting the site live required learning how to customize an Apache server for Laravel, and how to manage it on Ubuntu server remotely. For remote management I used PuTTY and the Komodo IDE."]);
     $mtm = Project::create(['name' => 'IBM Master the Mainframe Contest', 'alias' => 'mtm', 'other_link' => "http://www-03.ibm.com/systems/z/education/academic/masterthemainframe/", 'importance' => 4, 'completion_date' => '2015-10-01', 'description' => "IBM's Master the Mainframe competition is an annual timed contest in which students or hobbyists perform a series of tasks while remotely accessing some IBM Mainframe systems. There are three parts to the project with steeply ascending difficulty levels and time commitments. For the 2015 contest, I completed parts I and II in roughly one week. I gained experience using PuTTY and Vista tn3270 for remote access, and using a wide array of Command-style interfaces and Coding languages (JSON, Cobol, etc) while completing the tasks."]);
     /////////////////////////////////////
     // Attach relevant courses and skills
     /////////////////////////////////////
     $courses = Course::lists('id', 'alias');
     $skills = Skill::lists('id', 'alias');
     $bookstore->courses()->attach($courses['j2ee']);
     $bookstore->skills()->attach([$skills['j2ee'], $skills['java'], $skills['html'], $skills['css'], $skills['mvc']]);
     $ttt->courses()->attach($courses['cplus']);
     $ttt->skills()->attach([$skills['cplus'], $skills['algorithm'], $skills['vstudio']]);
     $zombies->courses()->attach($courses['cplus']);
     $zombies->skills()->attach([$skills['cplus'], $skills['algorithm'], $skills['vstudio']]);
     $laravelCms->courses()->attach($courses['php']);
     $laravelCms->skills()->attach([$skills['sqlite'], $skills['mysql'], $skills['laravel'], $skills['php'], $skills['phpstorm'], $skills['mvc'], $skills['database'], $skills['css'], $skills['bash'], $skills['git'], $skills['sql']]);
     $laravelBlog->courses()->attach($courses['php']);
     $laravelBlog->skills()->attach([$skills['mysql'], $skills['laravel'], $skills['php'], $skills['phpstorm'], $skills['elearn'], $skills['mvc']]);
     $mvc->courses()->attach($courses['php']);
     $mvc->skills()->attach([$skills['php'], $skills['mvc'], $skills['phpstorm'], $skills['git']]);
     $life->courses()->attach([$courses['android'], $courses['management']]);
     $life->skills()->attach([$skills['agile'], $skills['scrum'], $skills['android'], $skills['uml'], $skills['comm']]);
     $quizzer->courses()->attach($courses['android']);
     $quizzer->skills()->attach([$skills['android'], $skills['java'], $skills['ui']]);
     $trailers->courses()->attach($courses['android']);
     $trailers->skills()->attach([$skills['android'], $skills['java'], $skills['ui'], $skills['sqlite']]);
     $pvp->courses()->attach($courses['oopIntro']);
     $pvp->skills()->attach([$skills['java'], $skills['eclipse'], $skills['oop'], $skills['uml']]);
     $screensaver->courses()->attach($courses['oopIntro']);
     $screensaver->skills()->attach([$skills['java'], $skills['eclipse'], $skills['oop'], $skills['math'], $skills['algorithm']]);
     $sliderpuzzle->skills()->attach([$skills['js'], $skills['css'], $skills['html'], $skills['math']]);
     $palette->skills()->attach([$skills['js'], $skills['css'], $skills['html'], $skills['ui']]);
     $planet->skills()->attach([$skills['js'], $skills['css'], $skills['html']]);
     $fishies->courses()->attach([$courses['python1'], $courses['python2']]);
     $fishies->skills()->attach([$skills['python'], $skills['math'], $skills['algorithm'], $skills['ui']]);
     $euler->courses()->attach([$courses['masters']]);
     $euler->skills()->attach([$skills['math'], $skills['algorithm'], $skills['java']]);
     $battlechess->skills()->attach([$skills['java'], $skills['eclipse']]);
     $scbugs->skills()->attach([$skills['php'], $skills['js'], $skills['jquery'], $skills['phab'], $skills['git'], $skills['bash'], $skills['putty']]);
     $scplan->courses()->attach([$courses['masters']]);
     $scplan->skills()->attach([$skills['algorithm'], $skills['math'], $skills['database'], $skills['php']]);
     $scimplement->courses()->attach([$courses['linux']]);
     $scimplement->skills()->attach([$skills['vim'], $skills['komodo'], $skills['php'], $skills['js'], $skills['jquery'], $skills['git'], $skills['mysql'], $skills['sql'], $skills['ajax'], $skills['putty']]);
     $portfolio->courses()->attach([$courses['php']]);
     $portfolio->skills()->attach([$skills['vim'], $skills['php'], $skills['laravel'], $skills['js'], $skills['css'], $skills['putty'], $skills['komodo'], $skills['jquery'], $skills['git']]);
     $mtm->skills()->attach([$skills['putty'], $skills['bash'], $skills['elearn']]);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $courses = Course::lists('course_name', 'id');
     $data = Exam::findOrNew($id);
     return view('exam.edit', compact('data', 'courses'));
 }
 public function selectTrack($TrainingId)
 {
     $courses = Course::lists('course_name', 'id');
     $courseId = Course::wheretraining_id($TrainingId)->get();
     //dd($courseId);
     return view('traineeCourse/selectTrack', compact('courses', 'TrainingId', 'courseId'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $schedules = Schedule::find($id);
     $academicRegistrations = AcademicRegistration::lists('academic_year', 'id');
     $programStudies = ProgramStudy::lists('name', 'id');
     $courses = Course::lists('course_name', 'id');
     $studies = Study::lists('study_name', 'id');
     $lecturers = Lecturer::lists('name', 'id');
     $days = Day::lists('day', 'id');
     return view('dashboard.admin.schedule.edit', ['schedule' => $schedules, 'academicRegistration' => $academicRegistrations, 'programStudy' => $programStudies, 'course' => $courses, 'study' => $studies, 'lecturer' => $lecturers, 'day' => $days]);
 }