@extends('layouts.app') @section('page-title', 'Dashboard') @section('content')

Welcome to GYMSYM!

Manage your gym operations efficiently with our comprehensive management system.

@if(isset($stats)) @if(Auth::user()->isSuperAdmin())

Total Gyms

{{ $stats['total_gyms'] ?? 0 }}

Total Rent

Rs {{ number_format($stats['total_rent'] ?? 0, 2) }}

Rent Received This Month

Rs {{ number_format($stats['rent_received_this_month'] ?? 0, 2) }}

Gyms Pay Rent

{{ $stats['gyms_pay_rent'] ?? 0 }}

Gyms Left (Unpaid)

{{ $stats['gyms_left_unpaid'] ?? 0 }}

@else

Total Members

{{ $stats['total_members'] ?? 0 }}

@endif @endif @if(Auth::user()->isGymOwner() && isset($stats['active_members']))

Active Members

{{ $stats['active_members'] ?? 0 }}

Pending Payments

Rs {{ number_format($stats['pending_payments'] ?? 0, 2) }}

Payment Received (This Month)

Rs {{ number_format($stats['payments_received_this_month'] ?? 0, 2) }}

Product Sales (This Month)

Rs {{ number_format($stats['product_sales_this_month'] ?? 0, 2) }}

@endif
@endsection