<div class="navbar navbar-inverse navbar-static-top">
    <div class="container-fluid">
        <!--<div class="navbar-header">
      {{ HTML::linkAction('ProgramCoordinatorsController@overview','Online Learning Assessment System ยท Program Coordinator',[],['class' => 'navbar-brand']) }}
    </div>-->
        <ul class="nav navbar-nav navbar-right ml-auto">
            <li>{{ HTML::linkAction('SchoolCoordinatorsController@overview', 'Overview') }}</li>

            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                    aria-expanded="false">Objectives<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>{{ HTML::linkAction('Objective2Controller@edit', 'Create/Edit Objectives') }}</li>
                    <li>{{ HTML::linkAction('CriteriaController@objectivesIndex', 'View Objectives and Criteria') }}
                    </li>
                </ul>
            </li>

            <!--Three Year Plan-->

            <li class='dropdown'>
                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Three
                    year Plans<span class="caret"></span></a>
                <ul class='dropdown-menu' role='menu'>
                    <h6 class="dropdown-header">Create/Edit Three Year Plan For: </h6>
                    @foreach (Auth::user()->school->programs as $program)
                        <li><a
                                href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$program->id]) }}">{{ $program->name }}</a>
                        </li>
                    @endforeach
                </ul>
            </li>
            <!--Criteria-->

            <li class='dropdown'>
                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false">
                    Criteria<span class="caret"></span></a>
                <ul class='dropdown-menu' role='menu'>

                    <li>{{ HTML::linkAction('CriteriaController@edit', 'Create/Edit Criteria') }}</li>
                    <li>{{ HTML::linkAction('CriteriaController@index', 'View Criteria') }}</li>

                </ul>
            </li>
            <!--Transformative Actions -->
            <li class='dropdown'>
                <a href="#" class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false">
                    Transformative Actions <span class="caret"></span></a>
                <ul class='dropdown-menu' role='menu'>
                    <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Create/Edit Tranformative Actions') }}


                    <li>{{ HTML::linkAction('TransformativeActionsController@viewFormativeActions', 'View Formative Actions') }}

                </ul>
            </li>

            <!-- Annual Plans-->
            <li class='dropdown'>
                <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded="false"> Annual
                    Plans<span class="caret"></span></a>
                <ul class='dropdown-menu' role='menu'>
                    <h6 class="dropdown-header">Create/Edit Annual Plan For: </h6>
                    @foreach (Auth::user()->school->programs as $program)
                        <li><a
                                href="{{ URL::action('AnnualPlansController@showPlan', [$program->id]) }}">{{ $program->name }}</a>
                        </li>
                    @endforeach
                    <h6 class="dropdown-header">View Annual Plan from:</h6>
                    @foreach (Auth::user()->school->programs as $program)
                        <li><a
                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['plan', $program->id]) }}">{{ $program->name }}</a>
                        </li>
                    @endforeach
                </ul>
            </li>

            <!-- Rubrics -->




            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                    aria-expanded="false">Rubrics<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>{{ HTML::linkAction('TemplatesController@newTemplate_new', 'Create/Edit Rubrics') }}</li>
                    <li>{{ HTML::linkAction('TemplatesController@index', 'View Rubric List') }}</li>
                </ul>
            </li>


            <li>{{ HTML::linkAction('OutcomesController@schoolAssessmentReport', 'School Results') }}</li>





            @if (count(Auth::user()->courses))

                <li class="dropdown">

                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">My
                        Courses<span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li> {{ HTML::linkAction('ProfessorsController@overview', 'View My Courses', null) }}</li>
                        <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'View My Courses\' Results') }}

                        </li>
                        <h6 class="dropdown-header">Sections: </h6>
                        @foreach (Auth::user()->courses as $course)
                            <li> {{ HTML::linkAction('CoursesController@show',$course->code . $course->number . '-' . $course->section . ' (' . $course->semester->code . ')',['id' => $course->id]) }}
                            </li>
                        @endforeach
                    </ul>
                </li>
            @endif




            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Annual
                    Report<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">

                    <h6 class='dropdown-header'>Create/Edit Annual Report For:</h6>
                    @foreach (Auth::user()->school->programs as $program)
                        <li><a
                                href="{{ URL::action('OutcomesController@annualReport', $program->id) }}">{{ $program->name }}</a>
                        </li>
                    @endforeach
                    <h6 class="dropdown-header">View Annual Report from:</h6>
                    @foreach (Auth::user()->programs as $program)
                        <li><a
                                href="{{ URL::action('AnnualPlansController@annualPlansShow', ['report', $program->id]) }}">{{ $program->name }}</a>
                        </li>
                    @endforeach
                </ul>
            </li>





            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Help<span
                        class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>{{ HTML::linkAction('FeedbackController@create', 'Feedback') }}</li>
                    <!-- <li><a href="{{ asset('files/OLAS-intro.pdf') }}">Introduction to OLAS</a></li> -->
                    <li><a href="{{ asset('files/intro-avaluo.pdf') }}">Introduction to Assessment</a></li>
                    <!-- <li><a href="{{ asset('files/OLAS-coords.pdf') }}">OLAS for Coordinators</a></li> -->
                    <li><a
                            href="http://oeae.uprrp.edu/wp-content/uploads/2019/01/Brochure-de-OLAS-rev.-agosto-2018.pdf">Brochure</a>
                    </li>
                </ul>
            </li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                    aria-expanded="false">Account<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>{{ HTML::linkAction('UsersController@edit', 'Profile') }}</li>
                    <li>{{ HTML::linkAction('AuthController@logout', 'Log out (' . Auth::user()->email . ')') }}</li>
                </ul>
            </li>
            <li>
        </ul>
    </div>
</div>