@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')
Program | School | @foreach($quinquenniums as $quinquennium){{ date('Y', strtotime($quinquennium->start_date)) }}-{{ date('Y', strtotime($quinquennium->end_date)) }} Quinquennium | @endforeach
---|---|---|
{{ $program->name }} | {{ $program->school->name }} | @foreach($quinquenniums as $quinquennium)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 | @endforeach