@extends('layouts.teacher') {{ config('app.name', 'Laravel') }} | Teacher | Profile @include('datepicker') @section('main-content')
@if (Session::has('success')) @endif

{{ now()->format('d-F-Y') }} ( Today's Attendance )

@if (!$holiday) Add Rectification @endif
Students List
{{--
@if (isset($users) && count($users) != 0) @foreach ($users as $key => $user) @if (isset($user->profile_photo_path)) @else @endif @endforeach @else @endif
# User First Name Last Name Email Phone Status Attendance
{{ $key + 1 }} user user {{ ucwords($user->first_name) }} {{ ucwords($user->last_name) }} @if ($user->parent_id !== null) {{ $user->parent->phone }} @else {{ $user->phone }} @endif @if ($user->status == 'active') Active @else In-Active @endif @if (isset($present_students) && count($present_students) > 0 && in_array($user->id, $present_students)) Present @elseif(isset($leaves) && count($leaves) > 0 && in_array($user->id, $leaves)) On Leave @else Absent @endif
{{ 'No record found' }}
--}}
@if (isset($users) && count($users) != 0) @foreach ($users as $key => $user) @if (isset($user->profile_photo_path)) @else @endif @endforeach @else @endif
# User First Name Last Name Email Phone Status Attendance Action
{{ $key + 1 }} user user {{ ucwords($user->first_name) }} {{ ucwords($user->last_name) }} @if ($user->parent_id !== null) {{ $user->parent->phone }} @else {{ $user->phone }} @endif @if ($user->status == 'active') Active @else In-Active @endif @if ($holiday) Holiday @else @if (isset($present_students) && count($present_students) > 0 && in_array($user->id, $present_students)) Present @elseif(isset($leaves) && count($leaves) > 0 && in_array($user->id, $leaves)) On Leave @else Absent @endif @endif @if ($holiday) Holiday @else @if (isset($present_students) && count($present_students) > 0 && in_array($user->id, $present_students)) @elseif(isset($leaves) && count($leaves) > 0 && in_array($user->id, $leaves)) Leave @else @endif @endif
{{ 'No record found' }}
@endsection