@extends('layouts.sidebar') @section('title', 'Attendance') @section('content') @if (in_array('Manage Attendance', $privileges)) @php // Get the authenticated user $user = Auth::user(); // Check if the user has assigned agency IDs $agencyIds = $user->viewable_agency_ids; // If the user has agency IDs, filter the departments by associated agency if (!empty($agencyIds)) { $client = App\Models\Department::whereHas('client', function ($q) use ($agencyIds) { // Filter clients by agencies $q->whereIn('agency_id', $agencyIds); })->get(); } else { // If no agency IDs assigned, fetch all departments $client = App\Models\Department::all(); } @endphp @include('Admin.Attendance.complete.modal')

Attendace

@if (session('success'))
{{ session('success') }}
@endif @if (session('warning'))
{{ session('warning') }}
@endif
@csrf

Option 1

@error('file')
{{ $message }}
@enderror

Excel Format: Download

@csrf

Option 2

@error('file') {{ $message }} @enderror

Excel Format: Download

@csrf

Option 3

@error('file') {{ $message }} @enderror

Excel Format: Download

Employee ID Client Name Name Employee Date Time In Time Out Notes status Actions
@else
You don't have privilege to access this page
@endif @include('Admin.Attendance.complete.js') @endsection