<?php $__env->startSection('title', 'Détails du Conducteur - ' . $chauffeur->name); ?>

<?php $__env->startPush('styles'); ?>
<style>
    :root {
        --primary-color: #020548;
        --secondary-color: #3b5de7;
        --accent-color: #ff6b6b;
        --light-bg: #f8f9fa;
        --dark-text: #2c3e50;
    }

    .driver-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        padding: 2rem 0;
        margin-bottom: 2rem;
        border-radius: 0 0 20px 20px;
    }

    .driver-card {
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(2, 5, 72, 0.1);
        overflow: hidden;
        margin-bottom: 2rem;
    }

    .driver-profile {
        text-align: center;
        padding: 2rem;
        background: var(--light-bg);
    }

    .driver-image {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-bottom: 1.5rem;
    }

    .driver-info {
        padding: 2rem;
    }

    .info-item {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

    .info-item:last-child {
        border-bottom: none;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        background: var(--light-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .info-content {
        flex: 1;
    }

    .info-label {
        font-weight: 600;
        color: var(--dark-text);
        margin-bottom: 0.25rem;
    }

    .info-value {
        color: #6c757d;
        font-size: 1.1rem;
    }

    .btn-custom {
        background: var(--primary-color);
        border: none;
        padding: 12px 30px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s;
    }

    .btn-custom:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 93, 231, 0.3);
    }

    .badge-status {
        background: var(--secondary-color);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .action-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        padding: 2rem;
        background: var(--light-bg);
        border-radius: 15px;
    }

    @media (max-width: 768px) {
        .driver-image {
            width: 120px;
            height: 120px;
        }

        .info-item {
            flex-direction: column;
            text-align: center;
        }

        .info-icon {
            margin-right: 0;
            margin-bottom: 1rem;
        }

        .action-buttons {
            flex-direction: column;
        }
    }
</style>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<!-- Header avec fond gradient -->
<div class="driver-header">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-md-8">
                <h1 class="display-5 fw-bold mb-3" style="color:white">
                    <i class="fas fa-user-circle me-3" ></i>Profil du Conducteur
                </h1>
                <p class="lead mb-0">Détails complets du profil conducteur</p>
            </div>
            
        </div>
    </div>
</div>

<div class="container">
    <!-- Carte principale -->
    <div class="driver-card">
        <!-- Section photo de profil -->
        <div class="driver-profile">
            <div class="position-relative d-inline-block">
                <?php if($chauffeur->image_urlc): ?>
                    <img src="<?php echo e(asset('storage/'.$chauffeur->image_urlc)); ?>"
                         class="driver-image"
                         alt="Photo de <?php echo e($chauffeur->name); ?>"
                         onerror="this.src='https://ui-avatars.com/api/?name=<?php echo e(urlencode($chauffeur->name)); ?>&size=200&background=020548&color=fff&bold=true'">
                <?php else: ?>
                    <div class="driver-image bg-primary d-flex align-items-center justify-content-center text-white">
                        <i class="fas fa-user fa-3x"></i>
                    </div>
                <?php endif; ?>
                <div class="position-absolute bottom-0 end-0 bg-success rounded-circle p-2 border border-3 border-white">
                    <i class="fas fa-check text-white"></i>
                </div>
            </div>
            <h2 class="mb-1" style="color: var(--primary-color);"><?php echo e($chauffeur->name); ?></h2>
            <p class="text-muted">Conducteur Professionnel</p>
        </div>

        <!-- Section informations -->
        <div class="driver-info">
            <h4 class="mb-4" style="color: var(--primary-color);">
                <i class="fas fa-info-circle me-2"></i>Informations Personnelles
            </h4>

            <div class="info-item">
                <div class="info-icon">
                    <i class="fas fa-id-card"></i>
                </div>
                <div class="info-content">
                    <div class="info-label">Nom Complet</div>
                    <div class="info-value"><?php echo e($chauffeur->name); ?></div>
                </div>
            </div>

            <div class="info-item">
                <div class="info-icon">
                    <i class="fas fa-phone"></i>
                </div>
                <div class="info-content">
                    <div class="info-label">Téléphone</div>
                    <div class="info-value">
                        <a href="tel:<?php echo e($chauffeur->telephone); ?>" class="text-decoration-none">
                            <i class="fas fa-phone-alt me-2"></i><?php echo e($chauffeur->telephone); ?>

                        </a>
                    </div>
                </div>
            </div>

            <div class="info-item">
                <div class="info-icon">
                    <i class="fas fa-id-badge"></i>
                </div>
                <div class="info-content">
                    <div class="info-label">Numéro ID</div>
                    <div class="info-value">CHF-<?php echo e(str_pad($chauffeur->id, 4, '0', STR_PAD_LEFT)); ?></div>
                </div>
            </div>

            <div class="info-item">
                <div class="info-icon">
                    <i class="fas fa-calendar-alt"></i>
                </div>
                <div class="info-content">
                    <div class="info-label">Membre depuis</div>
                    <div class="info-value">
                        <i class="far fa-clock me-2"></i><?php echo e($chauffeur->created_at->format('d/m/Y')); ?>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Statistiques supplémentaires -->
    
        <div class="col-md-4 mb-3">
            <div class="card border-0 shadow-sm h-100 text-center">
                <div class="card-body py-4">
                    <div class="text-success mb-2">
                        <i class="fas fa-star fa-2x"></i>
                    </div>
                    <h3 class="fw-bold">4.8/5</h3>
                    <p class="text-muted mb-0">Note moyenne</p>
                </div>
            </div>
        </div>
        
    </div>

    <!-- Boutons d'action -->
    
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script>
    document.addEventListener('DOMContentLoaded', function() {
        // Animation au scroll
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = 1;
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, { threshold: 0.1 });

        document.querySelectorAll('.info-item, .card').forEach(item => {
            item.style.opacity = 0;
            item.style.transform = 'translateY(20px)';
            item.style.transition = 'all 0.6s ease';
            observer.observe(item);
        });
    });
</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\LENOVO\Documents\voyagedifiantDashboard\resources\views/page/detail-chauffeur.blade.php ENDPATH**/ ?>