@extends('layouts.app') @section('content')
| # | Class | Date | Taken By | Locked | Actions |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $session->class->batch->name ?? 'N/A' }} | {{ $session->session_date->format('Y-m-d') }} | {{ $session->takenBy->username ?? 'N/A' }} | @if($session->locked) Locked @else Open @endif | View {{-- ✅ FIXED: Use the same route for both lock and unlock --}} |
| No attendance sessions found. | |||||