@extends('layouts.app') @section('title', 'Admin Dashboard - BlackSplit') @push('style') @endpush @section('content')
Welcome back, {{ $user?->name ?? 'Admin' }}! 👋
Marketplace overview, inventory status, active packages and platform control center.
@if(getPendingInvoicesCount() > 0) @endif
Total Users
{{ number_format($stats['total_users']) }}
Platform Accounts
Shared Subscriptions
{{ number_format($stats['total_subscriptions']) }}
{{ $stats['active_subscriptions'] }} Active listings
Services & Plans
{{ number_format($stats['total_services']) }}
{{ $stats['total_plans'] }} Plans across {{ $stats['total_categories'] }} categories
Joined Co-Subscribers
{{ number_format($stats['total_members']) }}
Occupied Seats in groups
Pending Payouts
{{ number_format($stats['pending_payouts']) }}
Categories
{{ number_format($stats['total_categories']) }}
Wallet Transactions
{{ number_format($stats['total_wallet_transactions']) }}
Background Music
{{ $musicSetting['music_title'] ?? 'Default Music' }}
Recent Shared Subscriptions
Latest subscriptions created on the marketplace
View All
@forelse($stats['recent_subscriptions'] as $sub) @php $serviceLogo = marketplaceImageUrl($sub->service?->logo ?: $sub->service?->category?->image_url); $serviceName = $sub->service?->name ?? 'Custom'; @endphp @empty @endforelse
Service Owner Plan / Slots Price Status Action
@if($serviceLogo) {{ $serviceName }} @else {{ strtoupper(substr($serviceName, 0, 1)) }} @endif
{{ $serviceName }}
{{ $sub->title ?: 'Shared account' }}
{{ $sub->owner?->name ?? 'Anonymous' }}
{{ $sub->owner?->email ?? '' }}
{{ $sub->servicePlan?->name ?? 'Standard' }}
{{ $sub->available_slots }}/{{ $sub->total_slots }} available
{{ number_format($sub->price_per_slot, 2) }} €
/ month
@if($sub->status === 'active') Active @elseif($sub->status === 'pending') Pending @else {{ ucfirst($sub->status ?? 'Draft') }} @endif Manage
No shared subscriptions created yet.
Top Active Services
@forelse($stats['top_services'] as $topService) @php $topLogo = marketplaceImageUrl($topService->logo ?: $topService->category?->image_url); @endphp
@if($topLogo) {{ $topService->name }} @else {{ strtoupper(substr($topService->name, 0, 1)) }} @endif {{ $topService->name }}
{{ $topService->shared_subscriptions_count ?? 0 }} packages
@empty
No service data available.
@endforelse
@endsection