@extends('layouts.master') @section('navigation') @if(Auth::user()->role==1) @include('local.managers.admins._navigation') @elseif(Auth::user()->role==2) @include('local.managers.sCoords._navigation') @elseif(Auth::user()->role==3) @include('local.managers.pCoords._navigation') @elseif(Auth::user()->role==4) @include('local.professors._navigation') @endif @stop @section('main')
@foreach ($outcomes as $outcome) @foreach ($semesters as $semester) @if(!$outcome->deleted_at && $outcome->activation_date >= $semester->start && $outcome->activation_date <= $semester->end) {{--
  • {{ $outcome->name }}
  • --}}
  • {{ $outcome->name }} [{{$semester->code}}]
  • @endif @endforeach @endforeach

    CriterionBeginning (1-2)In Progress (3-4)Satisfactory (5-6)Excellent (7-8)

    Select a Learning Outcome to view its information

    @stop @section('included-js') @include('global._datatables_js') @stop @section('javascript') $(document).ready(function() { // -------------------------------------------------------------------------- // Page load // -------------------------------------------------------------------------- // Hide accordion panel contents by default $('.panel-group .panel-body').hide(); $('#outcome-display').parent().hide(); // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // Events // -------------------------------------------------------------------------- // When list item is clicked, load corresponding info $('.list-group-item').on('click', function() { var id = $(this).data('outcome-id'); $.post( "{{ URL::action('OutcomesController@fetchOutcome') }}", { id: id }, function(json) { // Retrieve datatable instance var table = $('.datatable').DataTable(); var name = json.outcome.name; var definition = json.outcome.definition; var criteria =json.outcome.criteria; $('#outcome-display').parent().show(); $('.no-outcome').parent().hide(); //Display title and definition $('#outcome-display .panel-title').html(name); $('#outcome-display .outcome-definition').html(definition); //Empty table table.clear(); // Add new criteria if(criteria.length>0) { $('table').show(); $.each(criteria, function(index, value) { table.row.add([ value.name, value.description12, value.description34, value.description56, value.description78 ]); }); } else { $('table').hide(); } // Update display table.draw(); }, 'json' ); }) }); @stop