<?php ($message = $message ?? null); ?>

<div style="display:grid; grid-template-columns: 1fr; gap:16px;">
    <div class="form-group">
        <label class="form-label" for="subject">Subject</label>
        <input class="input" type="text" id="subject" name="subject" value="<?php echo e(old('subject', $message?->subject)); ?>">
    </div>
    <div class="form-group">
        <label class="form-label" for="priority">Priority</label>
        <select class="input" id="priority" name="priority">
            <?php $__currentLoopData = ['normal', 'high', 'urgent']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $priority): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($priority); ?>" <?php if(old('priority', $message?->priority ?? 'normal') === $priority): echo 'selected'; endif; ?>><?php echo e(ucfirst($priority)); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label" for="body">Message</label>
        <textarea class="input" id="body" name="body" rows="6" required><?php echo e(old('body', $message?->body)); ?></textarea>
    </div>
</div>
<?php /**PATH C:\laragon\www\southend\resources\views\admin\messages\_form.blade.php ENDPATH**/ ?>