Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/storage/framework/views/27b236d754cf528fb119ba0f2b637b38.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e(__('Update Role')); ?></title> <?php $__env->stopSection(); ?> <?php $__env->startSection('admin-content'); ?> <div class="main-content"> <section class="section admin_role_edit"> <?php if (isset($component)) { $__componentOriginaldbbc880c47f621cda59b70d6eb356b2f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.breadcrumb','data' => ['title' => ''.e(__('Update Role')).'','list' => [ __('Dashboard') => route('admin.dashboard'), __('Settings') => route('admin.settings'), __('Manage Roles') => route('admin.role.index'), __('Update Role') => '#', ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['title' => ''.e(__('Update Role')).'','list' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([ __('Dashboard') => route('admin.dashboard'), __('Settings') => route('admin.settings'), __('Manage Roles') => route('admin.role.index'), __('Update Role') => '#', ])]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f)): ?> <?php $attributes = $__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f; ?> <?php unset($__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbbc880c47f621cda59b70d6eb356b2f)): ?> <?php $component = $__componentOriginaldbbc880c47f621cda59b70d6eb356b2f; ?> <?php unset($__componentOriginaldbbc880c47f621cda59b70d6eb356b2f); ?> <?php endif; ?> <div class="section-body"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <?php if (isset($component)) { $__componentOriginalf4c3b1ff82926c29625e584896e80d5a = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf4c3b1ff82926c29625e584896e80d5a = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-title','data' => ['text' => __('Update Role')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-title'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['text' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Update Role'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf4c3b1ff82926c29625e584896e80d5a)): ?> <?php $attributes = $__attributesOriginalf4c3b1ff82926c29625e584896e80d5a; ?> <?php unset($__attributesOriginalf4c3b1ff82926c29625e584896e80d5a); ?> <?php endif; ?> <?php if (isset($__componentOriginalf4c3b1ff82926c29625e584896e80d5a)): ?> <?php $component = $__componentOriginalf4c3b1ff82926c29625e584896e80d5a; ?> <?php unset($__componentOriginalf4c3b1ff82926c29625e584896e80d5a); ?> <?php endif; ?> <div> <?php if(auth()->guard('admin')->user()->can('role.view')): ?> <?php if (isset($component)) { $__componentOriginal17c557c70b1fe4c4647ae4b30eca9298 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.back-button','data' => ['href' => route('admin.role.index')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.back-button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.role.index'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298)): ?> <?php $attributes = $__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298; ?> <?php unset($__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298); ?> <?php endif; ?> <?php if (isset($__componentOriginal17c557c70b1fe4c4647ae4b30eca9298)): ?> <?php $component = $__componentOriginal17c557c70b1fe4c4647ae4b30eca9298; ?> <?php unset($__componentOriginal17c557c70b1fe4c4647ae4b30eca9298); ?> <?php endif; ?> <?php endif; ?> </div> </div> <div class="card-body"> <div class="row"> <div class="col-md-12"> <form role="form" action="<?php echo e(route('admin.role.update', $role->id)); ?>" method="POST"> <?php echo method_field('PUT'); ?> <?php echo csrf_field(); ?> <div class="card-body"> <div class="form-group"> <label for="name" class="form-label"><?php echo e(__('Name')); ?></label> <input value="<?php echo e($role->name); ?>" name="name" type="text" class="form-control <?php $__errorArgs = ['name']; $__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); ?>" id="role_name" placeholder="<?php echo e(__('Enter name')); ?>"> <?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="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group"> <label for="permission" class="form-label"><?php echo e(__('Permission')); ?></label> <div class="form-check mb-2"> <input <?php echo e(App\Models\Admin::roleHasPermission($role, $permissions) ? 'checked' : ''); ?> class="form-check-input" type="checkbox" id="permission_all" value="1"> <label for="permission_all" class="form-check-label permission_all"><?php echo e(__('All Permissions')); ?></label> </div> <hr> <div class="admin_role_border"> <div class="row"> <?php $i=1; ?> <?php $__currentLoopData = $permission_groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $permissionss = App\Models\Admin::getpermissionsByGroupName( $group->name, ); $j = 1; ?> <div class="py-2 mb-2 col-lg-6 border-bottom"> <div class="row"> <div class="col-12 col-md-5 col-lg-5 col-xl-4 "> <div class="form-check mb-2"> <input <?php echo e(App\Models\Admin::roleHasPermission($role, $permissions) ? 'checked' : ''); ?> class="form-check-input permession_group" type="checkbox" id="<?php echo e($i); ?>management" onclick="CheckPermissionByGroup('role-<?php echo e($i); ?>-management-checkbox',this)" value="2" name="permession_group" data-role-id="<?php echo e($i); ?>"> <label for="<?php echo e($i); ?>management" class="custom-control-label text-capitalize"><?php echo e($group->name); ?></label> </div> </div> <div class="col-12 col-md-7 col-lg-7 col-xl-8 role-<?php echo e($i); ?>-management-checkbox"> <?php $__currentLoopData = $permissionss; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="form-check mb-2"> <input <?php echo e($role->hasPermissionTo($permission->name) ? 'checked' : ''); ?> name="permissions[]" class="form-check-input" type="checkbox" id="permission_checkbox_<?php echo e($permission->id); ?>" value="<?php echo e($permission->name); ?>" data-role-id="<?php echo e($i); ?>"> <label for="permission_checkbox_<?php echo e($permission->id); ?>" class="custom-control-label"><?php echo e(implode(' ', array_map('ucfirst', explode('.', $permission->name)))); ?></label> </div> <?php $j++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php $i++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> <div class="row"> <div class="text-center col-md-8 offset-md-2"> <?php if (isset($component)) { $__componentOriginalf3ad9c349c70d58844f8581b0990debd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf3ad9c349c70d58844f8581b0990debd = $attributes; } ?> <?php $component = App\View\Components\Admin\UpdateButton::resolve(['text' => __('Update')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.update-button'); ?> <?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\Admin\UpdateButton::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($__attributesOriginalf3ad9c349c70d58844f8581b0990debd)): ?> <?php $attributes = $__attributesOriginalf3ad9c349c70d58844f8581b0990debd; ?> <?php unset($__attributesOriginalf3ad9c349c70d58844f8581b0990debd); ?> <?php endif; ?> <?php if (isset($__componentOriginalf3ad9c349c70d58844f8581b0990debd)): ?> <?php $component = $__componentOriginalf3ad9c349c70d58844f8581b0990debd; ?> <?php unset($__componentOriginalf3ad9c349c70d58844f8581b0990debd); ?> <?php endif; ?> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </section> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('js'); ?> <script> "use strict" $('input[name^="permession_group"]').on('change', function() { permission_all_checked(); }); $('#permission_all').on('click', function() { $('input[type=checkbox]').prop('checked', $(this).prop('checked')); }); function CheckPermissionByGroup(classname, checkthis) { const groupIdName = $("#" + checkthis.id); const classCheckBox = $('.' + classname + ' input'); classCheckBox.prop('checked', groupIdName.prop('checked')); } $('input[name^="permissions"]').on('change', function() { const roleId = $(this).data('role-id'); checkGroupName(roleId) permission_all_checked(); }); function checkGroupName(roleId) { const groupCheckbox = $('#' + roleId + 'management'); const groupPermissions = $('input[name^="permissions"][data-role-id="' + roleId + '"]'); const checkedPermissionsCount = groupPermissions.filter(':checked').length; const totalPermissionsCount = groupPermissions.length; groupCheckbox.prop('checked', checkedPermissionsCount === totalPermissionsCount); } function permission_all_checked() { var allCheckboxesChecked = $('input[type=checkbox]').not('#permission_all').length === $('input[type=checkbox]:checked').not('#permission_all').length; $('#permission_all').prop('checked', allCheckboxesChecked); } $('.permession_group').each(function() { const roleId = $(this).data('role-id'); checkGroupName(roleId); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekhnath/silverray.com.au/resources/views/admin/roles/edit.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка