@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')
Program | School | @foreach($quinquenniums as $quinquennium) @for($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++){{ $year }} - {{ $year+1 }} | @endfor @endforeach
---|---|---|
{{ $program->name }} | {{ $program->school->name }} | @foreach($quinquenniums as $quinquennium) @for($year = date('Y', strtotime($quinquennium->start_date)); $year < date('Y', strtotime($quinquennium->end_date)); $year++)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 | @endfor @endforeach