@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $blank = ['id' => null, 'name' => '', 'student_code' => '', 'course_id' => '', 'achievement' => '', 'exam' => '', 'position' => '', 'year' => now()->year, 'quote' => '', 'sort_order' => 0, 'is_published' => true]; @endphp
View page @include('tenant.coaching._errors') @if($years->count() > 1)
All @foreach($years as $year) {{ $year }} @endforeach
@endif
@forelse($achievers as $achiever) @php $editData = $achiever->only('id', 'name', 'course_id', 'achievement', 'exam', 'position', 'year', 'quote', 'sort_order', 'is_published') + ['student_code' => $achiever->student?->student_code]; @endphp
@if($achiever->photoUrl()) @else {{ mb_substr($achiever->name, 0, 1) }} @endif

{{ $achiever->name }}

{{ $achiever->achievement }}

{{ collect([$achiever->exam, $achiever->position, $achiever->year])->filter()->implode(' · ') }}

{{ $achiever->course?->name }}@if(! $achiever->is_published) · Hidden @endif

@csrf @method('DELETE')
@empty
No achievers yet. Add last year's medical/engineering/university admission results to build trust with new families.
@endforelse
{{ $achievers->links() }}
@csrf