<?php /** @var \App\Models\Testimonial $testimonial */ ?>

<label for="tag">Tag (ex. CBT, Logistique)</label>
<input id="tag" type="text" name="tag" value="<?php echo e(old('tag', $testimonial->tag)); ?>" maxlength="120">

<label for="stars">Nombre d'etoiles (1 a 5)</label>
<select id="stars" name="stars" required>
    <?php $__currentLoopData = range(1, 5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <option value="<?php echo e($n); ?>" <?php if((int) old('stars', $testimonial->stars ?? 5) === $n): echo 'selected'; endif; ?>><?php echo e($n); ?> etoile(s)</option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>

<label for="quote">Citation</label>
<textarea id="quote" name="quote" rows="4" required maxlength="5000"><?php echo e(old('quote', $testimonial->quote)); ?></textarea>

<label for="author_name">Nom du client</label>
<input id="author_name" type="text" name="author_name" value="<?php echo e(old('author_name', $testimonial->author_name)); ?>" required maxlength="255">

<label for="author_role">Fonction / contexte</label>
<input id="author_role" type="text" name="author_role" value="<?php echo e(old('author_role', $testimonial->author_role)); ?>" maxlength="255" placeholder="Ex. Responsable Import">



<?php if($testimonial->exists && $testimonial->avatarDisplayUrl()): ?>
<div style="margin-bottom:14px;">
    <span style="font-size:13px;font-weight:600;display:block;margin-bottom:6px;">Photo actuelle</span>
    <img src="<?php echo e($testimonial->avatarDisplayUrl()); ?>" alt="" style="max-width:120px;border-radius:50%;border:2px solid #e7eaee;">
</div>
<label class="row-check">
    <input type="hidden" name="remove_avatar" value="0">
    <input type="checkbox" name="remove_avatar" value="1" <?php if(old('remove_avatar')==='1' ): echo 'checked'; endif; ?>>
    Supprimer la photo
</label>
<?php endif; ?>

<label for="sort_order">Ordre d'affichage</label>
<input id="sort_order" type="number" name="sort_order" value="<?php echo e(old('sort_order', $testimonial->sort_order ?? 0)); ?>" min="0" max="9999">

<label class="row-check">
    <input type="hidden" name="is_published" value="0">
    <input type="checkbox" name="is_published" value="1" <?php if(old('is_published', $testimonial->is_published ? '1' : '0') === '1'): echo 'checked'; endif; ?>>
    Publie sur l'accueil
</label>
<?php /**PATH C:\Softsys\new_pirras\resources\views/admin/testimonials/_form.blade.php ENDPATH**/ ?>