{{ __('Dashboard') }}

{{ __('Welcome back') }}, {{ Auth::user()->name_localized ?? Auth::user()->email }} ({{ __($role) }})

@php $endingEmployeeContracts = $data['endingEmployeeContracts'] ?? collect(); $endingCompanyContracts = $data['endingCompanyContracts'] ?? collect(); $endingContractsCount = $endingEmployeeContracts->count() + $endingCompanyContracts->count(); @endphp @if($endingContractsCount > 0)
{{ __('Contracts expiring within 60 days') }}
{{ __('You have') }} {{ $endingContractsCount }} {{ __('contract(s) ending soon.') }} @if($endingEmployeeContracts->isNotEmpty() && auth()->user()->can('employees show')) {{ __('View employee contracts') }} @endif @if($endingCompanyContracts->isNotEmpty() && auth()->user()->can('clients show')) {{ __('View company contracts') }} @endif
@endif @if(($data['overdueTasks'] ?? 0) > 0)
{{ __('Overdue Tasks') }}
{{ __('You have') }} {{ $data['overdueTasks'] }} {{ __('overdue task(s).') }} {{ __('Check now') }}
@endif @can('tasks show')
{{ __('Tasks') }}
{{ $data['myTasks'] ?? $data['tasksCount'] ?? 0 }}
{{ __('Overdue Tasks') }}
{{ $data['overdueTasks'] ?? 0 }}
@endcan
{{ __('Today Attendance') }}
{{ $data['todayAttendanceCount'] ?? 0 }}
@can('tasks show')
{{ __('Weekly Task Growth') }}
{{ ($data['taskGrowth'] ?? 0) . '%' }}
@endcan
@can('documents show')
@endcan @can('leaves show')
@endcan @can('custodies show')
@endcan @can('tasks show')
@endcan @can('deputations show')
@endcan @can('permissions show')
@endcan @can('attendance-requests show')
@endcan @can('absences show')
@endcan @can('purchases show')
@endcan @can('advances show')
@endcan
@can('tasks show') @endcan @can('leaves show') @endcan @can('projects show') @endcan @can('activity logs show') @endcan
@if ($activeTab === 'statistics') @include('dashboard.statistics') @elseif ($activeTab === 'tasks' && auth()->user()->can('tasks show')) @include('dashboard.tasks') @elseif ($activeTab === 'leaves' && auth()->user()->can('leaves show')) @include('dashboard.leaves') @elseif ($activeTab === 'projects' && auth()->user()->can('projects show')) @include('dashboard.projects') @elseif ($activeTab === 'activities' && auth()->user()->can('activity logs show')) @include('dashboard.activities') @endif
@push('scripts') @endpush