@extends('layouts.dashboard') @section('title', 'Reports & Analytics') @section('content')

Reports & Analytics

Generate comprehensive reports for your system data

User Reports

Employee and user analytics

  • User activity & status
  • Department-wise distribution
  • Role-based analytics

Visit Reports

Field visit analytics

  • Visit completion rates
  • Employee performance
  • Geographical analysis

Leave Reports

Leave management analytics

  • Leave approval rates
  • Employee leave patterns
  • Department-wise analysis

Payroll Reports

Salary and payment analytics

  • Monthly payroll summaries
  • Salary distribution
  • Payment status tracking

Client Reports

Client management analytics

  • Client distribution
  • Geographical analysis
  • Client activity status

Performance Reports

Employee performance analytics

  • Visit completion rates
  • Employee productivity
  • Department performance

Generate Custom Report

Configure and generate detailed reports

@csrf

Recent Reports

View your recently generated reports

@php // Check if recentReports variable exists, otherwise use empty array $recentReports = $recentReports ?? []; @endphp @if(count($recentReports) > 0)
@foreach($recentReports as $report) @endforeach
Report Type Date Range Generated On Actions
@php $reportIcons = [ 'users' => 'fa-users text-blue-500', 'visits' => 'fa-map-marker-alt text-emerald-500', 'leaves' => 'fa-calendar-alt text-amber-500', 'payroll' => 'fa-money-bill-wave text-purple-500', 'clients' => 'fa-handshake text-red-500', 'performance' => 'fa-chart-line text-indigo-500', 'summary' => 'fa-chart-bar text-gray-500' ]; @endphp
{{ $report->name ?? 'Unnamed Report' }}
{{ isset($report->format) ? strtoupper($report->format) : 'HTML' }} format
{{ isset($report->date_from) ? \Carbon\Carbon::parse($report->date_from)->format('M d') : 'N/A' }} - {{ isset($report->date_to) ? \Carbon\Carbon::parse($report->date_to)->format('M d, Y') : 'N/A' }}
{{ isset($report->created_at) ? \Carbon\Carbon::parse($report->created_at)->format('M d, Y') : 'N/A' }}
{{ isset($report->created_at) ? \Carbon\Carbon::parse($report->created_at)->format('h:i A') : '' }}
@if(isset($report->id)) @else Actions not available @endif
@else

No Recent Reports

You haven't generated any reports yet. Use the form above to create your first report.

@endif
@endsection