Viewing file: b05f66cf452c0ac656880edddefca8e8.php (15.79 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('add_category')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3 class="card-title" style="line-height: 36px;"><?php echo e(__('add_category')); ?></h3> <a href="<?php echo e(route('module.category.index')); ?>" class="btn bg-primary float-right d-flex align-items-center justify-content-center"><i class="fas fa-arrow-left"></i> <?php echo e(__('back')); ?></a> </div> <div class="row pt-3 pb-4"> <div class="col-md-6 offset-md-3"> <form class="form-horizontal" action="<?php echo e(route('module.category.store')); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php $__currentLoopData = $locales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $locale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="form-group row"> <?php if($locale->code == 'en'): ?> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => ''.e(__('category_name')).' ('.e($locale->name).')','required' => 'true','class' => 'col-sm-3 col-form-label'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php else: ?> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => ''.e(__('category_name')).' ('.e($locale->name).')','required' => 'false','class' => 'col-sm-3 col-form-label'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php endif; ?> <div class="col-sm-9"> <input value="<?php echo e(old('name.' . $locale->code)); ?>" name="name[<?php echo e($locale->code); ?>]" type="text" class="form-control <?php $__errorArgs = ['name.' . $locale->code]; $__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); ?>" placeholder="<?php echo e(__('enter_category_name')); ?> (<?php echo e($locale->name); ?>)"> <?php if($locale->code == 'en'): ?> <?php $__errorArgs = ['name.' . $locale->code]; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><strong>English category name is required</strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> <?php else: ?> <?php $__errorArgs = ['name.' . $locale->code]; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> <?php endif; ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="form-group row"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'image','required' => 'true','class' => 'col-sm-3 col-form-label'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <div class="col-sm-9"> <input name="image" type="file" accept="image/png, image/jpg, image/jpeg" class="form-control dropify <?php $__errorArgs = ['image']; $__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); ?>" style="border:none;padding-left:0;" data-max-file-size="3M" data-show-errors="true" data-allowed-file-extensions='["jpg", "jpeg","png"]'> <?php $__errorArgs = ['image']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback d-block" role="alert"><strong><?php echo e($message); ?></strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group row"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'icon','required' => 'true','class' => 'col-sm-3 col-form-label'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <div class="col-sm-9"> <input type="hidden" name="icon" id="icon" value="<?php echo e(old('icon')); ?>" /> <div id="target"></div> <?php $__errorArgs = ['icon']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback d-block" role="alert"><strong><?php echo e($message); ?></strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="form-group row"> <div class="offset-sm-3 col-sm-4"> <button type="submit" class="btn btn-success"> <i class="fas fa-plus"></i> <?php echo e(__('create')); ?>
</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <!-- Bootstrap-Iconpicker --> <link rel="stylesheet" href="<?php echo e(asset('backend')); ?>/plugins/bootstrap-iconpicker/dist/css/bootstrap-iconpicker.min.css" /> <link rel="stylesheet" href="<?php echo e(asset('backend')); ?>/css/dropify.min.css" /> <?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?> <!-- Bootstrap-Iconpicker Bundle --> <script type="text/javascript" src="<?php echo e(asset('backend')); ?>/plugins/bootstrap-iconpicker/dist/js/bootstrap-iconpicker.bundle.min.js"></script> <script type="text/javascript" src="<?php echo e(asset('backend')); ?>/plugins/bootstrap-iconpicker/dist/js/bootstrap-iconpicker.min.js"></script> <script src="<?php echo e(asset('backend')); ?>/js/dropify.min.js"></script>
<script> $('#target').iconpicker({ align: 'left', // Only in div tag arrowClass: 'btn-danger', arrowPrevIconClass: 'fas fa-angle-left', arrowNextIconClass: 'fas fa-angle-right', cols: 15, footer: true, header: true, icon: 'fas fa-bomb', iconset: 'fontawesome5', labelHeader: '{0} of {1} pages', labelFooter: '{0} - {1} of {2} icons', placement: 'bottom', // Only in button tag rows: 5, search: true, searchText: 'Search', selectedClass: 'btn-success', unselectedClass: '' });
$('#target').on('change', function(e) { $('#icon').val(e.icon) });
// dropify var drEvent = $('.dropify').dropify();
drEvent.on('dropify.error.fileSize', function(event, element) { alert('Filesize error message!'); }); drEvent.on('dropify.error.imageFormat', function(event, element) { alert('Image format error message!'); }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\Modules/Category\Resources/views/category/create.blade.php ENDPATH**/ ?>
|