@extends('layouts.app') @section('title', 'Customer Report') @section('content')

Customer Report

Back to Reports
Active Customers
{{ $customers->count() }}
Total Income
LKR {{ number_format($customers->sum('total_income'), 2) }}
Total Expenses
LKR {{ number_format($customers->sum('total_expense'), 2) }}
Total Transactions
{{ $customers->sum('transaction_count') }}
Top Customers by Revenue
Customer Performance
@foreach($customers->take(5) as $customer)
{{ $customer->name }} LKR {{ number_format($customer->total_income, 2) }}
@endforeach
Customer Details
@forelse($customers as $customer) @empty @endforelse
Customer Name Email Phone Total Income Total Expenses Net Revenue Transactions Actions
{{ $customer->name }} @if(!$customer->is_active) Inactive @endif {{ $customer->email }} {{ $customer->phone }} LKR {{ number_format($customer->total_income, 2) }} LKR {{ number_format($customer->total_expense, 2) }} LKR {{ number_format($customer->total_income - $customer->total_expense, 2) }} {{ $customer->transaction_count }}
No customers found with transactions in the selected period.
@endsection