"use client" import { Card, CardContent, CardHeader } from "@/components/ui/card" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { Calendar, Clock, MapPin, Phone, User, CheckCircle, XCircle, Play, Star } from "lucide-react" import type { PlumberJob } from "@/lib/plumber-jobs" import { getJobStatusColor, getJobStatusText, getUrgencyColor, getUrgencyText } from "@/lib/plumber-jobs" interface JobCardProps { job: PlumberJob onAccept?: (jobId: string) => void onReject?: (jobId: string) => void onStart?: (jobId: string) => void onComplete?: (jobId: string) => void } export default function JobCard({ job, onAccept, onReject, onStart, onComplete }: JobCardProps) { return (

{job.serviceName}

رقم المهمة: {job.id}

{getJobStatusText(job.status)} {getUrgencyText(job.urgency)}
{/* Customer Info */}
{job.customerName} {job.customerPhone}
{/* Schedule */}
{job.scheduledDate} {job.scheduledTime}
{/* Location */}
{job.address}
{/* Description */}

{job.description}

{/* Price */}
{job.actualPrice || job.estimatedPrice} جنيه {job.customerRating && (
{job.customerRating}
)}
{/* Action Buttons */}
{job.status === "pending" && ( <> )} {job.status === "accepted" && ( )} {job.status === "in-progress" && ( )} {job.status === "completed" && job.customerReview && (

تقييم العميل:

"{job.customerReview}"

)}
) }