<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Fiche du Site - <?php echo e($site->name); ?></title>
    <style>
        body {
            font-family: 'DejaVu Sans', sans-serif;
            font-size: 12px;
            color: #333;
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #020548;
            padding-bottom: 10px;
        }
        .header h1 {
            color: #020548;
            margin: 0;
            font-size: 24px;
        }
        .section {
            margin-bottom: 15px;
        }
        .section-title {
            background-color: #020548;
            color: white;
            padding: 5px 10px;
            font-weight: bold;
            margin-bottom: 10px;
            border-radius: 3px;
        }
        .info-grid {
            display: table;
            width: 100%;
            margin-bottom: 10px;
        }
        .info-row {
            display: table-row;
        }
        .info-label {
            display: table-cell;
            font-weight: bold;
            padding: 5px;
            width: 30%;
            vertical-align: top;
        }
        .info-value {
            display: table-cell;
            padding: 5px;
            vertical-align: top;
        }
        .image-container {
            text-align: center;
            margin: 15px 0;
        }
        .site-image {
            max-width: 300px;
            max-height: 200px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .price-box {
            border: 1px solid #020548;
            border-radius: 5px;
            padding: 10px;
            margin: 10px 0;
            background-color: #f8f9fa;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            font-size: 10px;
            color: #666;
            border-top: 1px solid #ddd;
            padding-top: 10px;
        }
        .badge {
            background-color: #28a745;
            color: white;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>Fiche Technique du Site</h1>
        <p>Date de génération : <?php echo e(now()->format('d/m/Y H:i')); ?></p>
    </div>

    <!-- Image principale -->
    <?php if($imagePath): ?>
    <div class="image-container">
        <img src="<?php echo e($imagePath); ?>" class="site-image" alt="<?php echo e($site->name); ?>">
    </div>
    <?php endif; ?>

    <!-- Informations de base -->
    <div class="section">
        <div class="section-title">Informations Générales</div>
        <div class="info-grid">
            <div class="info-row">
                <div class="info-label">Nom du site:</div>
                <div class="info-value"><?php echo e($site->name); ?></div>
            </div>
            <div class="info-row">
                <div class="info-label">Localisation:</div>
                <div class="info-value"><?php echo e($site->location); ?></div>
            </div>
            <div class="info-row">
                <div class="info-label">Coordonnées GPS:</div>
                <div class="info-value">
                    Lat: <?php echo e($site->lat); ?>, Long: <?php echo e($site->longi); ?>

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

    <!-- Tarifs -->
    <div class="section">
        <div class="section-title">Tarification</div>
        <div class="price-box">
            <strong>Prix Standard:</strong> <?php echo e(number_format($site->standard_price, 0, ',', ' ')); ?> FCFA
        </div>
        <div class="price-box">
            <strong>Prix Premium:</strong> <?php echo e(number_format($site->premium_price, 0, ',', ' ')); ?> FCFA
        </div>
    </div>

    <!-- Horaires -->
    <div class="section">
        <div class="section-title">Horaires de Visite</div>
        <div class="info-grid">
            <div class="info-row">
                <div class="info-label">Ouverture:</div>
                <div class="info-value"><?php echo e($site->visit_start_time); ?></div>
            </div>
            <div class="info-row">
                <div class="info-label">Fermeture:</div>
                <div class="info-value"><?php echo e($site->visit_end_time); ?></div>
            </div>
        </div>
    </div>

    <!-- Descriptions -->
    <div class="section">
        <div class="section-title">Description (Français)</div>
        <div style="text-align: justify; line-height: 1.6;">
            <?php echo e($site->description_fr); ?>

        </div>
    </div>

    <div class="section">
        <div class="section-title">Description (Anglais)</div>
        <div style="text-align: justify; line-height: 1.6;">
            <?php echo e($site->description_en); ?>

        </div>
    </div>

    <!-- Informations supplémentaires -->
    <div class="section">
        <div class="section-title">Détails Techniques</div>
        <div class="info-grid">
            <div class="info-row">
                <div class="info-label">ID du site:</div>
                <div class="info-value"><?php echo e($site->id); ?></div>
            </div>
            <div class="info-row">
                <div class="info-label">Date de création:</div>
                <div class="info-value"><?php echo e($site->created_at->format('d/m/Y')); ?></div>
            </div>
            <div class="info-row">
                <div class="info-label">Nombre d'images:</div>
                <div class="info-value"><?php echo e($site->images->count()); ?></div>
            </div>
            <div class="info-row">
                <div class="info-label">Statut:</div>
                <div class="info-value"><span class="badge">ACTIF</span></div>
            </div>
        </div>
    </div>

    <div class="footer">
        <p>© <?php echo e(date('Y')); ?> VoyageDifiant - Tous droits réservés</p>
        <p>Document généré automatiquement - Ne pas utiliser à des fins commerciales</p>
    </div>
</body>
</html>
<?php /**PATH C:\Users\LENOVO\Documents\voyagedifiantDashboard\resources\views/pdf/site.blade.php ENDPATH**/ ?>