@extends('layouts.app') @section('title', 'Billing') @section('content')
Only workspace admins can manage billing.
Workspace: {{ $tenant?->name ?? '—' }}
Plan: {{ ucfirst($tenant?->plan ?? config('plans.default_plan', 'default')) }}
@if($activeSub)Active subscription expires {{ $activeSub->expires_at?->format('M j, Y') ?? '—' }}.
@elseNo active subscription record yet.
@endifSet RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET in .env (backend only) to enable payments.
| Plan | Amount | Status | Date |
|---|---|---|---|
| {{ ucfirst($p->plan_name) }} | ₹{{ number_format($p->amount / 100, 2) }} {{ $p->currency }} | {{ $p->status }} | {{ $p->created_at->format('M j, Y H:i') }} |
Payments are processed by Razorpay. After successful payment, your workspace plan updates immediately.
@if(((int)($p['amount_paise'] ?? 0)) === 0) Free @else ₹{{ number_format(((int)($p['amount_paise'] ?? 0)) / 100, 2) }} / {{ (int)($p['duration_days'] ?? 30) }} days @endif
@if($currentPlan === $planKey)Current plan
@elseif(((int)($p['amount_paise'] ?? 0)) === 0)Free plan
@else @endif