@extends('layouts.mainlayout') @section('title', 'Dashboard') @section('main') {{-- @if(auth()->user()->can('Administration Module')) --}} @if(auth()->user())
@if(auth()->user()->can('View Admin Dashboard')) @else @endif

Total

{{$totalEmployees}}
Show All

Available

{{$totalPresent}}
Show All

On Leave

{{$usersOnLeaveCount}}
Show All

Weekly Off

@if(auth()->user()->can('Break-shift enabled')) N/A
Not Applicable
@else {{$usersOnWeekendCount}}
Show All
@endif
@if(auth()->user()->can('View Admin Dashboard'))

Late Check-in

@if(auth()->user()->can('Break-shift enabled')) N/A
Not Applicable
@else {{$lateCheckinCount}}
Show All
@endif

No Check-in

{{$noCheckinUsersCount}}
Show All

Early Checkout

@if(auth()->user()->can('Break-shift enabled')) N/A
Not Applicable
@else {{$earlyCheckoutCount}}
Show All
@endif
@endif

@if(auth()->user()->can('View All leave requests') || auth()->user()->can('View All leave requests of team') || auth()->user()->can('View All leave requests of assigned employees'))
Leave Requests
@elseif(auth()->user()->can('View Self Leave Report'))
Leave Requests
@endif {{-- @if(auth()->user()->can('Administration Module')) --}} @if(auth()->user()->can('View All Attendance request') || auth()->user()->can('View All Attendance requests of team') || auth()->user()->can('View All Attendance requests of assigned employees'))
Attendance Requests
{{--