@extends('adminlte::page') @section('title', 'Reports & Analytics') @section('content_header')

Reports & Analytics

@stop @section('content')

Available Reports

Overview Dashboard

Comprehensive overview of key metrics including cases, finances, and team performance.

{{ $metrics['activeCases'] ?? 0 }} Active {{ $metrics['overdueTasks'] ?? 0 }} Overdue
View Overview
Case Analytics

Detailed analysis of case performance, duration, success rates, and lawyer efficiency.

{{ $metrics['totalCases'] ?? 0 }} Cases
View Cases
Financial Reports

Revenue analysis, outstanding invoices, billing efficiency, and client profitability.

${{ number_format($metrics['outstandingSum'] ?? 0, 0) }} Due {{ $metrics['outstandingCount'] ?? 0 }} Invoices
View Financial
@csrf
Time Tracking

Analyze billable hours, utilization rates, and time distribution across cases and users.

{{ number_format($metrics['hours30d'] ?? 0, 1) }}h last 30d
View Time
@csrf
Task Reports

Task completion rates, overdue tasks, priority distribution, and team productivity.

{{ $metrics['overdueTasks'] ?? 0 }} Overdue
View Tasks
@csrf
Custom Reports

Create custom reports with specific filters and metrics tailored to your needs.

{{ \App\Models\LegalCase::count() }}

Total Cases

More info

${{ number_format(\App\Models\Invoice::where('status', 'paid')->sum('total_amount'), 0) }}

Total Revenue

More info

{{ number_format(\App\Models\TimeEntry::sum('hours'), 0) }}

Total Hours

More info

{{ \App\Models\Task::whereNull('completed_at')->where('due_date', '<', now())->count() }}

Overdue Tasks

More info
@stop @section('css') @stop