All files / app/(dashboard)/settings/verification/pan page.tsx

100% Statements 176/176
100% Branches 2/2
100% Functions 2/2
100% Lines 176/176

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 2251x                 14x 14x   14x 2x 2x   14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x   14x   14x 14x 14x 14x 14x     14x 14x 14x 14x 14x 14x 14x 14x   14x 14x     14x 14x 14x 14x 14x 14x 14x   14x   14x 14x 14x 14x 14x 14x     14x 14x 14x 14x 14x 14x 14x 14x 14x   14x 14x 14x 14x     14x 14x 14x   14x 14x   14x 14x 14x 14x   14x 14x 14x   14x 14x   14x 14x 14x 14x   14x 14x 14x 14x 14x 14x     14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x   14x   14x 14x     14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x     14x 14x 14x 14x 14x     14x 14x     14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x   14x   14x   14x 14x 14x 14x 14x 14x 14x 14x   14x 14x 14x 14x 14x 14x 14x 14x   14x 14x 14x   14x  
'use client';
 
import { useRouter } from 'next/navigation';
import { ArrowLeft, Shield, Clock, CheckCircle2, CreditCard, Lock, Bell } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
import { Badge } from '@/components/ui/badge';
 
export default function PANVerificationPage() {
  const router = useRouter();
 
  const handleGoBack = () => {
    router.push('/settings/verification');
  };
 
  return (
    <div className="space-y-6">
      <div className="flex items-center gap-4">
        <Button variant="ghost" size="icon" onClick={handleGoBack}>
          <ArrowLeft className="h-4 w-4" />
        </Button>
        <div>
          <div className="flex items-center gap-2">
            <h1 className="text-2xl font-bold">PAN Verification</h1>
            <Badge
              variant="secondary"
              className="bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200"
            >
              <Clock className="mr-1 h-3 w-3" />
              Coming Soon
            </Badge>
          </div>
          <p className="text-muted-foreground">Verify your PAN card via DigiLocker</p>
        </div>
      </div>
 
      {/* Coming Soon Banner */}
      <Card className="border-amber-500/30 bg-amber-500/10 dark:border-amber-400/30 dark:bg-amber-400/10">
        <CardContent className="pt-6">
          <div className="flex items-start gap-4">
            <div className="flex h-12 w-12 items-center justify-center rounded-full bg-amber-100 dark:bg-amber-900">
              <Clock className="h-6 w-6 text-amber-600 dark:text-amber-400" />
            </div>
            <div className="flex-1">
              <h2 className="text-lg font-semibold text-amber-800 dark:text-amber-200">
                PAN Verification Coming Soon
              </h2>
              <p className="mt-1 text-sm text-amber-700 dark:text-amber-300">
                We&apos;re awaiting approval from DigiLocker to enable PAN verification. This
                process typically takes 1-2 weeks. We&apos;ll notify you once it&apos;s available.
              </p>
              <div className="mt-3 flex items-center gap-2">
                <Button
                  variant="outline"
                  size="sm"
                  disabled
                  className="border-amber-300 bg-amber-100/50 text-amber-800"
                >
                  <Bell className="mr-2 h-4 w-4" />
                  Notify Me (Coming Soon)
                </Button>
              </div>
            </div>
          </div>
        </CardContent>
      </Card>
 
      {/* How it will work */}
      <Card>
        <CardHeader>
          <CardTitle>How PAN Verification Will Work</CardTitle>
          <CardDescription>Secure verification via DigiLocker</CardDescription>
        </CardHeader>
        <CardContent className="space-y-4">
          <div className="space-y-4">
            <div className="flex items-start gap-4">
              <div className="flex h-8 w-8 items-center justify-center rounded-full bg-primary/10 font-semibold text-primary">
                1
              </div>
              <div>
                <p className="font-medium">Connect via DigiLocker</p>
                <p className="text-sm text-muted-foreground">
                  Sign in using your Aadhaar-linked mobile number through the official DigiLocker
                  platform
                </p>
              </div>
            </div>
 
            <div className="flex items-start gap-4">
              <div className="flex h-8 w-8 items-center justify-center rounded-full bg-primary/10 font-semibold text-primary">
                2
              </div>
              <div>
                <p className="font-medium">Authorize PAN Access</p>
                <p className="text-sm text-muted-foreground">
                  Grant one-time permission for ProofID to verify your PAN card
                </p>
              </div>
            </div>
 
            <div className="flex items-start gap-4">
              <div className="flex h-8 w-8 items-center justify-center rounded-full bg-primary/10 font-semibold text-primary">
                3
              </div>
              <div>
                <p className="font-medium">Get Verified Badge</p>
                <p className="text-sm text-muted-foreground">
                  Receive the &ldquo;PAN Verified&rdquo; badge on your profile instantly
                </p>
              </div>
            </div>
          </div>
        </CardContent>
      </Card>
 
      {/* Prerequisites */}
      <Alert className="bg-blue-50 text-blue-800 dark:bg-blue-900/20 dark:text-blue-200">
        <CreditCard className="h-4 w-4" />
        <AlertTitle>Prerequisite</AlertTitle>
        <AlertDescription>
          Make sure your PAN is linked to your DigiLocker account. If not linked, visit{' '}
          <a
            href="https://digilocker.gov.in/"
            target="_blank"
            rel="noopener noreferrer"
            className="font-medium underline"
          >
            DigiLocker
          </a>{' '}
          to link your PAN first.
        </AlertDescription>
      </Alert>
 
      {/* What we verify */}
      <Card>
        <CardHeader>
          <CardTitle>What We&apos;ll Verify</CardTitle>
        </CardHeader>
        <CardContent>
          <ul className="space-y-2">
            <li className="flex items-center gap-2 text-sm">
              <CheckCircle2 className="h-4 w-4 text-green-500" />
              <span>PAN number is valid and active</span>
            </li>
            <li className="flex items-center gap-2 text-sm">
              <CheckCircle2 className="h-4 w-4 text-green-500" />
              <span>Name on PAN matches records</span>
            </li>
            <li className="flex items-center gap-2 text-sm">
              <CheckCircle2 className="h-4 w-4 text-green-500" />
              <span>PAN is not flagged or deactivated</span>
            </li>
          </ul>
        </CardContent>
      </Card>
 
      {/* Privacy & Security */}
      <Alert>
        <Shield className="h-4 w-4" />
        <AlertTitle>Privacy & Security</AlertTitle>
        <AlertDescription>
          Your PAN number is <strong>never stored</strong>. We only save verification status and a
          masked reference (XXXXX1234X). All verification is handled through official DigiLocker
          channels in compliance with government guidelines.
        </AlertDescription>
      </Alert>
 
      {/* Benefits */}
      <Card>
        <CardHeader>
          <CardTitle>Benefits of PAN Verification</CardTitle>
        </CardHeader>
        <CardContent>
          <ul className="space-y-3">
            <li className="flex items-center gap-3">
              <CheckCircle2 className="h-5 w-5 text-green-500" />
              <span className="text-sm">
                <strong>&ldquo;PAN Verified&rdquo;</strong> badge displayed on your profile
              </span>
            </li>
            <li className="flex items-center gap-3">
              <CheckCircle2 className="h-5 w-5 text-green-500" />
              <span className="text-sm">Higher trust score in professional verticals</span>
            </li>
            <li className="flex items-center gap-3">
              <CheckCircle2 className="h-5 w-5 text-green-500" />
              <span className="text-sm">Required for financial services and compliance</span>
            </li>
            <li className="flex items-center gap-3">
              <Lock className="h-5 w-5 text-green-500" />
              <span className="text-sm">Builds trust with clients and employers</span>
            </li>
          </ul>
        </CardContent>
      </Card>
 
      <Button variant="outline" className="w-full" onClick={handleGoBack}>
        Back to Verification Settings
      </Button>
 
      <p className="text-center text-xs text-muted-foreground">
        Learn more about{' '}
        <a
          href="https://digilocker.gov.in/"
          target="_blank"
          rel="noopener noreferrer"
          className="text-primary hover:underline"
        >
          DigiLocker
        </a>{' '}
        |{' '}
        <a
          href="https://incometaxindia.gov.in/Pages/tax-services/apply-for-pan.aspx"
          target="_blank"
          rel="noopener noreferrer"
          className="text-primary hover:underline"
        >
          Income Tax India
        </a>
      </p>
    </div>
  );
}