<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">
            <li>{{ HTML::linkAction('ProgramCoordinatorsController@overview', 'Overview') }}</li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                    aria-expanded="false">Management<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>{{ HTML::linkAction('TemplatesController@newTemplate_new', 'Rubrics') }}</li>
                    <li>{{ HTML::linkAction('TemplatesController@index', 'Rubric List') }}</li>

                    <li>{{ HTML::linkAction('Objective2Controller@edit', 'Objectives') }}</li>

                    <li>{{ HTML::linkAction('CriteriaController@edit', 'Criteria') }}</li>
                    <li>{{ HTML::linkAction('TransformativeActionsController@editTA', 'Transformative Actions') }}
                    </li>


                    <!--<li><a href="{{ URL::action('AnnualPlansController@showPlan', Auth::user()->programs[0]->id) }}">Annual
                            Plan</a>
                    <li>
                    <li><a
                            href="{{ URL::action('ThreeYearPlanController@threeYearsReport', Auth::user()->programs[0]->id) }}">Three
                            Years Plan</a></li>-->
                </ul>
            </li>


            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Learning
                    and Criterias<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li>{{ HTML::linkAction('CriteriaController@index', 'Outcomes and Criteria') }}</li>
                    <li>{{ HTML::linkAction('Objective2Controller@viewObjectives', 'Objectives and Criteria') }}
                    </li>
                </ul>
            </li>
            @if (count(Auth::user()->courses))
                <li> {{ HTML::linkAction('ProfessorsController@overview', 'My Courses', null) }}</li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                        aria-expanded="false">Sections<span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        @foreach ($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">Results<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <li><a
                            href="{{ URL::action('OutcomesController@programAssessmentReport', Auth::user()->programs[0]->id) }}">Program
                            Results</a></li>

            </li>

            @if (count(Auth::user()->courses))
                <li>{{ HTML::linkAction('OutcomesController@professorAssessmentReport', 'My Courses\' Results') }}
                </li>
            @endif


            </li>

            <li><a href="{{ URL::action('OutcomesController@annualReport', Auth::user()->programs[0]->id) }}">Annual
                    Report</a></li>

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

        </ul>
        </li>
        <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'>
                @foreach (Auth::user()->programs as $program)
                    <li><a
                            href="{{ URL::action('AnnualPlansController@showPlan', [$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"> Three
                year Plans<span class="caret"></span></a>
            <ul class='dropdown-menu' role='menu'>
                @foreach (Auth::user()->programs as $program)
                    <li><a
                            href="{{ URL::action('ThreeYearPlanController@threeYearsReport', [$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>
