@extends('layouts.school') @section('title', 'Conduct & Skills') @section('header', 'Affective & Psychomotor Assessment') @section('content')

Add Affective Trait

@csrf

Add Psychomotor Skill

@csrf

Rating Scale

Use any school-defined scale, e.g. A B C D E or 1 2 3 4 5. Ratings appear on report cards for traits marked visible.

@foreach(['affective' => 'Affective Traits', 'psychomotor' => 'Psychomotor Skills'] as $cat => $label)

{{ $label }}

@forelse(($traits[$cat] ?? collect()) as $trait) @empty @endforelse
{{ $trait->name }}
@csrf @method('DELETE')
None configured.
@endforeach
{{-- Ratings entry --}}
@if($students->count() && ($traits['affective'] ?? collect())->count() || ($traits['psychomotor'] ?? collect())->count())
@csrf
@foreach(['affective', 'psychomotor'] as $cat) @foreach(($traits[$cat] ?? collect()) as $trait) @endforeach @endforeach @foreach($students as $student) @foreach(['affective', 'psychomotor'] as $cat) @foreach(($traits[$cat] ?? collect()) as $trait) @php $rating = $ratings->get("{$student->id}_{$trait->id}"); @endphp @endforeach @endforeach @endforeach
Student{{ $trait->name }}
{{ $student->full_name }} id}.{$trait->id}", $rating?->rating) }}" maxlength="10" class="w-14 rounded-lg border border-gray-300 px-2 py-1.5 text-center text-sm shadow-sm focus:border-primary-500 focus:outline-none focus:ring-1 focus:ring-primary-500">
@endif @endsection