@extends('layouts.app') @section('content') @if(in_array(auth()->user()->role->name, ['super_admin', 'company_admin', 'company_owner']))
Back to Disconnections

Late Payment & Disconnection Report

Statistical analysis of late fees, disconnections, and revenue impact

Total Late Fees This Period

₱{{ number_format($stats['total_late_fees'] ?? 0, 2) }}

{{ $stats['late_fee_count'] ?? 0 }} fees applied
Outstanding Balance

₱{{ number_format($stats['total_outstanding_balance'] ?? 0, 2) }}

From {{ $stats['overdue_billings_count'] ?? 0 }} billings
Total Disconnections

{{ $stats['total_disconnections'] ?? 0 }}

{{ $stats['reconnections'] ?? 0 }} reconnected
Reconnection Revenue

₱{{ number_format($stats['total_reconnection_fees'] ?? 0, 2) }}

{{ $stats['reconnection_fee_count'] ?? 0 }} reconnections
Affected Clients

{{ $stats['affected_clients_count'] ?? 0 }}

With overdue accounts

Late Fee Breakdown

Total Applied: ₱{{ number_format($stats['total_late_fees'] ?? 0, 2) }}
Collected: ₱{{ number_format($stats['late_fees_collected'] ?? 0, 2) }}
Outstanding: ₱{{ number_format(($stats['total_late_fees'] ?? 0) - ($stats['late_fees_collected'] ?? 0), 2) }}

Average Late Fee: ₱{{ number_format($stats['average_late_fee'] ?? 0, 2) }}

Collection Rate: {{ number_format($stats['late_fee_collection_rate'] ?? 0, 1) }}%

Disconnection Statistics

Total Disconnections: {{ $stats['total_disconnections'] ?? 0 }}
Reconnected: {{ $stats['reconnections'] ?? 0 }}
Still Disconnected: {{ ($stats['total_disconnections'] ?? 0) - ($stats['reconnections'] ?? 0) }}

Reconnection Rate: {{ $stats['total_disconnections'] > 0 ? number_format(($stats['reconnections'] ?? 0) / ($stats['total_disconnections'] ?? 1) * 100, 1) : 0 }}%

Avg Days Disconnected: {{ $stats['average_days_disconnected'] ?? 0 }} days

@else

Access Denied

Only Super Admin and Company Admin users can access the Disconnection Management system.

Back to Dashboard
@endif @endsection