@extends('adminlte::page') @section('title', 'Overview Dashboard') @section('content_header')

Overview Dashboard

Back to Reports
@stop @section('content')

{{ $caseStats['active'] }}

Active Cases

${{ number_format($financialStats['this_month_revenue'], 0) }}

This Month Revenue

{{ number_format($timeStats['this_month_hours'], 0) }}

This Month Hours

{{ $taskStats['overdue'] }}

Overdue Tasks

Case Statistics

{{ $caseStats['closed_this_period'] }}
{{ $caseStats['total'] }}
TOTAL CASES
{{ $caseStats['active'] }}
{{ $caseStats['active'] }}
ACTIVE CASES
By Status: @foreach($caseStats['by_status'] as $status => $count)
{{ $count }}/{{ $caseStats['total'] }} {{ ucfirst($status) }}
@endforeach

Financial Overview

${{ number_format($financialStats['total_paid'], 0) }}
TOTAL PAID
${{ number_format($financialStats['outstanding'], 0) }}
OUTSTANDING
Overdue Amount ${{ number_format($financialStats['overdue'], 0) }}

Time Tracking

{{ number_format($timeStats['total_hours'], 1) }}
TOTAL HOURS
{{ number_format($timeStats['billable_hours'], 1) }}
BILLABLE
${{ number_format($timeStats['avg_hourly_rate'], 0) }}
AVG RATE
@php $utilizationRate = $timeStats['total_hours'] > 0 ? ($timeStats['billable_hours'] / $timeStats['total_hours']) * 100 : 0; @endphp
{{ number_format($utilizationRate, 1) }}% Utilization Rate

Task Overview

{{ $taskStats['total'] }}
TOTAL
{{ $taskStats['completed'] }}
COMPLETED
{{ $taskStats['pending'] }}
PENDING
@php $completionRate = $taskStats['total'] > 0 ? ($taskStats['completed'] / $taskStats['total']) * 100 : 0; @endphp
{{ number_format($completionRate, 1) }}% Completion Rate

Cases by Type

Communication Statistics

{{ $commStats['total'] }}
TOTAL COMMUNICATIONS
{{ $commStats['this_month'] }}
THIS MONTH
By Type: @foreach($commStats['by_type'] as $type => $count)
{{ $count }} {{ ucfirst($type) }}
@endforeach

Client Statistics

{{ $clientStats['total'] }}
TOTAL CLIENTS
{{ $clientStats['individual'] }}
INDIVIDUAL
{{ $clientStats['corporate'] }}
CORPORATE
{{ $clientStats['new_this_month'] }}
NEW THIS MONTH
@stop @section('js') @stop