<?php $__env->startSection('title', 'Creation de rapport d\'audience au rectorat UAC'); ?>
<style>
    /* ===== MODERN GLASS CARD ===== */
    .glass-card {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: var(--radius-xl);
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.35);
    }

    /* Header glass */
    .glass-card .card-header {
        background: transparent;
    }

    /* Footer glass */
    .glass-card .card-footer {
        background: transparent;
    }

    /* Inputs gla font-family: Arial, sans-serifss */
    .glass-card .form-control-modern,
    .glass-card .form-control,
    .glass-card input[type="datetime-local"] {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .glass-card .form-control-modern:focus,
    .glass-card .form-control:focus {
        background: rgba(255, 255, 255, 0.85);
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    }

    /* Summernote glass */
    .glass-card .note-editor {
        background: rgba(255, 255, 255, 0.6);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .glass-card .note-toolbar {
        background: rgba(255, 255, 255, 0.7);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
</style>

<?php $__env->startSection('content'); ?>

    <div class="row justify-content-center">
        <div class="col-lg-9">

            <div class="glass-card p-4 mb-4">

                <!-- Header -->
                <div class="mb-4">
                    <h4 class="fw-bold mb-4 text-center">
                        Rédiger le compte-rendu d’audience
                    </h4>
                    <small class="text-muted">
                        Objet  : <?php echo e($appointment->subject ?? '—'); ?>

                    </small>
                </div>

                <form method="POST" action="<?php echo e(route('admin.reports.store', $appointment)); ?>">
                    <?php echo csrf_field(); ?>

                    <!-- Dates -->
                    <div class="mb-4">
                        <div class="row g-3">

                            <!-- Début -->
                            <div class="col-md-6">
                                <label class="form-label fw-semibold d-block ">
                                    Heure du début de la séance <span class="text-danger">*</span>
                                </label>

                                <input type="datetime-local" name="start_date"
                                    class="form-control <?php $__errorArgs = ['start_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                    value="<?php echo e(old('start_date')); ?>">

                                <?php $__errorArgs = ['start_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>

                            <!-- Fin -->
                            <div class="col-md-6">
                                <label class="form-label fw-semibold d-block ">
                                    Heure de Fin de la séance <span class="text-danger">*</span>
                                </label>

                                <input type="datetime-local" name="end_date"
                                    class="form-control <?php $__errorArgs = ['end_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                    value="<?php echo e(old('end_date')); ?>">

                                <?php $__errorArgs = ['end_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>

                        </div>
                    </div>


                    <!-- Lieu -->
                    <div class="mb-4">
                        <label class="form-label fw-semibold d-block">
                            Lieu de l’audience
                        </label>
                        <input type="text" name="place" class="form-control border-1 border-black <?php $__errorArgs = ['place'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            placeholder="Ex : Cabinet du ministre" value="<?php echo e(old('place')); ?>">
                        <?php $__errorArgs = ['place'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <!-- Compte rendu -->
                    <div class="mb-4">
                        <label class="form-label fw-semibold">
                            Compte-rendu *
                        </label>
                        <textarea name="content" id="reportContent"
                            class="form-control <?php $__errorArgs = ['content'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                            rows="10"><?php echo e(old('content')); ?></textarea>
                        <?php $__errorArgs = ['content'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback d-block"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <!-- Actions -->
                    <div class="d-flex gap-2 mt-4">
                        <a href="<?php echo e(route('admin.appointments.index')); ?>"
                            class="btn btn-outline-secondary btn-modern flex-grow-1">
                            Annuler
                        </a>

                        <button type="submit" class="btn btn-primary-modern btn-modern flex-grow-1">
                            Enregistrer le compte-rendu
                        </button>
                    </div>

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

<?php $__env->stopSection(); ?>


<?php $__env->startSection('scripts'); ?>
    <script>
        $(document).ready(function () {
            $('#reportContent').summernote({
                height: 500,
                placeholder: 'Rédigez ici le compte-rendu détaillé de la séance…'
            });
        });
    </script>
<?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/create.blade.php ENDPATH**/ ?>