@php $quotes = [ ['text' => __('Success is the result of hard work, determination, and the courage to pursue greatness.')], ['text' => __('Teamwork divides the task and multiplies the success.')], ['text' => __("You don't have to be perfect to make an impact; every small effort counts.")], ['text' => __("Productivity is not about doing more; it's about focusing on what truly matters.")], ['text' => __('Your attitude, not your aptitude, will determine your altitude.')], ['text' => __('The secret to great teamwork is trust, communication, and a shared goal.')], ['text' => __('Every accomplishment starts with the decision to try.')], ['text' => __('When we work together, the impossible becomes possible.')], ['text' => __('Productivity is never an accident. It is always the result of commitment to excellence.')], ['text' => __('Believe in your ability to shape the future with the work you do today.')], ]; $quote = $quotes[array_rand($quotes)]; $quoteText = $quote['text']; @endphp @extends('layouts/layoutMaster') @section('title', __('Dashboard')) @section('vendor-style') @vite(['resources/assets/vendor/libs/apex-charts/apex-charts.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/apex-charts/apexcharts.js']) @endsection @section('page-script') @vite(['resources/assets/js/app/dashboard-index.js']) @endsection @section('content')
{{ __('Welcome back,') }} {{ auth()->user()->getFullName() }} 👋🏻

{{$quoteText}}

{{ __('Hours Logged') }}

{{ $todayHours ?? 0 }}h

{{ __('Pending Tasks') }}

{{ $tasks ?? 0 }}

{{ __('Ongoing Tasks') }}

{{ $onGoingTasks ?? 0 }}

{{ __('Time Spending') }}

{{ __('Weekly Overview') }}

{{ $thisWeekWorkingHours }}h

{{ __('Your weekly working hours') }}
{{ __('Total Employees') }}

{{ $totalUser }}

@if($totalUser > 0) {{ __('100% of total employees') }} @endif
{{ __('On Leave') }}

{{ $onLeaveUsersCount }}

@if($onLeaveUsersCount > 0) {{ round(($onLeaveUsersCount / $totalUser) * 100, 2) }}{{ __('% of total employees') }} @else {{ __('0% of total employees') }} @endif
{{ __("Today's Present") }}

{{ $todayPresentUsers }}

@if($todayPresentUsers > 0) {{ round(($todayPresentUsers / $totalUser) * 100, 2) }}{{ __('% of total employees') }} @else {{ __('0% of total employees') }} @endif
{{ __("Today's Absentees") }}

{{ $todayAbsentUsers }}

@if($todayAbsentUsers > 0) {{ round(($todayAbsentUsers / $totalUser) * 100, 2) }}{{ __('% of total employees') }} @else {{ __('0% of total employees') }} @endif
{{ __('Pending Requests') }}
@if(\Illuminate\Support\Facades\Route::has('leaveRequests.index')) {{ __('Leave Requests') }} {{ $pendingLeaveRequests }} @endif @if(\Illuminate\Support\Facades\Route::has('expenseRequests.index')) {{ __('Expense Requests') }} {{ $pendingExpenseRequests }} @endif @if(\Illuminate\Support\Facades\Route::has('documentmanagement.index')) {{ __('Document Requests') }} {{ $pendingDocumentRequests }} @endif @if(\Illuminate\Support\Facades\Route::has('loan.index')) {{ __('Loan Requests') }} {{ $pendingLoanRequests }} @endif
{{ __('Recent Activities') }}

{{ __('Latest activities of users') }}

@endsection