Manage Plans

Add, update, and oversee the university's academic plans.

@if(session('success'))

{{ session('success') }}

@endif @if($errors->any())

There were some errors with your submission

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@can_do('Plans', 'add')

Add New Plan

@csrf
@endcan_do
@if(request('search')) @endif

Plans Directory

{{ $plans->count() }} {{ Str::plural('Record', $plans->count()) }}
@php function sortArrow($col, $currCol, $dir) { if ($col !== $currCol) return ''; return $dir === 'asc' ? '' : ''; } function sortUrl($col, $currCol, $dir) { return request()->fullUrlWithQuery(['sort' => $col, 'direction' => ($currCol === $col && $dir === 'asc') ? 'desc' : 'asc']); } @endphp @forelse($plans as $plan) @empty @endforelse
ID {!! sortArrow('id', $sortColumn, $sortDirection) !!} Plan Name {!! sortArrow('plan_name', $sortColumn, $sortDirection) !!} Program {!! sortArrow('program_id', $sortColumn, $sortDirection) !!} Actions
#{{ str_pad($plan->id, 3, '0', STR_PAD_LEFT) }}
{{ mb_substr($plan->plan_name, 0, 1) }}
{{ $plan->plan_name }}
@if($plan->program)
P {{ $plan->program->program_name }}
@else
P Not assigned
@endif
@can_do('Plans', 'update') @endcan_do @can_do('Plans', 'delete')
@csrf @method('DELETE')
@endcan_do

No plans found

@if(request('search')) We couldn't find anything matching "{{ request('search') }}". @else Get started by creating a new plan on the left. @endif

@if(request('search')) Clear search → @endif