diff --git a/src/app/admin/leads/page.tsx b/src/app/admin/leads/page.tsx index d0b6fe9..91975b4 100644 --- a/src/app/admin/leads/page.tsx +++ b/src/app/admin/leads/page.tsx @@ -39,13 +39,14 @@ export default function LeadsPage() { }, []); const handleExportCsv = () => { - const headers = ['Name', 'Email', 'Date Submitted']; + const headers = ['Name', 'Email', 'Phone', 'Date Submitted']; const csvContent = [ headers.join(','), ...leads.map(lead => [ `"${lead.name}"`, `"${lead.email}"`, + `"${lead.phone || ''}"`, `"${format(new Date(lead.createdAt), 'PPP p')}"` ].join(',') ) @@ -85,6 +86,7 @@ export default function LeadsPage() { Name Email + Phone Date Submitted @@ -95,6 +97,7 @@ export default function LeadsPage() { + ))} @@ -104,6 +107,7 @@ export default function LeadsPage() { {lead.name} {lead.email} + {lead.phone || 'N/A'} {format(new Date(lead.createdAt), 'PPP p')} @@ -111,7 +115,7 @@ export default function LeadsPage() { )) ) : ( - + No leads yet. diff --git a/src/components/cost-estimator/step-11-results.tsx b/src/components/cost-estimator/step-11-results.tsx index 8420c7d..5e6011f 100644 --- a/src/components/cost-estimator/step-11-results.tsx +++ b/src/components/cost-estimator/step-11-results.tsx @@ -3,8 +3,8 @@ import type { FormData } from './cost-estimator-form'; import { Button } from '@/components/ui/button'; -import { Card, CardContent } from '@/components/ui/card'; -import { Info, Mail } from 'lucide-react'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; +import { Info, Mail, User, Phone, Briefcase, Clock } from 'lucide-react'; import React, { useState, useTransition } from 'react'; import { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from '@/components/ui/tooltip'; import { @@ -20,6 +20,7 @@ import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { useToast } from '@/hooks/use-toast'; import { sendEstimateEmail } from '@/lib/actions/send-estimate'; +import { Separator } from '../ui/separator'; type Step11Props = { onReset: () => void; @@ -123,12 +124,13 @@ export function Step11Results({ onReset, customHours, readyMadeHours, formData } const form = new FormData(event.currentTarget); const name = form.get('name') as string; const email = form.get('email') as string; + const phone = form.get('phone') as string; if (!name || !email) { toast({ variant: "destructive", title: "Missing Information", - description: "Please enter both your name and email.", + description: "Please enter your name and email.", }); return; } @@ -137,6 +139,7 @@ export function Step11Results({ onReset, customHours, readyMadeHours, formData } const result = await sendEstimateEmail({ name, email, + phone, customHours, readyMadeHours, formData, @@ -212,37 +215,66 @@ export function Step11Results({ onReset, customHours, readyMadeHours, formData } - -
- - Send Estimate - - Enter your name and email to receive the estimate PDF. - - -
-
- - -
-
- - -
-
- - - -
+ + + Get Your Detailed Estimate + + Fill out the form below and we'll email you a PDF copy of your estimate. + + + +
+ + + + Estimate Summary + + +
+ Custom Development + {customHours}+ hours +
+
+ Ready-Made Tools + {readyMadeHours}+ hours +
+
+
+ + + +
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ + +