@extends('layouts.dashboard') @section('title-content') {{ config('app.name') }} Course Details | Index @endsection @section('content')

@hasrole('SuperAdmin|Admin|HOD|DAEO') @endhasrole
Code: {{ $course->course_code }}
Name: {{ $course->course_name }}
Configuration: {{ $course->unit . ' Units/Credits ' }}CA Weight:/{{ $course->cw }} SE Weight:/{{ $course->final }}
Offering Dept: {{ $course->department->department_name }} -({{ $course->department->faculty->faculty_name }})
Time Scale: Semester/Trimester/Module {{ 'o' }}
Grading Scheme: {{ $course->grade_scheme->name }}
Result Status:
Instructors: @if ($course_staffs->count() > 0) @foreach ($course_staffs as $staff) {{ $staff->user->last_name . ', ' . $staff->user->first_name . ' ' . $staff->user->middle_name . ' [' . $staff->pivot->stream . ' ]' }} @if ($course->programs->count() > 0)
    @foreach ($course->programs as $p) @if ($p->pivot->stream === $staff->pivot->stream)
  • {{ $p->program_code }}
  • @endif @endforeach
@endif
{{-- {{$staff->user->last_name.', '.$staff->user->first_name.' '.$staff->user->middle_name}} --}} @endforeach @else
Currently No Instructor Assigned
@endif
Manage Instructor: @if ($course_staffs->count() > 0) @foreach ($del_instructor as $data) {!! Form::open(['route' => 'courses.course-staff-delete', 'method' => 'DELETE']) !!} {!! Form::hidden('course_id', $course->id) !!} {!! Form::hidden('staff_id', $data->staff_id) !!} {!! Form::hidden('year_id', $course->year_id) !!}
{!! Form::button('[ Remove :- ' . $data->inst_first_name . ' ' . $data->inst_last_name . ' ]', [ 'type' => 'submit', 'class' => 'btn btn-sm btn-danger p-2', ]) !!}
{!! Form::close() !!}
@endforeach @else {{ 'No Instructor' }} @endif
@hasrole('SuperAdmin|Admin|HOD|DAEO')
{!! Form::open(['route' => 'courses.assign-course-staffs', 'method' => 'POST']) !!} {!! Form::hidden('course_id', $course->id) !!}
{!! html_entity_decode( Form::label('staff_id', 'Assign Instructor for this Course(' . $course->course_name . ')', [ 'class' => 'label-control', ]), ) !!} {!! Form::select('staff_id', $staffs, null, [ 'id' => 'staff_id', 'placeholder' => 'Assign Instructor', 'class' => 'form-control', ]) !!}
{!! html_entity_decode(Form::label('stream', 'Select Stream')) !!} {!! Form::select('stream', $streams, null, [ 'id' => 'stream', 'placeholder' => 'Select Stream', 'class' => 'form-control', ]) !!}
{!! html_entity_decode(Form::label('program_id', 'Select Participating Program')) !!} {!! Form::select('program_id[]', $programs, null, [ 'id' => 'program_id', 'class' => 'form-control', 'multiple' => 'multiple', ]) !!}
{!! Form::button('Assign Instructor', ['type' => 'submit', 'class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endhasrole
Students & Results

To view the students, click below

  • {{ link_to(route('courses.batches.get-batches', $srs->encode($course->id)), 'Registered Students') }}
  • @role('DAEO|HOD|SuperAdmin')
  • {{ link_to(route('courses.external-batches.get-batches', $srs->encode($course->id)), 'External Examiner') }}
  • @endrole
  • {{ link_to(route('courses.supp-batches.get-batches', $srs->encode($course->id)), 'Supplementary Students') }}
  • {{ link_to(route('courses.special-batches.get-batches', $srs->encode($course->id)), 'Special Exam Students') }}
  • {{ link_to(route('courses.resupp-batches.get-batches', $srs->encode($course->id)), 'Resupplementary Students') }}
  • {{ link_to(route('courses.repeat-batches.get-batches', $srs->encode($course->id)), 'Repeat Module Students') }}
  • {{ link_to(route('course.carry-over', $srs->encode($course->id)), 'Carry Students') }}
  • {{ link_to(route('courses.course-program-participant', $srs->encode($course->id)), 'Participant Programme') }}

Notes & Reading materials

The reading materials for this course

  • {{ link_to(url('/'), 'Notes & Reading materials') }}

Reports

The reports related to this course

    {{--
  • {{link_to(route('courses.config.course-semester-report',$srs->encode($course->id)),'End of Semester report')}}
  • --}}
  • {{ link_to(route('reports.batches.get-batches', $srs->encode($course->id)), 'End of Semester report') }}
  • {{--
  • {{link_to(route('courses.config.course-supplementary-report',$srs->encode($course->id)),'Supplementary report')}}
  • --}}

Other Functions

The uploading history for this course

  • {{ link_to(url('/'), 'Results uploading history') }}
@endsection @section('scripts') @endsection