@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 -------------------- --}}
Thông báo
@foreach($notices as $announcement)
{{ $announcement->created_at->diffForHumans() }}
{{ $announcement->title }} - {{ \Illuminate\Support\Str::limit($announcement->description,200,'...') }}
@endforeach
{{-- ----------------------------- Thông báo nghỉ phép/đi làm muộn ----------------------------- --}}
Thông báo nghỉ phép/đi làm muộn
{{--
--}}
{{-- ----------------------------- Payrolls ----------------------------- --}}
Bảng lương
{{-- ----------------------------- Expenses ----------------------------- --}}
Chi phí
{{-- ----------------------------- Announcements ----------------------------- --}}
Thông báo
{{-- ------------------------- Attendaces Data ------------------------- --}}
Xem tất cả Attendances
@foreach($attendances as $attendance) {{-- -------------------------- Natural hour to minuite convertion -------------------------- --}} {{-- -------------------------- Natural hour to minuite convertion -------------------------- --}} @if(auth()->user()->hasRole('manager') || auth()->user()->hasRole('employee')) @else @endif @endforeach
Name Email Date Checked in Checked out Status Working Hours Actions
{{ $attendance->employee->name ?? '' }} {{ $attendance->employee->email ?? '' }} {{ $attendance->date ?? '' }} {{ $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') : '' }} {{ $attendance->status ?? '' }} @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