@extends('layouts.school') @section('title', $programme ? 'Edit Programme' : 'New Programme') @section('header', $programme ? 'Edit Admission Programme' : 'New Admission Programme') @section('content') @if ($programme)
@csrf @method('PATCH') @php $actions = []; if (in_array($programme->status, ['draft', 'pending_review', 'closed'], true)) $actions['publish'] = 'Publish'; if ($programme->status === 'published') $actions['close'] = 'Close'; if ($programme->status === 'closed') $actions['reopen'] = 'Reopen'; if (in_array($programme->status, ['draft', 'pending_review', 'published', 'closed'], true)) $actions['archive'] = 'Archive'; @endphp @foreach ($actions as $value => $label) @endforeach
@csrf @method('DELETE')
@endif
@csrf @if ($programme) @method('PUT') @endif

Programme Details

@error('name')

{{ $message }}

@enderror

Eligibility & Documents

Cancel
@endsection