@extends('layouts.user') @section('content')
@if (session('status')) @endif @if ($errors->any()) @endif @if(isset($appliedRequest) && $appliedRequest && auth()->user()->next_state_change_allowed_at && \Carbon\Carbon::parse(auth()->user()->next_state_change_allowed_at)->isFuture()) @endif @if(isset($scheduledRequest) && $scheduledRequest) @endif @if(isset($pendingRequest) && $pendingRequest) @endif
@if(isset($showForm) && $showForm)
State Change Request Form
@csrf
Apply to change your state/district affiliation
Please select an action type
0/1000 characters (Optional but recommended for faster approval)
Leave empty to apply immediately after admin approval. Or schedule for a future date.
@else
@if(isset($pendingRequest) && $pendingRequest)

Pending Request Exists

You have a pending state change request awaiting admin approval. Please wait for admin review.

@elseif(isset($scheduledRequest) && $scheduledRequest)

Scheduled Change Pending Application

An approved request is scheduled for {{ $scheduledRequest->requested_effective_date->format('d M, Y') }}. New submissions are blocked until it is applied.

@elseif(isset($appliedRequest) && $appliedRequest && $coolingPeriodActive)

Cooling Period Active

Your last change was applied on {{ $appliedRequest->applied_at?->format('d M, Y') }}. Next request allowed after {{ \Carbon\Carbon::parse(auth()->user()->next_state_change_allowed_at)->format('d M, Y') }}.

@else

Request Blocked

A blocking condition prevents submitting a new request right now.

@endif View Request History
@endif
@if(isset($showRejectionAlert) && $showRejectionAlert && isset($latestRejectedRequest)) @endif @endsection