@extends('layouts.template.main') @section('content')

Chào mừng bạn đến với Bảng điều khiển quản lý nhân sự của bạn!

Quản lý nhân viên, hợp lý hóa quy trình làm việc và tối ưu hóa hoạt động nhân sự một cách dễ dàng bằng các công cụ và tài nguyên mạnh mẽ của chúng tôi.

{{--
--}} {{-- --}} {{--
--}}
{{-- -------------------- Announcements -------------------- --}}
Quy định chung
@foreach ($notices as $announcement)
{{ $announcement->created_at->diffForHumans() }}
{{ $announcement->title }} - {{ \Illuminate\Support\Str::limit($announcement->description, 200, '...') }}
@endforeach
{{-- ------------------------- Attendaces Data ------------------------- --}}
Vi phạm của tôi tháng {{ $empSelectedMonth }}/{{ $empSelectedYear }}
{{ $empStats['late'] + $empStats['early_leave'] }}
Đi muộn / Về sớm
{{ $empStats['late'] }} lần muộn • {{ $empStats['early_leave'] }} lần về sớm
{{ $empStats['leave'] }}
Ngày nghỉ phép
{{ $empStats['late'] + $empStats['early_leave'] + $empStats['leave'] }}
Tổng vi phạm
Xem tất cả chấm công
@if (auth()->user()->hasRole('admin') || auth()->user()->hasRole('hr')) @endif @foreach ($attendances as $attendance) {{-- -------------------------- Natural hour to minuite convertion -------------------------- --}} {{-- -------------------------- Natural hour to minuite convertion -------------------------- --}} @if (auth()->user()->hasRole('admin') || auth()->user()->hasRole('hr')) @endif @endforeach
Họ tên Ngày Giờ vào Giờ ra Trạng thái Giờ làm việcThao tác
{{ $attendance->employee->name ?? '' }} {{ \Carbon\Carbon::parse($attendance->date)->format('d/m/Y') ?? '' }} {{ $attendance->check_in_time ? \Carbon\Carbon::parse($attendance->check_in_time)->format('h:i A') : '' }} {{ $attendance->check_out_time ? \Carbon\Carbon::parse($attendance->check_out_time)->format('h:i A') : '' }} @if ($attendance->status == 'Late') Đi muộn @elseif($attendance->status == 'EarlyLeave') Về sớm @elseif($attendance->status == 'Present') Có mặt @elseif($attendance->status == 'MissingPunch') Quên chấm công @else {{ $attendance->status }} @endif @php $hours = floor($attendance->working_hours); $minutes = round(($attendance->working_hours - $hours) * 60); $parts = []; if ($hours > 0) { $parts[] = $hours . ' ' . ($hours === 1 ? 'hr' : 'hrs'); } if ($minutes > 0) { $parts[] = $minutes . ' ' . ($minutes === 1 ? 'min' : 'mins'); } $formattedTime = count($parts) ? implode(' ', $parts) : '0 min'; @endphp {{ $formattedTime }}
@endsection