@php $user = auth()->user(); $planDetails = [ 'trial' => ['label' => 'Free Trial', 'color' => '#eab308', 'bg' => 'rgba(234,179,8,0.12)'], 'starter' => ['label' => 'Starter', 'color' => '#60a5fa', 'bg' => 'rgba(96,165,250,0.12)'], 'pro' => ['label' => 'Pro', 'color' => '#a78bfa', 'bg' => 'rgba(167,139,250,0.12)'], 'enterprise' => ['label' => 'Enterprise', 'color' => '#f97316', 'bg' => 'rgba(249,115,22,0.12)'], ]; $plan = $planDetails[$org['plan'] ?? 'trial'] ?? $planDetails['trial']; $trialUrgent = ($org['trial_days_left'] ?? 0) <= 3; $showUpgrade = in_array($org['plan'] ?? 'trial', ['trial', 'starter']); $activeBranches = collect($branches)->where('is_active', true)->count(); $statusBadge = [ 'trial' => 'bg-yellow-100 text-yellow-700', 'active' => 'bg-green-100 text-green-700', 'suspended' => 'bg-red-100 text-red-700', ]; $gymUrl = $org && isset($org['subdomain']) ? request()->getScheme() . '://' . $org['subdomain'] . '.' . config('tenancy.central_domain') : null; @endphp

My Account

@if($gymUrl) @endif
{{-- Left col (2/3) --}}
{{-- Profile + Plan card --}}
{{-- User identity --}}
{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->email }}

@if($org && isset($org['subdomain']) && $gymUrl) {{ $org['subdomain'] }}.{{ config('tenancy.central_domain') }} @endif
Edit Profile
{{-- Plan + Billing --}} @if($org)
{{ $plan['label'] }} {{ $org['status'] }}
@if($org['status'] === 'trial' && isset($org['trial_days_left']))

Trial Ends in {{ $org['trial_days_left'] }} Day{{ $org['trial_days_left'] !== 1 ? 's' : '' }}

@endif @if($showUpgrade) Upgrade @endif

Billing Cycle

{{ $org['status'] === 'trial' ? 'Free Trial' : 'Monthly' }}

@if(isset($org['trial_ends_at']) && $org['trial_ends_at'])

Next: {{ \Carbon\Carbon::parse($org['trial_ends_at'])->format('M d, Y') }}

@endif
@endif
{{-- Branches --}} @if(count($branches))

Your Branches

{{ $activeBranches }} Branch{{ $activeBranches !== 1 ? 'es' : '' }} Active
@foreach($branches as $branch)

{{ $branch['name'] }}

{{ $branch['is_active'] ? 'Active' : 'Inactive' }}

{{ $branch['code'] }}@if($branch['city']) · {{ $branch['city'] }}@endif

{{ $branch['members_count'] }} Members
@if($gymUrl) View @endif
@csrf
@endforeach
@else

No branches set up yet.

Contact support to add a branch to your account.

@endif
{{-- Right col (1/3) --}}
{{-- Account Owner --}}

Account Owner

{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->email }}

Edit Profile
{{-- Need Help --}}

Need Help?

support@knowvix.fun
Live chat (coming soon)
{{-- Upgrade section --}} @if($showUpgrade)

Upgrade Your GymFlow Experience

Unlock unlimited members, advanced analytics, and priority support.

@php $upgradePlans = [ ['key' => 'starter', 'label' => 'Starter', 'price' => '₹1,999/mo', 'features' => ['Up to 500 members', '1 branch', 'Email support'], 'highlight' => false], ['key' => 'pro', 'label' => 'Pro', 'price' => '₹4,999/mo', 'features' => ['Unlimited members', 'Up to 5 branches', 'Priority support'], 'highlight' => true], ['key' => 'enterprise', 'label' => 'Enterprise', 'price' => 'Custom', 'features' => ['Unlimited everything', 'Dedicated support', 'SLA'], 'highlight' => false], ]; @endphp @foreach($upgradePlans as $p)
@if($p['highlight'])
Most Popular
@endif

{{ $p['label'] }}

{{ $p['price'] }}
    @foreach($p['features'] as $f)
  • {{ $f }}
  • @endforeach
Contact support@knowvix.fun to upgrade
@endforeach

Self-serve plan upgrades coming soon.

@endif