@extends('layouts.master') @section('navigation') @if(Auth::user()->role==1) @include('local.managers.admins._navigation') @elseif(Auth::user()->role==2) @include('local.managers.sCoords._new_navigation') @elseif(Auth::user()->role==3) @include('local.managers.pCoords._new_navigation') @endif @stop @section('main')
@foreach($quinquenniums as $quinquennium) @endforeach @foreach($programs as $program) @foreach($quinquenniums as $quinquennium) @endforeach @endforeach
Program School{{ date('Y', strtotime($quinquennium->start_date)) }}-{{ date('Y', strtotime($quinquennium->end_date)) }} Quinquennium
{{ $program->name }} {{ $program->school->name }} id)->where('quinquennium_id', $quinquennium->id)->first(); ?> @if($five_year_plan) View @if(date('Y-m-d') <= $current_quinquennium->five_year_plan_due_date) Edit @endif @elseif( $quinquennium->id == $current_quinquennium->id // Quinquennium is running && date('Y-m-d') >= $current_quinquennium->start_date // Current date && date('Y-m-d') <= $current_quinquennium->end_date) Create @elseif( $current_quinquennium->start_date < $quinquennium->start_date) Available {{ date('M/d/Y', strtotime($quinquennium->start_date)) }} @else Plan not available @endif
@stop @section('included-js') @stop @section('javascript') table = $('.datatable').dataTable({ "columnDefs": [ { "searchable": true, "sortable": true, "targets": [0, 1]}, ] }); $('a.toggle-vis').on('click', function (e) { e.preventDefault(); // Get the column API object var column = table.column( $(this).attr('data-column') ); // Toggle the visibility column.visible( ! column.visible() ); } ); @stop