@extends('layouts.admin') @section('page-title', 'HRM Dashboard') @push('styles') @endpush @section('content')
| Employee | Department | Status | Joined |
|---|---|---|---|
|
{{ strtoupper(substr($emp->first_name, 0, 1).substr($emp->last_name, 0, 1)) }}
{{ $emp->first_name }} {{ $emp->last_name }}
{{ $emp->designation?->name ?? 'N/A' }}
|
{{ $emp->department?->name ?? 'N/A' }} | {{ ucfirst($emp->status) }} | {{ $emp->join_date?->format('M d, Y') ?? 'N/A' }} |
| No employees yet | |||
| Holiday | Date | Days Left |
|---|---|---|
| {{ $holiday->name }} | {{ $holiday->date->format('M d, Y') }} | @php $daysLeft = now()->diffInDays($holiday->date, false); $badgeClass = $daysLeft <= 3 ? 'badge-red' : ($daysLeft <= 7 ? 'badge-yellow' : 'badge-blue'); @endphp {{ $daysLeft }} days |
| No upcoming holidays | ||