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

<div style="display:grid; grid-template-columns: repeat(2, 1fr); gap:16px;">
    <div class="form-group" style="grid-column: span 2;">
        <label class="form-label" for="title">Title</label>
        <input class="input" type="text" id="title" name="title" value="<?php echo e(old('title', $announcement?->title)); ?>" required>
    </div>
    <div class="form-group">
        <label class="form-label" for="audience">Audience</label>
        <select class="input" id="audience" name="audience">
            <?php $__currentLoopData = ['all', 'staff', 'students', 'parents']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $audience): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($audience); ?>" <?php if(old('audience', $announcement?->audience ?? 'all') === $audience): echo 'selected'; endif; ?>><?php echo e(ucfirst($audience)); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label" for="status">Status</label>
        <select class="input" id="status" name="status">
            <?php $__currentLoopData = ['draft', 'published', 'archived']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($status); ?>" <?php if(old('status', $announcement?->status ?? 'draft') === $status): echo 'selected'; endif; ?>><?php echo e(ucfirst($status)); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label" for="published_at">Publish At</label>
        <input class="input" type="datetime-local" id="published_at" name="published_at" value="<?php echo e(old('published_at', optional($announcement?->published_at)->format('Y-m-d\TH:i'))); ?>">
    </div>
    <div class="form-group">
        <label class="form-label" for="expires_at">Expires At</label>
        <input class="input" type="datetime-local" id="expires_at" name="expires_at" value="<?php echo e(old('expires_at', optional($announcement?->expires_at)->format('Y-m-d\TH:i'))); ?>">
    </div>
    <div class="form-group" style="grid-column: span 2;">
        <label class="form-label" for="body">Body</label>
        <textarea class="input" id="body" name="body" rows="6" required><?php echo e(old('body', $announcement?->body)); ?></textarea>
    </div>
</div>
<?php /**PATH C:\laragon\www\southend\resources\views\admin\announcements\_form.blade.php ENDPATH**/ ?>