123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032 |
- @extends('layouts.master')
-
-
- @section('navigation')
- @if($role==1)
- @include('local.managers.admins._new_navigation')
- @elseif($role==2)
- @include('local.managers.sCoords._new_navigation')
- @endif
- @stop
-
- @section('main')
- <a href="{{ action('SchoolsController@show', array($school->id)); }}" class="btn btn-primary pull-left" alt="print">Go to Performance by School Courses</a>
-
- <a href="{{ action('SchoolsController@print_school_students_report', array($school->id)); }}" class="btn btn-primary pull-right" alt="print"><span class="glyphicon glyphicon-print"></span></a>
- <br>
- <br>
-
- <ul id="resultsTabs" class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active"><a href="#undergraduate_combined" aria-controls="undergraduate_combined" role="tab">Undergraduate Combined</a></li>
- <li role="presentation"><a href="#undergraduate_uncombined" aria-controls="undergraduate_uncombined" role="tab">Undergraduate Uncombined</a></li>
- <li role="presentation"><a href="#graduate_combined" aria-controls="graduate_combined" role="tab">Graduate Combined</a></li>
- <li role="presentation"><a href="#graduate_uncombined" aria-controls="graduate_uncombined" role="tab">Graduate Uncombined</a></li>
-
- </ul>
- <!--<div class="tab-content">-->
- <!-- <div class="tab-content"> -->
-
- <div role="tabpanel" class="tab-pane active" id="undergraduate_combined">
- <div class="row">
- <div class="col-md-12" id="graph2"></div>
- </div>
-
- <div class="row">
- <div class="col-md-12">
- <h3>Performance of {{ $school->name }} Undergrad Students by Combined Learning Outcome</h3>
- @if($outcomes->count()>0)
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Learning Outcome</th>
- <th>Program</th>
- <th>Program Id</th>
- <th>Program Is Graduate</th>
- <th>Number Students</th>
- <th>Number Students that Achieved the Target</th>
- <th>Percentage of Students that Achieved the Target</th>
- <!--<th>Semesters</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><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>
- <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><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>-->
- </tr>
- </tfoot>
- <tbody>
- @foreach($undergraduate_programs as $program)
- @foreach($outcomes_colap as $outcome)
- @if(isset($outcomes_undergrad_program_attempted_colap[$outcome->id][$program->id]))
- <tr>
- <td>{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
- <td>{{{ $program->name }}}</td>
- <td>{{{ $program->id }}}</td>
- <td>{{{ $program->is_graduate }}}</td>
- <td>{{{ $outcomes_undergrad_program_attempted_colap[$outcome->id][$program->id] }}}</td>
- @if(isset($outcomes_undergrad_program_achieved_colap[$outcome->id][$program->id]))
-
- <td>{{{ $outcomes_undergrad_program_achieved_colap[$outcome->id][$program->id] }}}</td>
- <td>
- @if($outcomes_undergrad_program_attempted_colap[$outcome->id][$program->id]!=0)
-
- {{{ round($outcomes_undergrad_program_achieved_colap[$outcome->id][$program->id] / $outcomes_undergrad_program_attempted_colap[$outcome->id][$program->id]*100, 2) }}}%
-
-
- @else
- N/M
- @endif
- </td>
- @else
- <td>0</td><td>0%</td>
- @endif
- {{--}}
-
- <td>
- @if(isset($outcomes_undergraduate_attempted_colap_semesters[$program->id][$outcome->id]))
- {{{ str_replace('"','',json_encode($outcomes_undergraduate_attempted_colap_semesters[$program->id][$outcome->id])) }}}
- @else
- N/M
- @endif
-
- </td>--}}
- </tr>
- @endif
- @endforeach
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No courses assigned.</p>
- @endif
- </div>
- </div>
- </div>
- <div role="tabpanel" class="tab-pane" id="undergraduate_uncombined">
- <div class="row">
- <div class="col-md-12" id="graph"></div>
- </div>
-
- <div class="row">
- <div class="col-md-12">
- <h3>Performance of {{ $school->name }} Undergrad Students by Uncombined Learning Outcome</h3>
- @if($outcomes->count()>0)
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Learning Outcome</th>
- <th>Program</th>
- <th>Program Id</th>
- <th>Program Is Graduate</th>
- <th>Number Students</th>
- <th>Number Students that Achieved the Target</th>
- <th>Percentage of Students that Achieved the Target</th>
- <!--<th>Semesters</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><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>
- <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><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>-->
- </tr>
- </tfoot>
- <tbody>
-
- @foreach($outcomes as $outcome)
- @foreach($undergraduate_programs as $program)
- @if(isset($outcomes_undergrad_program_attempted_todo[$outcome->id][$program->id]))
- <tr>
- <td>{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
- <td>{{{ $program->name }}}</td>
- <td>{{{ $program->id }}}</td>
- <td>{{{ $program->is_graduate }}}</td>
-
- <td>{{{ $outcomes_undergrad_program_attempted_todo[$outcome->id][$program->id] }}}</td>
- @if((isset($outcomes_undergrad_program_achieved_todo[$outcome->id][$program->id])))
- <td>{{{ $outcomes_undergrad_program_achieved_todo[$outcome->id][$program->id] }}}</td>
- <td>
- @if($outcomes_undergrad_program_attempted_todo[$outcome->id][$program->id]!=0)
- {{{ round($outcomes_undergrad_program_achieved_todo[$outcome->id][$program->id] / $outcomes_undergrad_program_attempted_todo[$outcome->id][$program->id]*100, 2) }}}%
- @else
-
- N/M
- @endif
- </td>
- @else
- <td>0</td>
- <td>0%</td>
- @endif
- {{--}}
- <td>
- @if(isset($outcomes_undergraduate_attempted_semesters[$program->id][$outcome->id]))
- {{{ str_replace('"','',json_encode($outcomes_undergraduate_attempted_semesters[$program->id][$outcome->id])) }}}
- @else
- N/M
- @endif
-
- </td>--}}
- </tr>
- @endif
- @endforeach
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No courses assigned.</p>
- @endif
- </div>
- </div>
- </div>
-
- <div role="tabpanel" class="tab-pane" id="graduate_combined">
- <div class="row">
- <div class="col-md-12" id="graph3"></div>
- </div>
-
- <div class="row">
- <div class="col-md-12">
- <h3>Performance of {{ $school->name }} Graduate Students by Combined Learning Outcome</h3>
- @if($outcomes->count()>0)
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Learning Outcome</th>
- <th>Program</th>
- <th>Program Id</th>
- <th>Program Is Graduate</th>
- <th>Number Students</th>
- <th>Number Students that Achieved the Target</th>
- <th>Percentage of Students that Achieved the Target</th>
- <!--<th>Semesters</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><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>
- <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><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>-->
- </tr>
- </tfoot>
- <tbody>
- @foreach($graduate_programs as $program)
- @foreach($outcomes_colap as $outcome)
- @if(isset($outcomes_grad_program_attempted_colap[$outcome->id][$program->id]))
- <tr>
- <td>{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
- <td>{{{ $program->name }}}</td>
- <td>{{{ $program->id }}}</td>
- <td>{{{ $program->is_graduate }}}</td>
- <td>{{{ $outcomes_grad_program_attempted_colap[$outcome->id][$program->id] }}}</td>
- @if((isset($outcomes_grad_program_achieved_colap[$outcome->id][$program->id])))
- <td>{{{ $outcomes_grad_program_achieved_colap[$outcome->id][$program->id] }}}</td>
- <td>
- @if($outcomes_grad_program_attempted_colap[$outcome->id][$program->id]!=0)
-
- {{{ round($outcomes_grad_program_achieved_colap[$outcome->id][$program->id] / $outcomes_grad_program_attempted_colap[$outcome->id][$program->id]*100, 2) }}}%
-
-
- @else
- N/M
- @endif
- </td>
- @else
- <td>
- 0</td>
- <td>0%</td>
- @endif
- {{--}}
- <td>
- @if(isset($outcomes_undergraduate_attempted_colap_semesters[$program->id][$outcome->id]))
- {{{ str_replace('"','',json_encode($outcomes_undergraduate_attempted_colap_semesters[$program->id][$outcome->id])) }}}
- @else
- N/M
- @endif
-
- </td>--}}
- </tr>
- @endif
- @endforeach
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No courses assigned.</p>
- @endif
- </div>
- </div>
- </div>
-
- <div role="tabpanel" class="tab-pane" id="graduate_uncombined">
- <div class="row">
- <div class="col-md-12" id="graph4"></div>
- </div>
-
- <div class="row">
- <div class="col-md-12">
- <h3>Performance of {{ $school->name }} Graduate Students by Uncombined Learning Outcome</h3>
- @if($outcomes->count()>0)
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Learning Outcome</th>
- <th>Program</th>
- <th>Program Id</th>
- <th>Program Is Graduate</th>
- <th>Number Students</th>
- <th>Number Students that Achieved the Target</th>
- <th>Percentage of Students that Achieved the Target</th>
- <!--<th>Semesters</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><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>
- <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><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>-->
- </tr>
- </tfoot>
- <tbody>
- @foreach($graduate_programs as $program)
- @foreach($outcomes as $outcome)
- @if(isset($outcomes_grad_program_attempted_colap[$outcome->id][$program->id]))
- <tr>
- <td>{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
- <td>{{{ $program->name }}}</td>
- <td>{{{ $program->id }}}</td>
- <td>{{{ $program->is_graduate }}}</td>
- <td>{{{ $outcomes_grad_program_attempted_colap[$outcome->id][$program->id] }}}</td>
- @if(isset($outcomes_grad_program_achieved_colap[$outcome->id][$program->id]))
- <td>{{{ $outcomes_grad_program_achieved_colap[$outcome->id][$program->id] }}}</td>
- <td>
- @if($outcomes_grad_program_attempted_colap[$outcome->id][$program->id]!=0)
-
-
-
- {{{ round($outcomes_grad_program_achieved_colap[$outcome->id][$program->id] / $outcomes_grad_program_attempted_colap[$outcome->id][$program->id]*100, 2) }}}%
-
- @else
- N/M
- @endif
- </td>
- @else
- <td>0</td>
- <td>
- 0%
- </td>
-
- @endif
-
- {{--}}
- <td>
-
- @if(isset($outcomes_undergraduate_attempted_colap_semesters[$program->id][$outcome->id]))
- {{{ str_replace('"','',json_encode($outcomes_undergraduate_attempted_colap_semesters[$program->id][$outcome->id])) }}}
- @else
- N/M
- @endif
-
- </td>--}}
- </tr>
- @endif
- @endforeach
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No courses assigned.</p>
- @endif
- </div>
- </div>
- </div>
- <!--</div>-->
-
- <!-- ===== tabs ===== -->
- <div class="row">
- <!-- Nav tabs -->
- <!-- Tab panes -->
- <ul id="programTabs" class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active"><a href="#courses" aria-controls="courses" role="tab">Courses</a></li>
- <li role="presentation"><a href="#contact" aria-controls="contact" role="tab">Contact Information</a></li>
- </ul>
- <div class="tab-content">
-
- <div role="tabpanel" class="tab-pane active" id="courses">
- <div class="row">
- <div class="col-md-12">
- <h3>Courses in this School</h3>
- @if(count($grouped_courses)>0)
- <table class="table table-striped table-condensed datatable">
- <thead>
- <tr>
- <th>Identifier</th>
- <th>Name</th>
- <th>Course Program</th>
- <th>Number of Students</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><input class="column-search-bar form-control" type="text" placeholder="Search"/></th>
- </tr>
- </tfoot>
- <tbody>
- @foreach($grouped_courses as $grouped_course)
- <tr>
- <td class="col-md-2">{{ 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-4">{{{ $grouped_course->name}}}</td>
- <td class="col-md-2">{{{ $grouped_course->program->code}}}</td>
- <td class="col-md-3">{{{ $grouped_course->quantity }}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- @else
- <p class="lead"> No courses assigned.</p>
- @endif
- </div>
- </div>
- </div>
- <div role="tabpanel" class="tab-pane" id="contact">
- <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</th>
- <th>Email</th>
- <th>Office 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><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>
- </tr>
- </tfoot>
- <tbody>
- @foreach($users 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->school->name }}</td>
- @elseif($user->role == 3)
- <td>Program Coordinator</td>
- <td>
- @foreach ($user->programs as $program)
- {{ $program->name }}
- @endforeach
- </td>
- @else
- <td>Professor</td>
- <td>
- @foreach ($user->programs as $program)
- {{ $program->name }}
- @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>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- ===== end tabs ===== -->
-
- @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')
-
- $('#programTabs a').click(function (e) {
- e.preventDefault()
- $(this).tab('show');
- });
-
-
- $('#graph').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance of {{ $school->name }} Undergraduate Students by Uncombined Learning Outcome'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes as $outcome)
- @if(isset($outcomes_undergraduate_attempted_todo[$outcome->id]) &&
- isset($outcomes_undergraduate_achieved_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_undergraduate_attempted_todo[$outcome->id] }}}, {{{ $outcomes_undergraduate_achieved_todo[$outcome->id] }}})",
- @elseif(isset($outcomes_undergraduate_attempted_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_undergraduate_attempted_todo[$outcome->id] }}}, 0)",
-
- @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:[{
- value:70,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70%)',
- 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($outcomes_undergraduate_attempted_todo)
- && array_key_exists($outcome->id, $outcomes_undergraduate_attempted_todo)
- && $outcomes_undergraduate_attempted_todo[$outcome->id]!=0)
- @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($outcomes_undergraduate_attempted_todo)
- && array_key_exists($outcome->id, $outcomes_undergraduate_attempted_todo)
- && $outcomes_undergraduate_attempted_todo[$outcome->id]!=0
- && isset($outcomes_undergraduate_achieved_todo[$outcome->id]))
-
- {{{ ($outcomes_undergraduate_achieved_todo[$outcome->id]/$outcomes_undergraduate_attempted_todo[$outcome->id])*100 }}},
- @else
-
- 0,
- @endif
- @endforeach
- ]
- }]
- });
-
- $('#graph2').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance of {{ $school->name }} Undergraduate Students by Combined Learning Outcome'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes_colap as $outcome)
- @if(isset($outcomes_undergraduate_attempted_colap_todo[$outcome->id]) &&
- isset($outcomes_undergraduate_achieved_colap_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_undergraduate_attempted_colap_todo[$outcome->id] }}}, {{{ $outcomes_undergraduate_achieved_colap_todo[$outcome->id] }}})",
- @elseif(isset($outcomes_undergraduate_attempted_colap_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_undergraduate_attempted_colap_todo[$outcome->id] }}}, 0)",
-
- @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:[{
- value:70,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70%)',
- 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_colap as $index => $outcome)
- @if(
- is_array($outcomes_undergraduate_attempted_colap_todo)
- && array_key_exists($outcome->id, $outcomes_undergraduate_attempted_colap_todo)
- && $outcomes_undergraduate_attempted_colap_todo[$outcome->id]!=0)
- @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_colap as $index => $outcome)
- @if(
- is_array($outcomes_undergraduate_attempted_colap_todo)
- && array_key_exists($outcome->id, $outcomes_undergraduate_attempted_colap_todo)
- && $outcomes_undergraduate_attempted_colap_todo[$outcome->id]!=0
- && isset($outcomes_undergraduate_achieved_colap_todo[$outcome->id]))
- {{{ ($outcomes_undergraduate_achieved_colap_todo[$outcome->id]/$outcomes_undergraduate_attempted_colap_todo[$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
- ]
- }]
- });
- $('#graph3').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance of {{ $school->name }} Graduate Students by Combined Learning Outcome'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes_colap as $outcome)
- @if(isset($outcomes_graduate_attempted_colap_todo[$outcome->id])
- && isset($outcomes_graduate_achieved_colap_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_graduate_attempted_colap_todo[$outcome->id] }}}, {{{ $outcomes_graduate_achieved_colap_todo[$outcome->id] }}})",
- @elseif(isset($outcomes_graduate_attempted_colap_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_graduate_attempted_colap_todo[$outcome->id] }}}, 0)",
- @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:[{
- value:70,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70%)',
- 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_colap as $index => $outcome)
- @if(
- is_array($outcomes_graduate_attempted_colap_todo)
- && array_key_exists($outcome->id, $outcomes_graduate_attempted_colap_todo)
- && $outcomes_graduate_attempted_colap_todo[$outcome->id]!=0
- )
- @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_colap as $index => $outcome)
- @if(
- is_array($outcomes_graduate_attempted_colap_todo)
- && array_key_exists($outcome->id, $outcomes_graduate_attempted_colap_todo)
- && $outcomes_graduate_attempted_colap_todo[$outcome->id]!=0
- && isset($outcomes_graduate_achieved_colap_todo[$outcome->id]))
- {{{ ($outcomes_graduate_achieved_colap_todo[$outcome->id]/$outcomes_graduate_attempted_colap_todo[$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
- ]
- }]
- });
-
- $('#graph4').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance of {{ $school->name }} Graduate Students by Uncombined Learning Outcome'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes as $outcome)
- @if(isset($outcomes_graduate_attempted_todo[$outcome->id])
- && isset($outcomes_graduate_achieved_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_graduate_attempted_todo[$outcome->id] }}}, {{{ $outcomes_graduate_achieved_todo[$outcome->id] }}})",
- @elseif(isset($outcomes_graduate_attempted_todo[$outcome->id]))
- "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_graduate_attempted_todo[$outcome->id] }}}, 0)",
- @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:[{
- value:70,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70%)',
- 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: [
-
- ]
-
- },*/{
- 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($outcomes_graduate_attempted_todo)
- && array_key_exists($outcome->id, $outcomes_graduate_attempted_todo)
- && $outcomes_graduate_attempted_todo[$outcome->id]!=0
- && isset($outcomes_graduate_achieved_todo[$outcome->id]))
- {{{ ($outcomes_graduate_achieved_todo[$outcome->id]/$outcomes_graduate_attempted_todo[$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
- ]
- }]
- });
-
- // Include dummy graph for outcomes
- @include('global.dummy-outcomes')
-
- @stop
|