123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- @extends('layouts.master')
-
- @section('navigation')
- @include('local.managers.pCoords._new_navigation')
- @stop
-
- @section('main')
-
- <!-- Nav tabs -->
- <ul id="programTabs" class="nav nav-tabs" role="tablist">
- @foreach($programs_array as $index => $program_item)
- <li role="presentation" <?php if($index==0){ echo 'class="active"';}?> >
- <a href="#programs{{ $index }}" aria-controls="program" role="tab">{{ $program_item['program']->name }}</a>
- </li>
- @endforeach
- </ul>
-
- <!-- Tab panes -->
- <div class="tab-content">
- @foreach($programs_array as $index => $program_item)
- <div role="tabpanel" class="tab-pane <?php if($index==0){ echo 'active';}?>" id="programs{{ $index }}">
-
- <br>
- <br>
- <div class="btn-group pull-left">
- <a href="{{ action('ProgramsController@studentProgramAssessmentReport', array($program_item['program']->id)); }}" class="btn btn-primary pull-left" alt="print">Go to Performance by Program Students</a>
-
- </div>
- <div class="btn-group pull-right">
- <a href="{{ action('ProgramsController@print_program', array($program_item['program']->id)); }}" class="btn btn-primary" alt="print"><span class="glyphicon glyphicon-print"></span></a>
- </div>
- <br>
- <br>
-
- <div class = 'row'>
- <div class ='col-md-12'>
- @if($program_item['linea_de_graph']== null)
- <p><strong>This Goal Bar is the default score. If you wish to change it, change it on the selected Semesters Annual Plan</strong></p>
- @else
- <p><strong>This Goal is from {{$program_item['linea_de_graph']->program_name}} on the semester {{$program_item['linea_de_graph']->semester_name}}</strong></p>
-
- @endif
- </div>
- </div>
- <div class="row" id = 'allGraph{{$index}}'>
- <div class="col-md-12 graph" id="graph{{ $index }}"></div>
- </div>
- <div class ='row graph-stu' id = "programGraph{{$index}}">
- <div class="col-md-12 graph " id = "graph-stu-program{{$index}}"></div>
-
-
- </div>
-
- <!-- ===== sub tabs ===== -->
- <div>
- <!-- Sub nav tabs -->
- <ul id="programSubTabs{{ $index }}" class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active"><a href="#courses{{ $index }}" aria-controls="courses" role="tab">Courses</a></li>
- <li role="presentation"><a href="#sections{{ $index }}" aria-controls="sections" role="tab">Sections</a></li>
- <li role="presentation">
- <a href="#contact{{ $index }}" aria-controls="contact" role="tab">Contact Information</a>
- </li>
- </ul>
-
- <!-- Sub tab panes -->
- <div class="tab-content">
- <div role="tabpanel" class="tab-pane active" id="courses{{ $index }}">
- <div class="row">
- <div class="col-md-12">
- <h3>Courses in this program</h3>
- <p>Note that some courses may have assessed activities but unpublished results. Unplublished results are <strong>not considered</strong>. Check the Sections tab for a breakdown.</p>
- @if($program_item['program_courses']->count()>0)
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Identifier</th>
- <th>Name</th>
- <th>Program</th>
- <th>Assessed and Published</th>
- </tr>
- </thead>
- <tfoot>
- <tr class="column-search">
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><select class="column-search-select form-control"><option value=""></option></select></th>
- <th><select class="column-search-select form-control"><option value=""></option></select></th>
- </tr>
- </tfoot>
- <tbody>
- @foreach($program_item['grouped_courses'] as $grouped_course)
- <tr>
- <td class="col-md-1">{{ HTML::linkAction('CoursesController@showGrouped', $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')', array($grouped_course->code, $grouped_course->number, $grouped_course->semester->code)) }}</td>
- <td class="col-md-3">{{{ $grouped_course->name}}}</td>
- <td class="col-md-3">{{{ $grouped_course->program->name }}}</td>
- <td class="col-md-2">
- @if($grouped_course->someSectionAssessed()!=0)
- Yes
- @else
- No
- @endif
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No courses assigned.</p>
- @endif
- </div>
- </div>
- </div>
-
- <div role="tabpanel" class="tab-pane" id="sections{{ $index }}">
- <div class="row">
- <div class="col-md-12">
- <h3>Sections in this program</h3>
- @if($program_item['program_courses']->count()>0)
- <p class="lead"> {{{ $program_item['assessed_courses_count'] }}} out of {{{ $program_item['program_courses']->count() }}} section(s) doing Assessment ({{{ round($program_item['assessed_courses_count']/$program_item['program_courses']->count()*100, 2) }}}%)</p>
- <p>Note that some courses may have assessed activities but unpublished results. Unplublished results are <strong>not considered</strong>.</p>
-
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Identifier</th>
- <th>Name</th>
- <th>Professor</th>
- <th>Assessed Activities</th>
- <th>Published Results</th>
- </tr>
- </thead>
- <tfoot>
- <tr class="column-search">
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><select class="column-search-select form-control"><option value=""></option></select></th>
- <th><select class="column-search-select form-control"><option value=""></option></select></th>
- </tr>
- </tfoot>
- <tbody>
- @foreach($program_item['program_courses'] as $course)
- <tr>
- <td>{{ HTML::linkAction('CoursesController@showLimited', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</td>
- <td>{{{ $course->name}}}</td>
- <td>{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
- <td>
- @if(count($course->assessedActivities))
- Yes
- @else
- No
- @endif
- </td>
- <td>
- @if(count($course->publishedActivities))
- Yes
- @else
- No
- @endif
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No sections assigned.</p>
- @endif
- </div>
- </div>
- </div>
- <div role="tabpanel" class="tab-pane" id="contact{{ $index }}">
- <div class="row">
- <div class="col-md-12">
- <h3>Contact information</h3>
- <table class="table table-striped datatable">
- <thead>
- <tr>
- <th>Name</th>
- <th>Role</th>
- <th>Program(s)</th>
- <th>Email</th>
- <th>Office Phone</th>
- <th>Cell Phone</th>
- </tr>
- </thead>
- <tfoot>
- <tr class="column-search">
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><select class="column-search-select form-control"><option value=""></option></select></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- <th><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- </tr>
- </tfoot>
- <tbody>
- @foreach($programs_contact[$index] as $user)
- <tr>
- <td>{{ $user->surnames }}, {{ $user->first_name }}</td>
-
- @if($user->role == 1)
- <td>Administrator</td>
- <td>All</td>
- @elseif($user->role == 2)
- <td>School Coordinator</td>
- <td>All in {{ $program_item['program']->school }}</td>
- @elseif($user->role == 3)
- <td>Program Coordinator</td>
- <td>
- @foreach ($user->programs as $program)
- <p>{{ $program->name }}</p>
- @endforeach
- </td>
- @else
- <td>Professor</td>
- <td>
- @foreach ($user->programs as $program)
- <p>{{ $program->name }}</p>
- @endforeach
- </td>
- @endif
-
- <td>
- <a href="mailto:{{ $user->email }}">{{ $user->email }}</a>
- </td>
- <td>
- @if($user->office_phone)
- {{{ $user->office_phone }}}
-
- @if($user->office_extension)
- <span>ext.</span> {{{ $user->office_extension }}}
- @endif
- @else
- Not set
- @endif
- </td>
- <td>
- @if($user->cell_phone)
- {{{ $user->cell_phone }}}
- @else
- Not set
- @endif
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- ===== end sub tabs ===== -->
- </div>
- @endforeach
- </div>
- <script>
-
- function changeView(graph_to_hide, graph_to_show, index, message){
-
- current_message = $("#change-view-btn"+index).html();
- $("#change-view-btn"+index).html(message);
-
- $(graph_to_hide).hide()
- $(graph_to_show).show()
-
-
- $("#change-view-btn"+index).attr('onclick','changeView("'+graph_to_show+'", "'+graph_to_hide+'",'+index+',"'+current_message+'")')
- }
-
- $(".graph-stu").hide();
-
- </script>
-
-
-
- @stop
-
- @section('included-js')
-
- <!-- HighCharts -->
- <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
- <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
-
- <!-- Datatables -->
- @include('global._datatables_js')
-
- @stop
-
- @section('javascript')
-
- // Create an function that responds to click of program tabs
- @foreach($programs_array as $index => $program_item)
-
- $('#programTabs a').click(function (e) {
-
- e.preventDefault()
- $(this).tab('show');
-
- $('#programSubTabs{{$index}} a').click(function (e) {
- e.preventDefault()
- $(this).tab('show');
- });
-
- $('#graph{{$index}}').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance by Learning Outcome Criteria in {{ $program_item['program']->name }} Courses'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes as $outcome)
- @if(is_array($program_item['outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['outcomes_achieved'])
- && $program_item['outcomes_attempted'][$outcome->id]!=0)
-
- "{{{ $outcome->name }}}<br> (N = {{$program_item['outcomes_attempted'][$outcome->id]}}, {{$program_item['outcomes_achieved'][$outcome->id]}})",
- @else
- "{{$outcome->name}}<br> (N = 0, 0)",
-
- @endif
-
- @endforeach
- ],
- labels: {
- style: {
- fontSize:'11px'
- },
- step:1,
- useHTML:true,
- formatter: function() {
- return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
- },
- }
- },
- yAxis: {
- min: 0,
- max: 100,
- title: {
- text: 'Percentage'
- },
-
- plotLines:[{
- @if($program_item['linea_de_graph'] != null)
- value:{{$program_item['linea_de_graph']->expected_target}},
- color: '#000',
- width:3,
- zIndex:4,
- label:{
-
- text: 'Goal ({{$program_item['linea_de_graph']->expected_target}}%)',
- @else
- value:70.00,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70.00%)',
- @endif
- style: {
- color: '#000',
- fontSize: '14px',
- }
-
- }
- }]
- },
- tooltip: {
- headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
- pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
- '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
- footerFormat: '</table>',
- shared: true,
- useHTML: true
- },
- plotOptions: {
- bar: {
- //grouping: false,
- shadow: false,
- borderWidth: 0,
- },
- series: {
- pointPadding: 0,
- groupPadding: 0.075
- },
- },
- series: [{{--{
- name: 'Expected Value',
- color: '#555555',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
-
-
- data: [
- @foreach($outcomes as $index => $outcome)
- @if(
- is_array($program_item['outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['outcomes_attempted'])
- && $program_item['outcomes_attempted'][$outcome->id]!=0)
- {{{ $outcome->expected_outcome }}},
- @else
- 0,
- @endif
- @endforeach
- ]
-
- },--}}{
- name: 'Obtained Value',
- color: '#e70033',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
- data:[
- @foreach($outcomes as $index2 => $outcome)
- @if(
- is_array($program_item['outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['outcomes_achieved'])
- && $program_item['outcomes_attempted'][$outcome->id]!=0)
- {{{ ($program_item['outcomes_achieved'][$outcome->id]/$program_item['outcomes_attempted'][$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
- ]
- }]
- });
- {{--}}
- $('#graph-stu-program{{$index}}').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance by {{ $program_item['program']->name }}\'s Students in Learning Outcomes'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes as $outcome)
- @if(is_array($program_item['program_outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['program_outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['program_outcomes_achieved'])
- && $program_item['program_outcomes_attempted'][$outcome->id]!=0)
-
- "{{{ $outcome->name }}}<br> (N = {{$program_item['program_outcomes_attempted'][$outcome->id]}}, {{$program_item['program_outcomes_achieved'][$outcome->id]}})",
- @else
- "{{$outcome->name}}<br> (N = 0, 0)",
-
- @endif
-
- @endforeach
- ],
- labels: {
- style: {
- fontSize:'11px'
- },
- step:1,
- useHTML:true,
- formatter: function() {
- return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
- },
- }
- },
- yAxis: {
- min: 0,
- max: 100,
- title: {
- text: 'Percentage'
- },
-
- plotLines:[{
- @if($program_item['linea_de_graph'] != null)
- value:{{$program_item['linea_de_graph']->expected_target}},
- color: '#000',
- width:3,
- zIndex:4,
- label:{
-
- text: 'Goal ({{$program_item['linea_de_graph']->expected_target}}%)',
- @else
- value:70.00,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70.00%)',
- @endif
- style: {
- color: '#000',
- fontSize: '14px',
- }
-
- }
- }]
- },
- tooltip: {
- headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
- pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
- '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
- footerFormat: '</table>',
- shared: true,
- useHTML: true
- },
- plotOptions: {
- bar: {
- //grouping: false,
- shadow: false,
- borderWidth: 0,
- },
- series: {
- pointPadding: 0,
- groupPadding: 0.075
- },
- },
- series: [{{--{
- name: 'Expected Value',
- color: '#555555',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
-
-
- data: [
- @foreach($outcomes as $index => $outcome)
- @if(
- is_array($program_item['outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['outcomes_attempted'])
- && $program_item['outcomes_attempted'][$outcome->id]!=0)
- {{{ $outcome->expected_outcome }}},
- @else
- 0,
- @endif
- @endforeach
- ]
-
- },{
- name: 'Obtained Value',
- color: '#e70033',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
- data:[
- @foreach($outcomes as $index => $outcome)
- @if(
- is_array($program_item['program_outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['program_outcomes_attempted'])
- && array_key_exists($outcome->id, $program_item['program_outcomes_achieved'])
- && $program_item['program_outcomes_attempted'][$outcome->id]!=0)
- {{{ ($program_item['program_outcomes_achieved'][$outcome->id]/$program_item['program_outcomes_attempted'][$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
- ]
- }]
- });--}}
-
- });
- @endforeach
-
- // Trigger click on first tab so it loads automatically
- $( '#programTabs a:eq(0)').trigger('click');
-
- // Include dummy graph for outcomes
- @include('global.dummy-outcomes')
-
- @stop
|