@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') {{-- Hero Section --}}
{{ __('Welcome back') }}, {{ auth()->user()->getFullName() }} 👋🏻

{{ $quoteText }}

{{ __('Hours Today') }}

{{ $core['todayHours'] ?? 0 }}h

{{ __('Present Today') }}

{{ $core['todayPresent'] ?? 0 }}

{{ __('On Leave') }}

{{ $core['todayOnLeave'] ?? 0 }}

{{ __('Time Spending') }}

{{ __('Weekly Overview') }}

{{ $core['weeklyHours'] ?? 0 }}h

{{ __('Weekly working hours') }}
{{-- Core HR & Attendance Overview --}}
{{ __('Attendance & HR Overview') }}
{{-- HR & Workforce Section --}} @if(!empty($hrWorkforce))
{{ __('HR & Workforce Management') }}
{{-- Payroll --}} @if(isset($hrWorkforce['payroll']) && $hrWorkforce['payroll']['enabled']) @endif {{-- Recruitment --}} @if(isset($hrWorkforce['recruitment']) && $hrWorkforce['recruitment']['enabled']) @endif {{-- LMS --}} @if(isset($hrWorkforce['lms']) && $hrWorkforce['lms']['enabled']) @endif {{-- Assets --}} @if(isset($hrWorkforce['assets']) && $hrWorkforce['assets']['enabled']) @endif
@endif {{-- Finance & Accounting Section --}} @if(!empty($finance))
{{ __('Finance & Accounting') }}
{{-- Accounting Core --}} @if(isset($finance['accounting']) && $finance['accounting']['enabled']) @endif {{-- Loans --}} @if(isset($finance['loans']) && $finance['loans']['enabled']) @endif {{-- Expenses --}} @if(isset($finance['expenses']) && $finance['expenses']['enabled']) @endif {{-- Payment Collection --}} @if(isset($finance['paymentCollection']) && $finance['paymentCollection']['enabled']) @endif
@endif {{-- Business Operations Section --}} @if(!empty($businessOperations))
{{ __('Business Operations') }}
@if(isset($businessOperations['systemCore']) && $businessOperations['systemCore']['enabled']) {{-- Customers --}} {{-- Suppliers --}} {{-- Products --}} {{-- Sales This Month --}} @endif
@endif {{-- Sales & Field Operations Section --}} @if(!empty($sales))
{{ __('Sales & Field Operations') }}
{{-- Field Manager --}} @if(isset($sales['fieldManager']) && $sales['fieldManager']['enabled']) @endif {{-- Field Task --}} @if(isset($sales['fieldTask']) && $sales['fieldTask']['enabled']) @endif {{-- Product Order --}} @if(isset($sales['productOrder']) && $sales['productOrder']['enabled']) @endif {{-- Sales Target --}} @if(isset($sales['salesTarget']) && $sales['salesTarget']['enabled']) @endif
@endif {{-- Communications Section --}} @if(!empty($communications))
{{ __('Communications') }}
{{-- Agora Call --}} @if(isset($communications['agoraCall']) && $communications['agoraCall']['enabled']) @endif {{-- Notice Board --}} @if(isset($communications['noticeBoard']) && $communications['noticeBoard']['enabled']) @endif
@endif {{-- Documents & Operations Section --}} @if(!empty($documents) || !empty($operations))
{{ __('Documents & Operations') }}
{{-- Document Management --}} @if(isset($documents['documentManagement']) && $documents['documentManagement']['enabled']) @endif {{-- Form Builder --}} @if(isset($documents['formBuilder']) && $documents['formBuilder']['enabled']) @endif {{-- Calendar --}} @if(isset($operations['calendar']) && $operations['calendar']['enabled']) @endif {{-- Notes --}} @if(isset($operations['notes']) && $operations['notes']['enabled']) @endif
@endif {{-- Charts and Detailed Views --}}
{{-- Department Performance Chart --}} {{-- Pending Requests --}}
{{ __('Pending Requests') }}
@if(\Illuminate\Support\Facades\Route::has('leaveRequests.index')) {{ __('Leave Requests') }} {{ $core['pendingLeaveRequests'] ?? 0 }} @endif @if(\Illuminate\Support\Facades\Route::has('expenseRequests.index')) {{ __('Expense Requests') }} {{ $core['pendingExpenseRequests'] ?? 0 }} @endif @if(\Illuminate\Support\Facades\Route::has('loan.index')) {{ __('Loan Requests') }} {{ $core['pendingLoanRequests'] ?? 0 }} @endif @if(isset($documents['documentManagement']) && $documents['documentManagement']['enabled']) {{ __('Document Requests') }} {{ $documents['documentManagement']['pendingRequests'] ?? 0 }} @endif
{{-- Recent Activities --}}
{{ __('Recent Activities') }}

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

    {{-- Activities will be dynamically loaded via JavaScript --}}
{{-- Pass data to JavaScript --}} @endsection