@extends('admin.layouts.app')
@section('title',get_setting('site_name').' | Admin Dashboard')
@section('content')
@foreach([
['key' => 'total', 'label' => __('Total Employee'), 'icon' => 'fas fa-users', 'color' => 'text-dark', 'data' => $statsTotal],
['key' => 'active', 'label' => __('Active Employee'), 'icon' => 'fas fa-user-check', 'color' => 'text-success', 'data' => $statsActiveEmployees],
['key' => 'inactive', 'label' => __('Inactive Employee'), 'icon' => 'fas fa-user-slash', 'color' => 'text-danger', 'data' => $statsInactiveEmployees],
['key' => 'present', 'label' => __('Present'), 'icon' => 'fas fa-user-check', 'color' => 'text-success', 'data' => $statsPresent],
['key' => 'absent', 'label' => __('Absent'), 'icon' => 'fas fa-user-slash', 'color' => 'text-danger', 'data' => $statsAbsent],
['key' => 'movement', 'label' => __('Movement'), 'icon' => 'fas fa-running', 'color' => 'text-info', 'data' => $statsMovement],
['key' => 'leave', 'label' => __('Leave'), 'icon' => 'fas fa-procedures', 'color' => 'text-stat-leave', 'data' => $statsLeave],
['key' => 'late', 'label' => __('Late'), 'icon' => 'fas fa-clock', 'color' => 'text-warning', 'data' => $statsLate],
['key' => 'Extra late', 'label' => __('Extra Late'), 'icon' => 'fas fa-clock', 'color' => 'text-primary', 'data' => $statsExtra],
] as $stat)
{{ $stat['data']['total'] }}
{{ $stat['label'] }}
{{ __('Male') }} : {{ $stat['data']['male'] }}
{{ __('Female') }} : {{ $stat['data']['female'] }}
@endforeach
@if(!empty($moduleMiniCards))
@foreach([
[
'value' => 0,
'label' => __('Pending Break Time Reconciliation'),
'icon' => 'fas fa-tasks',
'color' => 'text-gradient-success',
'modal' => null,
],
[
'value' => $statsResigned,
'label' => __('Resigned'),
'icon' => 'fas fa-person-walking-arrow-right',
'color' => 'text-gradient-warning',
'modal' => 'ResignedModal',
],
[
'value' => $statsTermination,
'label' => __('Termination'),
'icon' => 'fas fa-user-times',
'color' => 'text-gradient-danger',
'modal' => 'TerminationModal',
],
[
'value' => $statsRetirement,
'label' => __('Retirement'),
'icon' => 'fas fa-umbrella-beach',
'color' => 'text-gradient-primary',
'modal' => 'RetirementModal',
],
[
'value' => $pendingLeaveApplications,
'label' => __('Pending Leave Applications'),
'icon' => 'fas fa-envelope-open-text',
'color' => 'text-gradient-primary',
'modal' => null,
],
[
'value' => $assetsTotal,
'label' => __('Assets (Items)'),
'icon' => 'fas fa-boxes',
'color' => 'text-gradient-warning',
'modal' => null,
],
[
'value' => $assetsAssignedActive,
'label' => __('Assigned Assets'),
'icon' => 'fas fa-hand-holding',
'color' => 'text-gradient-success',
'modal' => null,
],
[
'value' => count($upcomingbirthdays),
'label' => __('Upcoming Birthdays'),
'icon' => 'far fa-gem',
'color' => 'text-gradient-danger',
'modal' => 'UpcomingBirthdayModal',
],
[
'value' => 1,
'label' => __('Pending Attendance Approval'),
'icon' => 'fas fa-users',
'color' => 'text-gradient-warning',
'modal' => null,
],
[
'value' => 1,
'label' => __('Pending Attendance Reconciliation'),
'icon' => 'fas fa-database',
'color' => 'text-gradient-primary',
'modal' => null,
],
] as $mini)
{{ $mini['value'] }}
@if(!empty($mini['modal']))
{{ $mini['label'] }}
@else
{{ $mini['label'] }}
@endif
@endforeach