'use client'; import { DashboardLayout } from '@/components/layout/dashboard-layout'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Check, Sparkles, CreditCard, Download, ArrowRight, Zap, Crown, Building2 } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useState } from 'react'; const plans = [ { name: 'Starter', price: 29, yearlyPrice: 24, description: 'Perfect for small restaurants just getting started.', icon: Zap, features: ['1 restaurant', 'Up to 50 menu items', '5 QR codes', 'Basic analytics', 'Email support', '100 orders/month'], popular: false, current: false, }, { name: 'Pro', price: 79, yearlyPrice: 66, description: 'For growing restaurants with advanced needs.', icon: Crown, features: ['Unlimited restaurants', 'Unlimited menu items', 'Unlimited QR codes', 'Advanced analytics', 'Priority support', 'Unlimited orders', 'Custom branding', 'API access', 'Team members'], popular: true, current: true, }, { name: 'Enterprise', price: 199, yearlyPrice: 166, description: 'For multi-location chains and franchises.', icon: Building2, features: ['Everything in Pro', 'Multi-location support', 'Dedicated account manager', 'Custom integrations', 'SLA guarantee', 'White-label solution', 'Advanced security', 'Onboarding training'], popular: false, current: false, }, ]; const invoices = [ { id: 'INV-2024-003', date: 'Mar 1, 2025', amount: 79, status: 'paid' }, { id: 'INV-2024-002', date: 'Feb 1, 2025', amount: 79, status: 'paid' }, { id: 'INV-2024-001', date: 'Jan 1, 2025', amount: 79, status: 'paid' }, ]; export default function BillingPage() { const [annual, setAnnual] = useState(false); return (
{/* Header */}

Billing & Subscription

Manage your plan, payment methods, and invoices.

{/* Current Plan Banner */}
Current Plan

Pro Plan

Your next billing date is April 1, 2025

$79 /month
{/* Billing Toggle */}
Monthly Annual Save 17%
{/* Plans */}
{plans.map((plan) => ( {plan.popular && (
Popular
)}

{plan.name}

{plan.description}

${annual ? plan.yearlyPrice : plan.price} /month
{plan.features.map((feature) => (
{feature}
))}
))}
{/* Payment Method & Invoices */}
{/* Payment Method */} Payment Method

Visa ending in 4242

Expires 12/2026

Default
{/* Recent Invoices */} Recent Invoices
{invoices.map((invoice) => (

{invoice.id}

{invoice.date}

${invoice.amount} {invoice.status}
))}
); }