@extends('layouts.dashboard') @section('title', 'Subscription Revenue') @section('header', 'Subscription Revenue Analytics') @section('sidebar') @include('super-admin.partials.sidebar') @endsection @section('content')
← Back to Analytics

Revenue by Subscription Plan

Period: {{ $startDate->format('M d, Y') }} - {{ $endDate->format('M d, Y') }}

@forelse($revenue as $planName => $data) @empty @endforelse
Plan Name Subscriptions Total Revenue
{{ $planName }} {{ $data['count'] }} {{ number_format($data['revenue'], 0) }} TZS
No revenue data found for this period.
@if($revenue->count() > 0)
Total Revenue: {{ number_format($revenue->sum('revenue'), 0) }} TZS
@endif
@endsection