<?php $__env->startSection('Title'); ?>
    پنل مدیریت | ویرایش رویداد - <?php echo e($event_info['name']); ?>

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

<?php $__env->startSection('custom-css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('admin/assets/vendor/summernote/dist/summernote.css')); ?>"/>
    <link rel="stylesheet" href="<?php echo e(asset('admin/assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css')); ?>"/>

    <style>
        input::placeholder {
            color: #d5d5d5 !important;
        }
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('custom-js'); ?>
    <script src="<?php echo e(asset('admin/assets/vendor/summernote/dist/summernote.js')); ?>"></script>
    <script src="<?php echo e(asset('admin/assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js')); ?>"></script>
    <script>
        $(".dropify").dropify();

        $('#province_select').multiselect({
            enableFiltering: true,
            enableCaseInsensitiveFiltering: true,
            maxHeight: 400,
            selectAll: true,
            nonSelectedText: 'استان را انتخاب کنید',
            filterPlaceholder: 'جستجو کنید',
            allSelectedText: 'همه انتخاب شدند',
        });
    </script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <div class="block-header">
            <div class="row clearfix">
                <div class="col-md-6 col-sm-12">
                    <h1>افزودن رویداد جدید</h1>
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">پنل مدیریت</a></li>
                            <li class="breadcrumb-item"><a href="<?php echo e(route('admin.events.index')); ?>">رویداد ها</a></li>
                            <li class="breadcrumb-item active" aria-current="page"> ویرایش رویداد - <?php echo e($event_info['name']); ?></li>
                        </ol>
                    </nav>
                </div>

                <div class="col-md-6 col-sm-12 text-right hidden-xs">
                    <a href="<?php echo e(route('admin.events.index')); ?>" class="btn btn-sm btn-danger">
                        <i class="fa fa-arrow-right mr-2"></i>
                        بازگشت به رویدادها
                    </a>
                </div>
            </div>
        </div>

        <div class="row clearfix">
            <div class="col-12 col-lg-6 col-xl-3">
                <div class="card">
                    <form action="<?php echo e(route('admin.events.update', ['event' => $event_info['id']])); ?>" enctype="multipart/form-data" method="post"
                          class="body">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field("PUT"); ?>
                        <div class="row">
                            <div class="col-12">
                                <div class="row">
                                    <div class="col-12 mb-4">
                                        <label>نام رویداد</label>
                                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <span class="validation_label_error"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        <input value="<?php echo e($event_info['name']); ?>" required="required" type="text" name="name" class="form-control">
                                    </div>
                                    <div class="col-12 mb-4">
                                        <label>وضعیت رویداد</label>
                                        <?php $__errorArgs = ['is_active'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <span class="validation_label_error"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        <select class="form-control" name="is_active">
                                            <option <?php if($event_info['is_active'] == 1): ?> selected="selected" <?php endif; ?> value="1">فعال</option>
                                            <option <?php if($event_info['is_active'] == 0): ?> selected="selected" <?php endif; ?> value="0">غیر فعال</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row mt-2">
                            <div class="col-12 text-right">
                                <button class="btn btn-success btn-sm px-4 w-100">
                                    <i class="fa fa-edit mr-2"></i>
                                    ویرایش رویداد
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\atom_event\back\resources\views/admin/events/edit.blade.php ENDPATH**/ ?>