@extends('layouts.master') @section('navigation') @include('local.managers.admins._new_navigation') @stop @section('main')
Create a Course
{{ Form::open(['action' => 'CoursesController@create','enctype'=>"multipart/form-data"]) }}
{{ Form::label("name",'Name')}} {{ Form::text('name', Input::old('name'), ['class'=>'form-control', 'placeholder' => "Introducción a la ..."])}}
{{ Form::label('code', 'Code') }} {{ Form::text('code', Input::old('code'), ['class' => 'form-control', 'placeholder' => 'TEST', 'maxLength' => 4]) }}
{{ Form::label('number', 'Number') }} {{ Form::text('number', Input::old('number'), ['class' => 'form-control', 'placeholder' => '3001', 'maxLength' => 4]) }}
{{ Form::label('section', 'Section') }} {{ Form::text('section', Input::old('section'), ['class' => 'form-control', 'placeholder' => '001', 'maxLength' => 3]) }}
{{ Form::label('program', 'Program') }}
{{ Form::label('user_id', 'Professor') }}
{{ Form::label("semester_id",'Semester')}}
{{Form::label('modality','Course Modality')}}

{{ Form::submit('Create Course', ['class' => 'btn btn-primary btn-block', 'name' => 'create_course']) }} {{ Form::close() }}
@if (Session::has('courses'))

The following courses were updated:

    @foreach (json_decode(Session::get('courses')) as $course)
  • @if (Session::has('show_sections')) {{ $course->code }}{{ $course->number }}-{{ $course->section }} @else {{ $course->code }}{{ $course->number }} @endif
  • @endforeach
@endif
Edit Course

You can enroll students in this setting, by choosing the course and uploading a .txt file with the students numbers

{{ Form::open(['action' => 'CoursesController@updateCourseInfo', 'enctype'=>"multipart/form-data"]) }}

{{ Form::label('program_id2', 'Associated Program') }}
{{ Form::label('semester_assoc', 'Course Semester') }}

{{Form::label('select_course', "Course")}}
{{ Form::label("name",'Name')}} {{ Form::text('name', Input::old('name'), ['class'=>'form-control', 'placeholder' => "Introducción a la ...", 'id'=> 'edit_name'])}}
{{ Form::label('code', 'Code') }} {{ Form::text('code', Input::old('code'), ['class' => 'form-control', 'placeholder' => 'TEST', 'maxLength' => 4, 'id'=> 'edit_code']) }}
{{ Form::label('number', 'Number') }} {{ Form::text('number', Input::old('number'), ['class' => 'form-control', 'placeholder' => '3001', 'maxLength' => 4, 'id'=> 'edit_number']) }}
{{ Form::label('section', 'Section') }} {{ Form::text('section', Input::old('section'), ['class' => 'form-control', 'placeholder' => '001', 'maxLength' => 3, 'id'=> 'edit_section']) }}
{{ Form::label('program', 'Program') }}
{{ Form::label('user_id', 'Professor') }}
{{ Form::label("semester_id",'Semester')}}
{{Form::label('modality','Course Modality')}}

{{ Form::submit('Edit Course', ['class' => 'btn btn-primary btn-block', 'name' => 'edit_course_info']) }} {{ Form::close() }}
@stop @section('javascript') // -------------------------------------------------------------------------- // Page load // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // Events // -------------------------------------------------------------------------- @stop