Human Resource Dashboard

Manage your team members and their information

Total Departments
{{ $departmentsCount ?? 0 }}
{{ $departments->count() ?? 0 }} active
Total Positions
{{ $positionsCount ?? 0 }}
{{ $positions->count() ?? 0 }} active
@if(session('success')) @endif @if(session('error')) @endif
{{ $totalStaff ?? 0 }}
Total Staff
+12%
{{ $activeStaff ?? 0 }}
Active
+5%
{{ $departmentsCount ?? 0 }}
Departments
{{ $positionsCount ?? 0 }}
Positions
{{ $pendingLeaves ?? 0 }}
Pending Leaves
-2%
{{ $approvedLeaves ?? 0 }}
Approved This Month

Recent Leave Requests

View All
@php $recentLeaves = \App\Models\Leave::with(['staff', 'leaveType']) ->orderBy('created_at', 'desc') ->limit(5) ->get(); @endphp @if($recentLeaves->count() > 0) @foreach($recentLeaves as $leave) @endforeach
{{ substr($leave->staff->first_name ?? '', 0, 1) }}{{ substr($leave->staff->last_name ?? '', 0, 1) }}

{{ $leave->staff->first_name ?? 'Unknown' }} {{ $leave->staff->last_name ?? '' }}

{{ $leave->staff->employee_id ?? 'N/A' }}
{{ $leave->leaveType->name ?? $leave->leave_type ?? 'Annual' }}
{{ \Carbon\Carbon::parse($leave->start_date)->format('M d') }} - {{ \Carbon\Carbon::parse($leave->end_date)->format('M d') }}
{{ $leave->duration ?? 'N/A' }} days
{{ ucfirst($leave->status) }}
@else

No recent leave requests

@endif

Upcoming Leave Calendar

Loading calendar...

Loading calendar data...

Unable to load calendar. Using sample data instead.

No upcoming leaves scheduled

Filter Staff

Clear

Staff Members

{{ $staff->total() ?? 0 }} total employees

Add Staff
@if($staff->count() > 0)
@foreach($staff as $member) @endforeach
Employee ID Department Position Contact Status Actions
@if($member->profile_picture) {{ $member->first_name }} @else {{ substr($member->first_name, 0, 1) }}{{ substr($member->last_name, 0, 1) }} @endif

{{ $member->first_name }} {{ $member->last_name }}

{{ $member->email }}
{{ $member->employee_id ?? 'N/A' }} @if($member->department) {{ $member->department->name }} @else N/A @endif @if($member->position) {{ $member->position->name }} @else N/A @endif
@if($member->phone)
{{ $member->phone }}
@endif @if($member->emergency_contact_name)
{{ $member->emergency_contact_name }}
@endif
{{ ucfirst(str_replace('_', ' ', $member->status)) }}
Showing {{ $staff->firstItem() ?? 0 }} to {{ $staff->lastItem() ?? 0 }} of {{ $staff->total() ?? 0 }} entries
@else

No Staff Members Found

Try adjusting your filters or add a new staff member.

Add New Staff
@endif
0 staff selected