@extends('layouts.app') @section('title', 'Monthly Client Reports') @section('breadcrumbs') @endsection @section('content')
{{-- Header --}}

Monthly Client Reports

Comprehensive monthly reports showing TalentArabian's HR activities

Standard Reports @if(auth()->user()->role === 'company_admin') @endif
{{-- Year Filter --}} @if($years->count() > 0)
All @foreach($years as $year) {{ $year }} @endforeach
@endif {{-- Reports Grid --}} @if($reports->count() > 0)
@foreach($reports as $report)

{{ $report->period_label }}

Generated {{ $report->generated_at?->format('d M Y H:i') ?? 'N/A' }}

{{ ucfirst($report->status) }}
@php $data = $report->report_data ?? []; $summary = $data['executive_summary'] ?? []; @endphp {{-- Quick Stats --}}
{{ $summary['employees_end'] ?? '—' }}
Employees
{{ $summary['attendance_rate'] ?? '—' }}%
Attendance
{{ ($data['hr_activities']['summary']['total_actions'] ?? '—') }}
HR Actions
{{-- Actions --}}
@endforeach
@if($reports->hasPages())
{{ $reports->appends(request()->query())->links() }}
@endif @else

No reports generated yet

Generate your first monthly client report to get started.

@endif {{-- Generate Modal --}}
@endsection