<?php $__env->startSection('title', 'Demandes d\'audience au rectorat UAC'); ?>

<style>
  #appointmentsTable {
    border-collapse: separate;
    border-spacing: 0;
  }

  #appointmentsTable thead th {
    background-color: transparent;
    border-bottom: 2px solid var(--border-light);
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
  }

  #appointmentsTable tbody td {
    border-bottom: 1px solid var(--border-light);
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
  }

  #appointmentsTable tbody tr:last-child td {
    border-bottom: none;
  }

  #appointmentsTable tbody tr:hover {
    background-color: rgba(14, 165, 233, 0.04) !important;
  }

  .avatar-xs {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .avatar-xs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .dropdown-menu {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem;
  }

  .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    transition: all var(--transition-fast);
  }

  .dropdown-item:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
  }

  @media (max-width: 768px) {
    #appointmentsTable {
      font-size: 0.875rem;
    }

    .stats-header h1 {
      font-size: 1.5rem;
    }
  }
</style>
<style>
  /* Styles spécifiques pour le modal */
  .modal-content {
    border: none;
    box-shadow: var(--shadow-xl);
  }

  .modal-header {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(14, 165, 233, 0.02));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  }

  .action-icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-md);
  }

  .form-label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }

  .input-group-text {
    background-color: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-muted);
  }

  .form-control,
  .form-select {
    border-color: var(--border-light);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: all var(--transition-fast);
  }

  .form-control:focus,
  .form-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: var(--bg-surface);
  }

  .alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
  }

  /* Responsive */
  @media (max-width: 576px) {
    .modal-dialog {
      margin: 0.5rem;
    }

    .modal-header .d-flex {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }

    .action-icon-container {
      align-self: flex-start;
    }
  }
</style>
<style>
  /* Styles spécifiques pour le modal de vue */
  .avatar-large {
    position: relative;
  }

  .avatar-large img {
    width: 56px;
    height: 56px;
    object-fit: cover;
  }

  .icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .card-header-modern {
    padding: 0;
  }

  .card-body-modern {
    padding: 0;
  }

  .info-group {
    margin-bottom: 1rem;
  }

  .info-label {
    margin-bottom: 0.25rem;
  }

  .info-label i {
    width: 16px;
  }

  .info-value {
    color: var(--text-primary);
    line-height: 1.4;
  }

  .message-content {
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid var(--primary-400);
    background: var(--bg-secondary) !important;
  }

  .admin-note {
    border-left: 3px solid var(--warning);
    background: var(--warning-bg, rgba(245, 158, 11, 0.1)) !important;
  }

  .file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary) !important;
  }

  /* Scrollbar personnalisée pour le message */
  .message-content::-webkit-scrollbar {
    width: 6px;
  }

  .message-content::-webkit-scrollbar-track {
    background: transparent;
  }

  .message-content::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: 3px;
  }

  .message-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .modal-dialog {
      margin: 0.5rem;
    }

    .avatar-large img {
      width: 48px;
      height: 48px;
    }

    .icon-container {
      width: 36px;
      height: 36px;
    }

    .modal-footer .d-flex {
      flex-direction: column;
    }

    .modal-footer .btn {
      width: 100%;
    }
  }

  /* Animation d'entrée pour les éléments */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .card-modern {
    animation: fadeIn 0.3s ease-out;
  }

  .info-group {
    animation: fadeIn 0.4s ease-out;
  }
</style>

<?php $__env->startSection('content'); ?>
  <div class="container-fluid py-4">

    <div class="row justify-content-center">
      <div class="col-lg-10">
        <div class="stats-header mb-4">
          <div class="row align-items-center">
            <div class="col-12 col-md-8">
              <h1 class="display-6 text-white fw-bold mb-2">
                Compte-rendu d’audience
              </h1>
              <p class="text-white mb-0">
                Audience du <?php echo e(\Carbon\Carbon::parse($report->start_date)->format('d/m/Y')); ?>

              </p>
            </div>
          </div>
        </div>
        <div class="card-modern glass-card">

          
          <div class="card-header border-0 pb-0">
            <div class="row g-4">

              
              <div class="col-md-6">
                <label class="fw-semibold text-muted small">Requérant</label>
                <div class="fw-semibold">
                  <?php echo e($report->appointment->first_name); ?>

                  <?php echo e($report->appointment->last_name); ?>

                </div>
                <div class="text-muted small">
                  <?php echo e($report->appointment->email); ?>

                </div>
              </div>

              
              <div class="col-md-6">
                <label class="fw-semibold text-muted small">Autorité</label>
                <div class="fw-semibold">
                  <?php echo e(optional($report->appointment->service)->name ?? '—'); ?>

                </div>
              </div>

              
              <div class="col-md-6">
                <label class="fw-semibold text-muted small">Début de la séance</label>
                <div>
                  <?php echo e(\Carbon\Carbon::parse($report->start_date)->format('d/m/Y H:i')); ?>

                </div>
              </div>

              <div class="col-md-6">
                <label class="fw-semibold text-muted small">Fin de la séance</label>
                <div>
                  <?php echo e($report->end_date
    ? \Carbon\Carbon::parse($report->end_date)->format('d/m/Y H:i')
    : '—'); ?>

                </div>
              </div>

              
              <div class="col-md-12">
                <label class="fw-semibold text-muted small">Lieu</label>
                <div><?php echo e($report->place ?? '—'); ?></div>
              </div>

            </div>
            <hr class="mt-4">
          </div>

          
          <div class="card-body">
            <div class="bg-white rounded p-4">
              <?php echo $report->content; ?>

            </div>
          </div>

          
          <div class="card-footer border-0 d-flex justify-content-between align-items-center">
            <small class="text-muted">
              Rédigé par <?php echo e($report->author->name); ?>

            </small>

            <div class="d-flex gap-2">
              <a href="<?php echo e(route('admin.reports.index')); ?>" class="btn btn-outline-secondary btn-modern">
                Retour
              </a>
              <a href="<?php echo e(route('admin.reports.download', $report)); ?>" class="btn btn-primary-modern btn-modern flex-grow-1">
                <i class="bi bi-download me-1"></i>
                Télécharger en PDF
              </a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ecamesuac/public_html/schedule-managment/resources/views/admin/reports/show.blade.php ENDPATH**/ ?>