@extends('layouts.app') @section('title', 'Reports') @section('content') @php $cur = ($filters['currency'] ?? 'PHP') === 'PHP' ? '₱' : $filters['currency'] . ' '; $reports = [ [ 'route' => 'reports.financial', 'icon' => 'fas fa-chart-line', 'color' => 'primary', 'title' => 'Monthly Financial Report', 'text' => 'Amount billed, collected, late fees and outstanding balance broken down month by month.', ], [ 'route' => 'reports.usage', 'icon' => 'fas fa-droplet', 'color' => 'info', 'title' => 'Monthly Usage per Account', 'text' => 'Water consumption for every client account, pivoted by month with averages and peaks.', ], [ 'route' => 'reports.payments', 'icon' => 'fas fa-credit-card', 'color' => 'success', 'title' => 'Monthly Payments per Account', 'text' => 'What each client paid each month, their last payment date and remaining balance.', ], [ 'route' => 'reports.client-details', 'icon' => 'fas fa-list-ul', 'color' => 'secondary', 'title' => 'Client Billing & Payment Details', 'text' => 'Line-by-line per account: meter reading, previous and current, bill number and date, payment date and every payment detail.', ], [ 'route' => 'reports.unpaid', 'icon' => 'fas fa-file-invoice-dollar', 'color' => 'warning', 'title' => 'Unpaid Report', 'text' => 'Every bill still carrying a balance, with aging buckets and days overdue.', ], [ 'route' => 'reports.disconnection', 'icon' => 'fas fa-plug-circle-xmark', 'color' => 'danger', 'title' => 'Monthly Disconnection Report', 'text' => 'Notices sent, disconnections, reconnections per month plus accounts currently at risk.', ], ]; // NWRB filing is an admin-level document, not a day-to-day report. if (in_array(auth()->user()->role?->name, ['super_admin', 'company_admin', 'company_owner'])) { $reports[] = [ 'route' => 'reports.nwrb', 'icon' => 'fas fa-file-contract', 'color' => 'dark', 'title' => 'NWRB Section 18 Data Sheet', 'text' => 'Monthly + YTD financial and technical data sheet for the NWRB Annual Report, including non-revenue water.', ]; } @endphp
Financial, usage, collection and disconnection reporting