@extends('layouts.user') @section('title', __('hr.attendance_sheet')) @section('page_title', __('hr.attendance_sheet')) @section('breadcrumb', __('hr.hr_attendance_sheet')) @section('content') @php use Carbon\Carbon; $advanceRowsByDate = collect($advanceRowsByDate ?? []); $totalMonthlyAdvance = (float) ($totalMonthlyAdvance ?? 0); $monthName = Carbon::createFromDate($year, $month, 1)->format('F Y'); $isMonthly = $employee->employee_type === 'monthly'; $isDailyRoz = $employee->employee_type === 'daily_roz'; @endphp
{{ __('hr.daily_attendance_advance_reference_note') }}
| {{ __('hr.date') }} | {{ __('hr.day') }} | {{ __('hr.status') }} | @if($isMonthly){{ __('hr.overtime') }} | @endif @if($isDailyRoz){{ __('hr.roz') }} | @endif{{ __('hr.advance') }} | {{ __('hr.reference') }} | {{ __('hr.note') }} |
|---|---|---|---|---|---|---|---|
| {{ Carbon::parse($day)->format('d M Y') }} | {{ Carbon::parse($day)->format('l') }} | @if($row) {{ __('hr.status_' . $row->day_status) }} @else {{ __('hr.dash') }} @endif | @if($isMonthly){{ $row ? number_format((float) $row->overtime_hours, 2) : __('hr.dash') }} | @endif @if($isDailyRoz){{ $row ? number_format((float) $row->roz_value, 2) : __('hr.dash') }} | @endif{{ $advanceTotal > 0 ? number_format($advanceTotal, 2) : __('hr.dash') }} | {{ $referenceText !== '' ? $referenceText : __('hr.dash') }} | {{ $allNotes !== '' ? $allNotes : __('hr.dash') }} |
{{ Carbon::parse($day)->format('l') }}