@extends('layouts.user') @section('title', __('hr.attendance_list')) @section('page_title', __('hr.attendance_list')) @section('breadcrumb', __('hr.hr_attendance')) @section('content')
{{-- 🔍 Filter Bar (Single Line) --}}
{{-- 📊 Table --}}
{{-- Header --}}

{{ __('hr.attendance_records') }}

{{ __('hr.monthly_daily_roz_attendance') }}

{{ __('hr.total') }}: {{ $attendances->total() }}
{{-- Table --}}
@forelse($attendances as $attendance) @empty @endforelse
{{ __('hr.employee') }} {{ __('hr.code') }} {{ __('hr.type') }} {{ __('hr.status') }} {{ __('hr.ot') }} {{ __('hr.roz') }} {{ __('hr.date') }} {{ __('hr.note') }} {{ __('hr.action') }}
{{ $attendance->employee->name ?? __('hr.na') }} {{ $attendance->employee->employee_code ?? '-' }} {{ $attendance->attendance_type === 'daily_roz' ? __('hr.roz') : __('hr.monthly') }} {{ __('hr.status_' . $attendance->day_status) }} {{ number_format((float) $attendance->overtime_hours, 2) }} {{ number_format((float) $attendance->roz_value, 2) }} {{ \Carbon\Carbon::parse($attendance->attendance_date)->format('d M Y') }} {{ $attendance->note ?: '-' }}
@csrf @method('DELETE')
{{ __('hr.no_attendance_record_found') }}
{{-- Pagination --}} @if($attendances->hasPages())
{{ $attendances->links() }}
@endif
{{-- 🧠 Delete Confirm --}} @endsection