Editing: 98315efd80a4c9c2622954ad0b7a1798044fc849.php
<?php $__env->startPush('styles_top'); ?> <link href="/assets/default/vendors/sortable/jquery-ui.min.css"/> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <section class="section"> <div class="section-header"> <h1><?php echo e(!empty($filter) ?trans('/admin/main.edit'): trans('admin/main.new')); ?> <?php echo e(trans('admin/main.filters')); ?></h1> <div class="section-header-breadcrumb"> <div class="breadcrumb-item active"><a href="<?php echo e(getAdminPanelUrl()); ?>"><?php echo e(trans('admin/main.dashboard')); ?></a> </div> <div class="breadcrumb-item active"><a href="<?php echo e(getAdminPanelUrl()); ?>/filters"><?php echo e(trans('admin/main.filters')); ?></a> </div> <div class="breadcrumb-item"><?php echo e(!empty($filter) ?trans('/admin/main.edit'): trans('admin/main.new')); ?></div> </div> </div> <div class="section-body"> <div class="row"> <div class="col-12 col-md-6 col-lg-6"> <div class="card"> <div class="card-body"> <form action="<?php echo e(getAdminPanelUrl()); ?>/filters/<?php echo e(!empty($filter) ? $filter->id.'/update' : 'store'); ?>" method="Post"> <?php echo e(csrf_field()); ?> <?php if(!empty(getGeneralSettings('content_translate'))): ?> <div class="form-group"> <label class="input-label"><?php echo e(trans('auth.language')); ?></label> <select name="locale" class="form-control <?php echo e(!empty($filter) ? 'js-edit-content-locale' : ''); ?>"> <?php $__currentLoopData = $userLanguages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($lang); ?>" <?php if(mb_strtolower(request()->get('locale', app()->getLocale())) == mb_strtolower($lang)): ?> selected <?php endif; ?>><?php echo e($language); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php $__errorArgs = ['locale']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <?php else: ?> <input type="hidden" name="locale" value="<?php echo e(getDefaultLocale()); ?>"> <?php endif; ?> <div class="form-group"> <label><?php echo e(trans('/admin/main.category')); ?></label> <select class="form-control <?php $__errorArgs = ['category_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" name="category_id"> <option <?php echo e(!empty($trend) ? '' : 'selected'); ?> disabled><?php echo e(trans('admin/main.choose_category')); ?></option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($category->subCategories) and count($category->subCategories)): ?> <optgroup label="<?php echo e($category->title); ?>"> <?php $__currentLoopData = $category->subCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subCategory->id); ?>" <?php if(!empty($filter) and $filter->category_id == $subCategory->id): ?> selected="selected" <?php endif; ?>><?php echo e($subCategory->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </optgroup> <?php else: ?> <option value="<?php echo e($category->id); ?>" class="font-weight-bold" <?php if(!empty($filter) and $filter->category_id == $category->id): ?> selected="selected" <?php endif; ?>><?php echo e($category->title); ?></option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php $__errorArgs = ['category_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group"> <label><?php echo e(trans('admin/main.title')); ?></label> <input type="text" name="title" class="form-control <?php $__errorArgs = ['title']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" value="<?php echo e(!empty($filter) ? $filter->title : old('title')); ?>" placeholder="<?php echo e(trans('admin/main.choose_title')); ?>"/> <?php $__errorArgs = ['title']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div id="filterOptions" class="ml-1"> <div class="d-flex align-items-center justify-content-between mb-4"> <strong class="d-block"><?php echo e(trans('admin/main.add_options')); ?></strong> <button type="button" class="btn btn-success add-btn "><i class="fa fa-plus"></i> <?php echo e(trans('admin/main.add')); ?></button> </div> <ul class="draggable-lists list-group"> <?php if(!empty($filterOptions)): ?> <?php $__currentLoopData = $filterOptions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $filterOption): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="form-group list-group"> <div class="input-group"> <div class="input-group-prepend"> <div class="input-group-text cursor-pointer move-icon"> <i class="fa fa-arrows-alt"></i> </div> </div> <input type="text" name="sub_filters[<?php echo e($filterOption->id); ?>][title]" class="form-control w-auto flex-grow-1" value="<?php echo e($filterOption->title); ?>" placeholder="<?php echo e(trans('admin/main.choose_title')); ?>"/> <div class="input-group-append"> <button type="button" class="btn remove-btn btn-danger"><i class="fa fa-times"></i></button> </div> </div> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </ul> </div> <div class="text-right mt-4"> <button class="btn btn-primary"><?php echo e(trans('admin/main.submit')); ?></button> </div> </form> <li class="form-group main-row list-group d-none"> <div class="input-group"> <div class="input-group-prepend"> <div class="input-group-text cursor-pointer move-icon"> <i class="fa fa-arrows-alt"></i> </div> </div> <input type="text" name="sub_filters[record][title]" class="form-control w-auto flex-grow-1" placeholder="<?php echo e(trans('admin/main.choose_title')); ?>"/> <div class="input-group-append"> <button type="button" class="btn remove-btn btn-danger"><i class="fa fa-times"></i></button> </div> </div> </li> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts_bottom'); ?> <script src="/assets/default/vendors/sortable/jquery-ui.min.js"></script> <script src="/assets/default/js/admin/filters.min.js"></script> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ayaclass/public_html/resources/views/admin/filters/create.blade.php ENDPATH**/ ?>
Save
Back