@extends('layouts.app') @section('title', 'Create Visit Plan') @section('contents')
Select Plan Period and Type
@csrf @if(request()->filled('visit_plan_menu')) @endif @if(request()->filled('return_plan_id')) @endif @php $preserveIds = request('scheme_ids', []); if (!is_array($preserveIds)) { $preserveIds = $preserveIds !== null && $preserveIds !== '' ? [$preserveIds] : []; } $preserveLocked = request('locked_scheme_ids', []); if (!is_array($preserveLocked)) { $preserveLocked = $preserveLocked !== null && $preserveLocked !== '' ? [$preserveLocked] : []; } @endphp @foreach($preserveIds as $sid) @if($sid !== null && $sid !== '') @endif @endforeach @foreach($preserveLocked as $lid) @if($lid !== null && $lid !== '') @endif @endforeach @if($mecRegionsForVisitPeriod->isNotEmpty()) @php $__mecOld = old('mec_region_id'); $__mecVal = ($__mecOld !== null && $__mecOld !== '') ? (int) $__mecOld : (int) ($visitPeriodDefaultMecRegionId ?? 0); @endphp
@error('mec_region_id') {{ $message }} @enderror @if($visitPeriodMultipleMecRegions)

{{ __('Selected region') }}: {{ $__mecVal > 0 ? ($mecRegionsForVisitPeriod->firstWhere('id', $__mecVal)?->name ?? '') : '' }}

@endif
@endif @php $visitPlanTypeLabels = [ 'RVP' => 'Regular Visit Plan (RVP)', 'CVP' => 'Compliance Visit Plan (CVP)', 'SVP' => 'Special Visit Plan (SVP)', 'DRP' => 'Desk Review Plan (DRP)', 'ERP' => 'Evaluation Report Plan (ERP)', 'PMP' => 'Project Monitoring Plan (PMP)', ]; $__currentPlanType = (string) old('plan_type', $defaults['plan_type'] ?? ''); @endphp
@error('plan_type') {{ $message }} @enderror
@error('year') {{ $message }} @enderror
@error('month') {{ $message }} @enderror
Cancel
@push('scripts') @endpush @endsection