@if (file_exists($logoPath)) @endif
{{ $companyName }}
@if ($companyLegalName && $companyLegalName !== $companyName) @endif
Human Resources Information System{{ $companyCode ? ' · '.$companyCode : '' }}

{{ $title }}

Generated {{ now()->format('d M Y H:i') }}

@if ($from || $to || $search || $eventId || $employeeId)

@if ($from || $to) Period: {{ $from ?: '—' }} to {{ $to ?: '—' }} @endif @if (($from || $to) && $search) · @endif @if ($search) Search: {{ $search }} @endif @if ($eventId) · Cash receipt filter applied @endif @if ($employeeId) · Employee filter applied @endif

@endif
@if ($report === 'attendance') @if (count($attendanceGroups)) @foreach ($attendanceGroups as $group)

{{ $group['employee']['name'] ?: '—' }}

Employee No{{ $group['employee']['employee_no'] ?: '—' }} NIK{{ $group['employee']['nik'] ?: '—' }} Status{{ $group['employee']['employment_status'] ?: '—' }}
Branch{{ $group['employee']['branch'] ?: '—' }} Department{{ $group['employee']['department'] ?: '—' }} Division{{ $group['employee']['division'] ?: '—' }}
Position{{ $group['employee']['position'] ?: '—' }} Job Level{{ $group['employee']['job_level'] ?: '—' }} Contact{{ $group['employee']['email'] ?: ($group['employee']['phone'] ?: '—') }}
Total Meal Allowance: {{ $group['meal_allowance_total'] }}
@foreach ($group['attendances'] as $attendance) @endforeach
DateClock InClock In LocationClock OutClock Out LocationStatusWorkingLateEarly LeaveOvertimeMeal Allowance
{{ $attendance['date'] ?: '—' }}{{ $attendance['clock_in'] ?: '—' }}{{ $attendance['clock_in_location'] ?: '—' }}{{ $attendance['clock_out'] ?: '—' }}{{ $attendance['clock_out_location'] ?: '—' }}{{ $attendance['status'] ?: '—' }}{{ $attendance['working_duration'] }}{{ $attendance['late'] }}{{ $attendance['early_leave'] }}{{ $attendance['overtime'] }}{{ $attendance['meal_allowance'] }}
@endforeach @else
No data found for the selected filters.
@endif @elseif (count($rows)) @foreach ($columns as $column)@endforeach @foreach ($rows as $row) @foreach ($row as $value)@endforeach @endforeach
{{ $column }}
{{ $loop->iteration }}{{ $value ?? '—' }}
@else
No data found for the selected filters.
@endif
{{ $signature['place'] ?? 'Jakarta' }}, {{ now()->format('d M Y') }}
@if ($signature['has_image']) Signature @else
( TANDA TANGAN )
@endif
{{ $signature['name'] ?: '..............................' }}
{{ $signature['position'] ?: 'Authorized signature' }}