@extends('layouts.main') @section('title') {{ __('credits.title') }} @endsection @section('page_title') {{ __('credits.dashboard') }} @endsection @php $breadcrumbs = [ ['url' => route('dashboard'), 'label' => __('credit_packages.dashboard')], ['url' => '', 'label' => __('credits.title')], ]; @endphp @section('content')

{{ __('credits.dashboard') }}

{{ __('credits.dashboard_description') }}

{{ number_format($stats['total_users']) }}

{{ __('credits.total_users') }}

{{ number_format($stats['total_credits_sold']) }}

{{ __('credits.credits_sold') }}

₹{{ number_format($stats['total_revenue'], 2) }}

{{ __('credits.total_revenue') }}

{{ $stats['active_packages'] }}

{{ __('credits.active_packages') }}

{{ __('credits.manage_users') }}

{{ __('credits.manage_users_description') }}

{{ __('credits.view_purchases') }}

{{ __('credits.view_purchases_description') }}

{{ __('credits.manage_packages') }}

{{ __('credits.manage_packages_description') }}

@forelse($recentPurchases as $purchase) @empty @endforelse
{{ __('credits.purchase_details') }} {{ __('credits.user') }} {{ __('credits.credits') }} {{ __('credits.amount') }} {{ __('credits.date') }} {{ __('credits.status') }}

{{ $purchase->package->title ?? 'N/A' }}

{{ __('credits.id') }}: #{{ $purchase->id }}

{{ $purchase->user->name }}
{{ number_format($purchase->credits_purchased) }}
₹{{ number_format($purchase->amount_paid, 2) }}
{{ $purchase->purchased_at->format('d M Y, h:i A') }}
{{ ucfirst($purchase->status) }}

{{ __('credits.no_purchases_yet') }}

@endsection @push('custom_styles') @endpush @push('custom_scripts') @endpush