@extends('layouts.staff_dashboard') @section('title', 'Staff Dashboard') @section('content') @php $staffName = session('staff_data.name') ?? 'Faculty'; $staffDesg = session('staff_data.desg') ?? 'Faculty Member'; $deptLabel = $departmentName ?? ($staffEnhanced['dept_name'] ?? 'Department'); $batchLabel = $batchName ?? ($staffEnhanced['batch_name'] ?? 'Batch'); $courseList = collect($coursecounts ?? []); $totalCourses = $courseList->count(); $totalMaterials= $courseList->sum('materials'); $totalPqps = $courseList->sum('pqps'); $fbAvg = max(0, min(100, (float) ($feedbackData['average'] ?? 0))); $fbPctText = $feedbackData['percentage_formatted'] ?? number_format($fbAvg, 1); $fbCount = (int) ($feedbackData['count'] ?? 0); $fbStroke = $fbAvg >= 70 ? '#10b981' : ($fbAvg >= 50 ? '#f59e0b' : ($fbAvg > 0 ? '#f43f5e' : '#64748b')); $fbStatusText = $fbAvg >= 70 ? 'Excellent' : ($fbAvg >= 50 ? 'Good' : ($fbAvg > 0 ? 'Needs Focus' : 'No Reviews Yet')); $radius = 68; $circumference = 2 * pi() * $radius; $dashOffset = $circumference - ($fbAvg / 100) * $circumference; @endphp
{{ $staffDesg }} — Manage your classes, track student mastery, and review feedback in real time.
No student activity recorded for this course yet.
Rankings will appear here once courses are allocated and students begin practicing.