@extends('layouts.teacher')
| # | User | First Name | Last Name | Phone | Status | Attendance | ||
|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | @if (isset($user->profile_photo_path))
|
@else
|
@endif
{{ ucwords($user->first_name) }} | {{ ucwords($user->last_name) }} | @if ($user->parent_id !== null && $user->parent->email !== null) {{ ucwords($user->parent->email) }} @elseif(isset($user->student)) {{ ucwords($user->student->email) }} @endif | @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' }} |
| # | User | First Name | Last Name | Phone | Status | Attendance | Action | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | @if (isset($user->profile_photo_path))
|
@else
|
@endif
{{ ucwords($user->first_name) }} | {{ ucwords($user->last_name) }} | @if ($user->parent_id !== null && $user->parent->email !== null) {{ ucwords($user->parent->email) }} @else {{ ucwords($user->email) }} @endif | @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' }} |