@extends('backend.layouts.app') @section('title') {{ __($module_action) }} {{ __($module_title) }} @endsection @section('breadcrumbs') {{ __($module_title) }} {{ __($module_action) }} @endsection @section('content')
{{ __($module_title) }} {{ __($module_action) }} @lang(":module_name Management Dashboard", ['module_name'=>Str::title($module_name)])
{{ html()->form('POST', route('backend.users.store'))->class('form-horizontal')->open() }} {{ csrf_field() }}
{{ html()->label(__('labels.backend.users.fields.first_name'))->class('col-sm-2 form-control-label')->for('first_name') }}
{{ html()->text('first_name') ->class('form-control') ->placeholder(__('labels.backend.users.fields.first_name')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label(__('labels.backend.users.fields.last_name'))->class('col-sm-2 form-control-label')->for('last_name') }}
{{ html()->text('last_name') ->class('form-control') ->placeholder(__('labels.backend.users.fields.last_name')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label(__('labels.backend.users.fields.email'))->class('col-sm-2 form-control-label')->for('email') }}
{{ html()->email('email') ->class('form-control') ->placeholder(__('labels.backend.users.fields.email')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label(__('labels.backend.users.fields.password'))->class('col-sm-2 form-control-label')->for('password') }}
{{ html()->password('password') ->class('form-control') ->placeholder(__('labels.backend.users.fields.password')) ->required() }}
{{ html()->label(__('labels.backend.users.fields.password_confirmation'))->class('col-sm-2 form-control-label')->for('password_confirmation') }}
{{ html()->password('password_confirmation') ->class('form-control') ->placeholder(__('labels.backend.users.fields.password_confirmation')) ->required() }}
{{ html()->label(__('labels.backend.users.fields.status'))->class('col-6 col-sm-2 form-control-label')->for('status') }}
{{ html()->checkbox('status', true, '1') }} @lang('Active')
{{ html()->label(__('labels.backend.users.fields.confirmed'))->class('col-6 col-sm-2 form-control-label')->for('confirmed') }}
{{ html()->checkbox('confirmed', true, '1') }} @lang('Email Confirmed')
{{ html()->label(__('labels.backend.users.fields.email_credentials'))->class('col-6 col-sm-2 form-control-label')->for('confirmed') }}
{{ html()->checkbox('email_credentials', true, '1') }} @lang('Email Credentials')
{{ html()->label('Abilities')->class('col-sm-2 form-control-label') }}
@lang('Roles')
@if ($roles->count()) @foreach($roles as $role)
{{ html()->label(html()->checkbox('roles[]', old('roles') && in_array($role->name, old('roles')) ? true : false, $role->name)->id('role-'.$role->id) . " " . ucwords($role->name). " (".$role->name.")")->for('role-'.$role->id) }}
@if ($role->id != 1) @if ($role->permissions->count()) @foreach ($role->permissions as $permission)  {{ $permission->name }}  @endforeach @else @lang('None') @endif @else @lang('All Permissions') @endif
@endforeach @endif
@lang('Permissions')
@if ($permissions->count()) @foreach($permissions as $permission)
{{ html()->label(html()->checkbox('permissions[]', old('permissions') && in_array($permission->name, old('permissions')) ? true : false, $permission->name)->id('permission-'.$permission->id) . ' ' . $permission->name)->for('permission-'.$permission->id) }}
@endforeach @endif
{{__('Create')}}
{{ html()->form()->close() }}
@endsection