{{ $goal->status }}

{{ $goal->title }}

"{{ $goal->description }}"

{{ __('Student') }}

{{ strtoupper(substr($goal->student->name, 0, 1)) }}

{{ $goal->student->name }}

{{ $goal->student->schoolClass->name ?? 'Class' }}

@php $progress = $goal->current_progress; $barColor = $progress < 20 ? 'bg-red-500' : ($progress < 70 ? 'bg-yellow-500' : 'bg-emerald-500'); $textColor = $progress < 20 ? 'text-red-600' : ($progress < 70 ? 'text-yellow-700' : 'text-emerald-600'); $bgLight = $progress < 20 ? 'bg-red-50 border-red-200' : ($progress < 70 ? 'bg-yellow-50 border-yellow-200' : 'bg-emerald-50 border-emerald-200'); @endphp
{{ __('Goal Progress') }} {{ $progress }}% / {{ $goal->target_percentage }}%

@if($progress < 20) ⚠️ {{ __('Low Progress') }} @elseif($progress < 70) 📈 {{ __('Moving Forward') }} @else 🎉 {{ __('Almost There') }} @endif

{{ __('Tasks & Submissions') }}

{{ __('Review evidence and award progress') }}

@forelse($goal->tasks as $task)

{{ $task->title }}

{{ $task->status }}

{{ __('Value') }}: {{ $task->contribution_percentage }}%

{{-- Student Work Display --}} @if($task->student_note || $task->student_attachment)

{{ __('Student Submission') }}

@if($task->student_note)

"{{ $task->student_note }}"

@endif @if($task->student_attachment) {{ __('View Attached Evidence') }} @endif
@endif
{{-- ACTION BUTTONS --}}
@if($task->status === 'submitted' || $task->status === 'pending') @endif {{-- DELETE TASK FORM --}}
@csrf @method('DELETE')
@empty

{{ __('No tasks found.') }}

@endforelse
@csrf @method('PUT')

{{ __('Grading Task') }}

{{-- Link in Modal for quick reference --}}
@csrf