<?php $__env->startSection('title', 'Create Announcement'); ?>

<?php $__env->startSection('content'); ?>
<div class="card">

    <div class="card-body">
        <div class="card-title"></div>
        <form action="<?php echo e(route('announcements.store')); ?>" method="post" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <fieldset>
                <legend>Create Announcement</legend>
               <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                <?php echo implode('', $errors->all('<div>:message</div>')); ?>

                </div>
                <?php endif; ?>
                <div class="row mb-3">
                    <div class="col-sm-12 mb-3">
                        <label class="form-label">Title</label>
                        <input type="text" name="title" value="<?php echo e(old('title')); ?>" require class="form-control">
                    </div>
                    <div class="col-sm-12 mb-3">
                        <label class="form-label">Announcement date</label>
                        <input type="date" name="announcement_date" value="<?php echo e(date('Y-m-d')); ?>" require class="form-control">
                    </div>
        
                    <div class="col-sm-12 mb-3">
                        <label class="form-label">Description</label>
                        <textarea name="description" id="editor" class="form-control"><?php echo e(old('description')); ?></textarea>
                    </div>
                </div>
            </fieldset>
            <button type="submit" class="btn btn-primary">Save</button>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/codexxatester/public_html/resources/views/admin/announcement/create.blade.php ENDPATH**/ ?>