@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('New appraisal instance')) @section('content')
{{ __('New appraisal instance') }}

{{ __('Create for one employee with custom evaluators, or bulk-create by department / branch with supervisor-chain evaluators.') }}

{{-- Single --}}
@csrf
@include('admin.performance_appraisal.partials.instance_shared_fields', ['prefix' => 'single'])
{{ __('Workflow — stage & evaluator assignment') }}

{{ __('Required for each stage except self-assessment (always the appraisee).') }}

@foreach($workflowStages as $step)
@if($step['is_self']) {{ __('Appraisee') }} @endif
@if($step['is_self'])

{{ __('Select staff above') }}

@else @error('evaluators.'.$step['stage'])
{{ $message }}
@enderror @endif
@endforeach {{ __('Back') }}
{{-- Bulk --}}
@csrf
@include('admin.performance_appraisal.partials.instance_shared_fields', ['prefix' => 'bulk'])
{{ __('Bulk create assigns evaluators automatically from each employee\'s supervisor chain. No manual stage mapping is needed.') }}

{{ __('Select employees') }}
0 {{ __('selected') }}
{{ __('Available') }}
{{ count($staffOptions) }}
{{ __('Selected') }}
0
{{ __('Selection applied') }}
@forelse($staffOptions as $row) @empty @endforelse
{{ __('Employee') }} {{ __('Department') }} {{ __('Branch') }}
{{ $row['staff_name'] }} ({{ $row['user_id'] }}) {{ $row['department_name'] }} {{ $row['branch_name'] }}
{{ __('No active staff found.') }}
{{ __('Back') }}
@endsection @section('script') @endsection