@extends('backend.layouts.app') @section('title', __('labels.backend.access.users.management') . ' | ' . __('labels.backend.access.users.create')) @section('breadcrumb-links') @include('backend.auth.user.includes.breadcrumb-links') @endsection @section('content') {{ html()->form('POST', route('admin.auth.user.store'))->class('form-horizontal')->open() }}
@lang('labels.backend.access.users.table.roles') | @lang('labels.backend.access.users.table.permissions') |
---|---|
@if($roles->count())
@foreach($roles as $role)
{{ html()->label(
html()->checkbox('roles[]', old('roles') && in_array($role->name, old('roles')) ? true : false, $role->name)
->class('switch-input')
->id('role-'.$role->id)
. '')
->class('switch switch-label switch-pill switch-primary mr-2')
->for('role-'.$role->id) }}
{{ html()->label(ucwords($role->name))->for('role-'.$role->id) }}
@if($role->id != 1)
@if($role->permissions->count())
@foreach($role->permissions as $permission)
{{ ucwords($permission->name) }}
@endforeach
@else
@lang('labels.general.none')
@endif
@else
@lang('labels.backend.access.users.all_permissions')
@endif
|
@if($permissions->count())
@foreach($permissions as $permission)
{{ html()->label(
html()->checkbox('permissions[]', old('permissions') && in_array($permission->name, old('permissions')) ? true : false, $permission->name)
->class('switch-input')
->id('permission-'.$permission->id)
. '')
->class('switch switch-label switch-pill switch-primary mr-2')
->for('permission-'.$permission->id) }}
{{ html()->label(ucwords($permission->name))->for('permission-'.$permission->id) }}
@endforeach
@endif
|