import { Users, Bike, DollarSign, TrendingUp, Activity, ArrowUpRight, ArrowDownRight, Clock, Shield, AlertTriangle, CheckCircle, XCircle } from 'lucide-react'; import { kycRequests, bikes, rentals, transactions } from '@/data/mockData'; const stats = [ { label: 'Total Bikers', value: '156', change: '+12%', trend: 'up', icon: Users, color: 'text-blue-600', bg: 'bg-blue-50' }, { label: 'Active Rentals', value: '89', change: '+8%', trend: 'up', icon: Bike, color: 'text-green-600', bg: 'bg-green-50' }, { label: 'Daily Revenue', value: '৳45.6k', change: '+23%', trend: 'up', icon: DollarSign, color: 'text-purple-600', bg: 'bg-purple-50' }, { label: 'Fleet Utilization', value: '78%', change: '-2%', trend: 'down', icon: TrendingUp, color: 'text-amber-600', bg: 'bg-amber-50' }, ]; const pendingKYCs = kycRequests.filter(k => k.status === 'pending'); const activeRentals = rentals.filter(r => r.status === 'active'); export default function AdminDashboard() { return (

Admin Dashboard

Manage fleet, users, and operations

Last updated: Just now
{stats.map((stat, index) => { const Icon = stat.icon; return (
{stat.trend === 'up' ? : } {stat.change}

{stat.value}

{stat.label}

); })}

Recent Rentals

{activeRentals.map(rental => { const bike = bikes.find(b => b.id === rental.bikeId); return ( ); })}
Rental ID Bike User Type Status Daily Rate
{rental.id} {bike?.model} {bike?.plateNumber} {rental.userId} {rental.type} {rental.status} ৳{rental.dailyRate}

KYC Requests

{pendingKYCs.length} pending
{pendingKYCs.map(kyc => (

{kyc.userName}

{kyc.phone}

{kyc.submittedAt}

))} {pendingKYCs.length === 0 && (

No pending KYC requests

)}

Quick Actions

System Alerts

3 bikes overdue maintenance

Action required

5 pending KYC verifications

Review needed

System running smoothly

All services operational

); }