@extends('layouts.app') @section('styles') @endsection @section('content')

{{ __('Link Tests to Profile') }}: {{ $profile->trans('profilename') }}

@if(session('success')) @endif
{{ __('Available Tests') }} {{ __('Drag to reorder') }}
@csrf
{{ __('Select the tests that should be part of this profile. Users will complete these tests in the order shown below.') }}
@if($allTests->count() > 0)
    @foreach($allTests as $test)
  • id, $linkedTestIds) ? 'checked' : '' }}>
    {{ $test->questions()->count() }} {{ __('questions') }}
    @if($test->description) {{ \Illuminate\Support\Str::limit($test->trans('description'), 100) }} @endif
  • @endforeach
@else

{{ __('No tests available. Create tests first in the Tests section.') }}

{{ __('Go to Tests') }} @endif
{{ __('Back to Profiles') }}
{{ __('Profile Summary') }}

{{ __('Profile') }}: {{ $profile->trans('profilename') }}

{{ __('Linked Tests') }}: {{ count($linkedTestIds) }}

@if(count($linkedTestIds) > 0)

{{ __('Total Questions') }}: {{ $profile->getAllQuestionsCount() }}

@endif
{{ __('Edit Profile') }}
{{ __('How it works') }}
  1. {{ __('Select which tests to include in this profile') }}
  2. {{ __('Drag to set the order in which users complete them') }}
  3. {{ __('Click "Save Changes" to apply your selection') }}
  4. {{ __('Users will answer the test questions when completing this profile') }}
@endsection @push('scripts') @endpush