@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Admin | Today's Teacher Attendance @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Records / Today's Teacher Attendance

Add rectification in today's attendance if required
Teachers List
Date: {{ date('d-m-Y') }}
@php $yearRange = session('year_range'); // Example: "2023-2024" $currentDate = now(); [$startYear, $endYear] = explode('-', $yearRange); $startDate = \Carbon\Carbon::create($startYear, 4, 1, 0, 0, 0); // April 1st $endDate = \Carbon\Carbon::create($endYear, 3, 31, 23, 59, 59); // March 31st @endphp
@if ($currentDate->between($startDate, $endDate)) @endif @if (count($users) != 0) @foreach ($users as $key => $user)
S.No Name Email Phone No. Class StatusActions
{{ $key + 1 }} {{ ucwords($user->first_name) . ' ' . ucwords($user->last_name) }} {{ $user->phone }}