@extends('layouts.app') @section('title', $student->name) @section('content') @php $profile = $student->studentProfile; $current = $profile?->currentSemester; $overall = collect($progress)->reduce(function ($carry, $p) { $carry['total'] += $p['total']; $carry['passed'] += $p['passed']; $carry['retry'] += $p['retry']; return $carry; }, ['total' => 0, 'passed' => 0, 'retry' => 0]); $overallPct = $overall['total'] > 0 ? (int) round($overall['passed'] / $overall['total'] * 100) : 0; @endphp Students {{-- ── Identity ───────────────────────────────────────────────────────── --}}