@extends('layouts.app') @section('title', __('New Performance')) @section('content')
@include('partials.messages')

{{ __('New Performance') }}

{{ __('Back to Performances') }}
{{-- Step 1: pick a contract. Plain GET reload. --}}
@if($contracts->isEmpty()) {{ __('No published contracts without a performance yet.') }} @endif
@if($contract) {{-- Step 2: pick a department. Plain GET reload, keeps contract_id. --}}
@endif
@if($contract && $department) @if($department->users->isEmpty())
{{ __('":name" has no members to pick an appraisor from.', ['name' => $department->name]) }}
@else
@csrf
@error('appraisor_id')
{{ $message }}
@enderror {{ __('This person reviews every user covered by the contract.') }}
{{ __('Components & KPIs') }}
{{ __('Each KPI is scored 0-5 during a review. Weights default to 1 - leave them as-is for a plain average, or raise the weight of anything that should count for more.') }}
@error('components')
{{ $message }}
@enderror
{{ __('Review Schedule') }}
{{ __('One due date per review cycle - e.g. quarterly reviews would be four dates.') }}
@error('due_dates')
{{ $message }}
@enderror
{{ __('Cancel') }}
@endif @endif
@endsection @push('scripts') @endpush