@extends('layouts.master') @section('navigation') @if(Auth::user()->role==1) @include('local.managers.admins._navigation') @elseif(Auth::user()->role==2) @include('local.managers.sCoords._navigation') @elseif(Auth::user()->role==3) @include('local.managers.pCoords._navigation') @endif @stop @section('main')
@foreach($quinquenniums as $quinquennium) @for($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++) @endfor @endforeach @foreach($programs as $program) @foreach($quinquenniums as $quinquennium) @for($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++) @endfor @endforeach @endforeach
Program School{{ $year }} - {{ $year+1 }}
{{ $program->name }} {{ $program->school->name }} id)->where('quinquennium_id', $quinquennium->id)->where('year_start', $year)->first(); ?> @if($annual_plan) View @if($quinquennium->id == $current_quinquennium->id // Quinquennium is running && date('Y') == $year // Current year is the same as year && date('m') <= date('m', strtotime($current_quinquennium->annual_plan_due_date)) // Current month (and day, below) is the same or before the due month (and day) && date('d') <= date('d', strtotime($current_quinquennium->annual_plan_due_date))) Edit @endif @elseif( $quinquennium->id == $current_quinquennium->id // Quinquennium is running && date('Y') == $year // Current year is the same as year && date('m') <= date('m', strtotime($current_quinquennium->annual_plan_due_date)) // Current month (and day, below) is the same or before the due month (and day) && date('d') <= date('d', strtotime($current_quinquennium->annual_plan_due_date))) Create @else Plan unavailable @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