@extends('layouts.dashboard')
@section('content')
{{ 'Collected from completed payments' }}
{{ 'Subscribers' }}
{{ 'Active subscriptions' }}
{{ 'Completed payments' }}
{{ 'Pending payments' }}
{{'A quick snapshot of plan performance and current signups'}}
{{'No plans available yet.'}}
@elseKES {{ number_format($plan->price, 0) }} • {{ $plan->active_subscriptions_count }} active subscribers
{{'No recent payments found.'}}
@else
{{'Customer'}} |
{{'Plan'}} |
{{'Amount'}} |
{{'Date'}} |
{{'Status'}} |
|---|---|---|---|---|
|
@php
$initials = strtoupper(substr(($payment->user->name ?? 'User'), 0, 1));
@endphp
{{ $initials }}
{{ $payment->user->name }}{{ $payment->user->email }} |
@if($payment->subscription) {{ $payment->subscription->plan->name }} @else {{ 'Resource Purchase' }} @endif | {{ number_format($payment->amount, 2) }} | {{ $payment->created_at->format('M d, Y') }} | @if($payment->status == 'completed') {{'Success'}} @elseif($payment->status == 'pending') {{'Pending'}} @elseif($payment->status == 'failed') {{'Failed'}} @endif |