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

<form action="<?php echo e(route('admin.announcements.create')); ?>" method="post">
    <?php echo csrf_field(); ?>
    <div class="card">
        <div class="border-bottom card-header">
            <h4 class="card-title"><?php echo e(trans('general.new_announcement')); ?></h4>
        </div>
        <div class="card-body">
            <div class="row pt-2">
                <div class=" col-md-6 col-12">
                    <div class="row">
                        <div class="col-12">
                            <div class="mb-1">
                                <label class="form-label" for="title"><?php echo e(trans('general.title')); ?></label>
                                <input required type="text" name="title" class="form-control" id="title" value="<?php echo e(old('title')? old('title') : ''); ?>">
                            </div>
                        </div>
                        <div class="col-12">
                            <div class="mb-1">
                                <label class="form-label" for="stageSelect"><?php echo e(trans('general.stage')); ?></label>
                                <select required name="stage_id" class="form-select" id="stageSelect">
                                    <option value="">--</option>
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAsSuper',  App\Models\Announcement::class)): ?>
                                    <option value="-1"><?php echo e(trans('general.all')); ?></option>
                                    <?php endif; ?>
                                    <?php $__currentLoopData = $stages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($stage->id); ?>" <?php echo e(old('stage_id')? ($stage->id == old('stage_id')? 'selected':'') : ''); ?>>
                                        <?php echo e($stage->title); ?>

                                    </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class=" col-md-6 col-12">
                    <div class="mb-1">
                        <label class="form-label" for="text"><?php echo e(trans('general.text')); ?></label>
                        <textarea required name="text" class="form-control" id="text" rows="4"><?php echo e(old('text')? old('text') : ''); ?></textarea>
                    </div>
                </div>
            </div>
        </div>


        <div class="card-footer">
            <button type="submit" class="btn btn-primary waves-effect waves-float waves-light"><?php echo e(trans('general.save')); ?></button>
            <button type="reset" class="btn btn-outline-secondary waves-effect"><?php echo e(trans('general.reset')); ?></button>
        </div>
    </div>

</form>

<?php $__env->startPush('scripts'); ?>


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

<?php $__env->startPush('header'); ?>


<?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\nobalaa-dev\Desktop\New folde2r\portal\resources\views/admin/announcements/announcements-create.blade.php ENDPATH**/ ?>