diff --git a/app/employe/dashboard/page.tsx b/app/employe/dashboard/page.tsx index ba52a93..2b981ef 100644 --- a/app/employe/dashboard/page.tsx +++ b/app/employe/dashboard/page.tsx @@ -1,13 +1,18 @@ 'use client'; import { useEffect, useState } from 'react'; -import { useRouter } from 'next/navigation'; import { useAuth } from '@/hooks'; -import { Card } from '@/components/ui'; -import { Loading } from '@/components/ui/Loading'; -import { ROUTES, API_BASE_URL } from '@/utils/constants'; -import toast from 'react-hot-toast'; +import { API_BASE_URL } from '@/utils/constants'; import Link from 'next/link'; +import { + LayoutDashboard, + Clock, + CheckCircle, + BarChart3, + Search, + Gift, + ClipboardList +} from 'lucide-react'; interface PendingTicket { id: string; @@ -97,141 +102,125 @@ export default function EmployeDashboardPage() { } return ( -
- {/* Welcome Section */} -
-

- Bonjour {user?.firstName} ! đź‘‹ -

-

- Bienvenue dans votre espace employé. Voici un aperçu de votre activité. -

+
+ {/* Header */} +
+
+
+ +
+
+

+ Dashboard +

+

+ Bonjour {user?.firstName}, bienvenue dans votre espace employé +

+
+
{/* Statistics Cards */} -
-
-
-
-

- Tickets en attente -

-

- {stats.pendingTickets} -

+
+
+
+
+
-
- - - +
+

{stats.pendingTickets}

+

En attente

-
-
-
-

- Réclamés aujourd'hui -

-

- {stats.claimedToday} -

+
+
+
+
-
- - - +
+

{stats.claimedToday}

+

Validés aujourd'hui

-
-
-
-

- Total réclamés -

-

- {stats.totalClaimed} -

+
+
+
+
-
- - - +
+

{stats.totalClaimed}

+

Total validés

- {/* Quick Actions Title */} -
-

Actions rapides

-

Accédez rapidement aux fonctionnalités principales

-
- {/* Quick Actions */} -
- -
-
-
- - - -
-
-

- Validation des gains -

-

- Rechercher et valider les tickets -

-
-
-
- +
+
+

Actions rapides

+

Accédez rapidement aux fonctionnalités principales

+
- -
-
-
- - - -
-
-

- Gains du Client -

-

- Rechercher les gains d'un client -

+
+ +
+
+
+ +
+
+

+ Validation des gains +

+

+ Rechercher et valider les tickets +

+
-
- + - -
-
-
- - - -
-
-

- Historique -

-

- Consulter l'historique des validations -

+ +
+
+
+ +
+
+

+ Gains du Client +

+

+ Rechercher les gains d'un client +

+
-
- + + + +
+
+
+ +
+
+

+ Historique +

+

+ Consulter l'historique des validations +

+
+
+
+ +
); diff --git a/app/employe/gains-client/page.tsx b/app/employe/gains-client/page.tsx index 6e29511..923ebd1 100644 --- a/app/employe/gains-client/page.tsx +++ b/app/employe/gains-client/page.tsx @@ -1,18 +1,18 @@ 'use client'; import { useState } from 'react'; -import { Card, EmptyState, StatusBadge } from '@/components/ui'; -import Button from '@/components/Button'; +import { StatusBadge } from '@/components/ui'; import { api } from '@/hooks/useApi'; import toast from 'react-hot-toast'; import { Search, - User, Gift, CheckCircle, Phone, Mail, Package, + Clock, + User, } from 'lucide-react'; interface ClientPrize { @@ -94,55 +94,62 @@ export default function GainsClientPage() { return ( -
+
{/* Header */} -
-

- Gains du Client -

-

- Recherchez un client pour visualiser tous ses gains et les remettre -

+
+
+
+ +
+
+

+ Gains du Client +

+

+ Recherchez un client pour visualiser tous ses gains et les remettre +

+
+
{/* Search Section */} -
-
-
- +
+
+
+
-

+

Rechercher un client

{/* Search Type Selection */} -
-