@extends('layouts.app', ['path' => 'dashboard']) @section('title', 'Dashboard - HRMS') @section('content') {{-- @can('dashboard.read|dashboard.view_stats') --}}
@if (session('user.image')) img @else img @endif

Welcome Back, {{ session()->get('user.name') }}

@can('dashboard.read')
@can('departments.read')
Active Departments

{{ $dataCount['departments'][0] }}

View All
@endcan @can('departments.read')
Active Designations

{{ $dataCount['designations'][0] }}

View All
@endcan @can('office_locations.read')
Active Office Locations

{{ $dataCount['officeLocations'][0] }}

View All
@endcan @can('job_levels.read')
Active Job Levels

{{ $dataCount['jobLevels'][0] }}

View All
@endcan @can('employment_types.read')
Active Employment Types

{{ $dataCount['employeeTypes'][0] }}

View All
@endcan @can('qualification_levels.read')
Active Qualifications

{{ $dataCount['qualificationLevels'][0] }}

View All
@endcan @can('payroll_structures.read')
Active Pay Structure

{{ $dataCount['payrollStructure'][0] }}

View All
@endcan @can('tax_structure.read')
Active Tax Structures

{{ $dataCount['taxStructures'][0] }}

View All
@endcan
{{-- Employee Birthdays --}}
Birthdays
@if (!empty($birthdays)) @endif @forelse($birthdays as $birthday) @empty

No Record Found!

@endforelse
Name Department Birthday
{{ $birthday['department'] ?? '' }}
{{ $birthday['birthday'] }}
{{-- End Here --}} {{-- Employee Oldest by Department --}}
Employees
@if (!empty($employees)) @endif @forelse($employees as $employee) @empty

No Record Found!

@endforelse
Name Department
{{ $employee['department']['name'] ?? '' }}
{{-- End Here --}} {{-- Employee Work Anyversry --}}
Work Anniversary
@forelse ($workAnniversary as $anniversary)
{{ $anniversary['next_anniversary'] }}
@if ($anniversary['profile_image']) img @else img @endif
{{ $anniversary['name'] }}

{{ $anniversary['designation_name'] }}

@empty

No Record Found!

@endforelse
{{-- End Here --}}
@endcan
{{-- @endcan --}} @endsection @push('scripts') @can('dashboard.read') @endcan @endpush