import { LucideIcon } from 'lucide-react';

export interface Auth {
    user: User;
}

export interface BreadcrumbItem {
    title: string;
    href: string;
}

export interface NavGroup {
    title: string;
    items: NavItem[];
}

export interface NavItem {
    title: string;
    url: string;
    icon?: LucideIcon | null;
    isActive?: boolean;
}

export interface SharedData {
    name: string;
    quote: { message: string; author: string };
    auth: Auth;
    [key: string]: unknown;
}
export interface Reservation {
        dateDebut: string,
        heureDebut: string,
        isMiseADisposition: boolean,
        nbHeure: string,
        departAddress: string,
        departTransportNum: string,
        departTransportTime: string,
        arriveeAddress: string,
        arriveeTransportNum: string,
        arriveeTransportTime: string,
        totalPax: string,
        totalBagage: string,
        noteChauffeur: string,
        paxCivilite: string,
        paxNom: string,
        paxPrenom: string,
        paxTelephoneMobile: string,
        paxTelephoneFixe: string,
        paxLangue: string,
        paxInfoParticuliere: string,
        societeFacturation: string,
        refClientDossier: string,
        infoComplementaire: string,
        contactCivilite: string,
        contactNom: string,
        contactPrenom: string,
        contactEmail: string,
        contactTelephone: string,
        contactLangue: string,
        statutDemande: string,
        vehicleId:number,
        vehicleName: string,
        totalPrice: number,
        distanceKm: number,
        durationMin: string,
        paymentMethod:string,
        paymentStatus: string,
    }

export interface ReservationRecord {
    id: number;
    dateDebut: string;
    heureDebut: string;
    nbHeure: string | null;
    isMiseADisposition: boolean;
    departAddress: string;
    departTransportNum: string | null;
    departTransportTime: string | null;
    arriveeAddress: string;
    arriveeTransportNum: string | null;
    arriveeTransportTime: string | null;
    totalPax: string;
    totalBagage: string | null;
    paxNom: string;
    paxPrenom: string | null;
    paxTelephoneMobile: string | null;
    contactNom: string;
    contactEmail: string;
    contactTelephone: string | null;
    statutDemande: string | null;
    checkout_id: number | null;
    created_at: string;
    updated_at: string;
}

export interface PaginatedReservations {
    data: ReservationRecord[];
    current_page: number;
    last_page: number;
    total: number;
    links: {
        url: string | null;
        label: string;
        active: boolean;
    }[];
}

export interface ReservationStats {
    total: number;
    upcoming: number;
    onDemand: number;
}

export interface Product {
    id: number;
    name: string;
    price: number;
    description: string | null;
    stack: number;
    is_active: boolean;
    created_at: string;
}
export interface PaginatedProducts {
    data:Product[];
    current_page:number;
    last_page: number;
    total:number;
    links:{
        url:string|null;
        label: string;
        active:boolean;
    }[];
}
export interface User {
    id: number;
    name: string;
    email: string;
    avatar?: string;
    email_verified_at: string | null;
    created_at: string;
    updated_at: string;
    [key: string]: unknown; // This allows for additional properties...
}
