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

Disconnection Management

Manage overdue accounts, disconnections, and reconnections

Overdue Accounts

{{ $overdueCount ?? 0 }}

Pending Notices

{{ $pendingNoticesCount ?? 0 }}

Disconnected

{{ $disconnectedCount ?? 0 }}

Total Late Fees

₱{{ number_format($totalLateFees ?? 0, 2) }}

@forelse($overdueClients ?? [] as $billing) @empty @endforelse
Client Billing Amount Days Overdue Overdue Balance Late Fees Due Date Actions
{{ substr($billing->client->name ?? 'N/A', 0, 1) }}

{{ $billing->client->name ?? 'Unknown' }}

{{ $billing->client->account_number ?? 'N/A' }}

₱{{ number_format($billing->balance ?? 0, 2) }} @php $daysOverdue = $billing->getDaysOverdue() ?? 0; @endphp {{ $daysOverdue }} days ₱{{ number_format($billing->balance ?? 0, 2) }} ₱{{ number_format($billing->penalties ?? 0, 2) }} {{ $billing->due_date ? $billing->due_date->format('M d, Y') : 'N/A' }} View @if(($billing->disconnection_status ?? 'none') === 'none')
@csrf
@endif Print Notice Thermal
No overdue billings found.
@if($overdueClients ?? null) @endif
@forelse($pendingNotices ?? [] as $billing) @empty @endforelse
Client Billing Amount Days Overdue Notice Date Actions
{{ substr($billing->client->name ?? 'N/A', 0, 1) }}

{{ $billing->client->name ?? 'Unknown' }}

{{ $billing->client->account_number ?? 'N/A' }}

₱{{ number_format($billing->balance ?? 0, 2) }} {{ $billing->getDaysOverdue() ?? 0 }} days {{ $billing->updated_at ? $billing->updated_at->format('M d, Y') : 'N/A' }} Print Notice Thermal
@csrf
No pending notices.
@if($pendingNotices ?? null) @endif
@forelse($disconnectedBillings ?? [] as $billing) @empty @endforelse
Client Overdue Balance Days Overdue Disconnected Date Actions
{{ substr($billing->client->name ?? 'N/A', 0, 1) }}

{{ $billing->client->name ?? 'Unknown' }}

{{ $billing->client->account_number ?? 'N/A' }}

₱{{ number_format($billing->balance ?? 0, 2) }} {{ $billing->getDaysOverdue() ?? 0 }} days {{ $billing->updated_at ? $billing->updated_at->format('M d, Y H:i') : 'N/A' }} View Details
No disconnected services.
@if($disconnectedBillings ?? null) @endif
@else

Access Denied

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

Back to Dashboard
@endif @endsection