@extends('layouts.appv2') @section('content') {{-- Table index start --}} @foreach($users as $users)

Welcome, {{$users->userfirstname}}

@endforeach

Attendances

@foreach($departmentNames as $index => $departmentName)
{{ $departmentName }}: {{ isset($checkinsByDepartment[$departmentName]) ? $checkinsByDepartment[$departmentName] : 0 }} / {{ $departmentCounts[$index] }}
@endforeach

Total Staff

{{$totalemployee}} Staff

Staff On Leave

{{$leavetoday}}

Outside Radius

{{ $totalCheckinsOutsideRadius }}

Statistic Graph

Staff in Department

@php $tenantDb = session('tenant_db'); $cacheKey = "chatbot_enabled_{$tenantDb}"; @endphp @if(Cache::get($cacheKey))
AI Chatbot Assistant
👋 Hi! How can I help you today?
@endif @endsection