@extends('dashboard.layouts.app') @push('headScripts') @endpush @section('content')

{{ __('KPIS') }} / {{ __('Users KPIS') }} / {{ (isset($users_kpi))?__('Edit :type',['type'=>$users_kpi->name]):__('Create') }}

@if(isset($users_kpi)) @method('PUT') @endif @csrf
{{ (isset($users_kpi))?__('Edit :type',['type'=>$users_kpi->name]):__('Create') }}
@error('year') {{ $message }} @enderror @error('month') {{ $message }} @enderror
@error('user_id') {{ $message }} @enderror
@if(isset($users_kpi)) @include('dashboard.users_kpis.show_questions',['userKPIQuestions'=>$users_kpi->Questions]) @elseif(old('questionsIDS')) @include('dashboard.users_kpis.show_questions',['questions'=>\App\Models\KPISQuestion::whereIn('id',old('questionsIDS'))->get()]) @endif
@endsection @push('footerScripts') @endpush