105 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			105 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('themes.default1.admin.layout.admin')
 | |
| 
 | |
| @section('Settings')
 | |
| class="nav-link active"
 | |
| @stop
 | |
| 
 | |
| @section('settings-menu-parent')
 | |
| class="nav-item menu-open"
 | |
| @stop
 | |
| 
 | |
| @section('settings-menu-open')
 | |
| class="nav nav-treeview menu-open"
 | |
| @stop
 | |
| 
 | |
| @section('security')
 | |
| class="nav-link active"
 | |
| @stop
 | |
| 
 | |
| @section('PageHeader')
 | |
| <h1>{!! Lang::get('lang.settings') !!}</h1>
 | |
| @stop
 | |
| 
 | |
| @section('header')
 | |
| @stop
 | |
| 
 | |
| @section('content')
 | |
| @if(Session::has('success'))
 | |
| <div class="alert alert-success alert-dismissable">
 | |
|     <i class="fas fa-check-circle"></i>
 | |
|     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
 | |
|     {!! Session::get('success') !!}
 | |
| </div>
 | |
| @endif
 | |
| @if(Session::has('failed'))
 | |
| <div class="alert alert-danger alert-dismissable">
 | |
|     <i class="fas fa-ban"></i>
 | |
|     <b>{!! Lang::get('lang/alert') !!}!</b>
 | |
|     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
 | |
|     <p>{{Session::get('failed')}}</p>                
 | |
| </div>
 | |
| @endif
 | |
| @if(Session::has('errors'))
 | |
| <div class="alert alert-danger alert-dismissable">
 | |
|     <i class="fas fa-ban"></i>
 | |
|     <b>{!! Lang::get('lang.alert') !!}!</b>
 | |
|     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
 | |
|     <br/>
 | |
|     @if($errors->first('lockout_message'))
 | |
|     <li class="error-message-padding">{!! $errors->first('lockout_message', ':message') !!}</li>
 | |
|     @endif
 | |
|     @if($errors->first('backlist_threshold'))
 | |
|     <li class="error-message-padding">{!! $errors->first('backlist_threshold', ':message') !!}</li>
 | |
|     @endif
 | |
|     @if($errors->first('lockout_period'))
 | |
|     <li class="error-message-padding">{!! $errors->first('lockout_period', ':message') !!}</li>
 | |
|     @endif
 | |
| </div>
 | |
| @endif
 | |
| <div class="card card-light">
 | |
|     <div class="card-header">
 | |
|         <h3 class="card-title">{!! Lang::get('lang.security_settings') !!}</h3>
 | |
|     </div><!-- /.card-header -->
 | |
|     <div class="card-body">
 | |
|         {!! Form::model($security,['route'=>['securitys.update', $security->id],'method'=>'PATCH','files' => true]) !!}
 | |
|         <div class="form-group {{ $errors->has('lockout_message') ? 'has-error' : '' }}">
 | |
|             <div class="row">
 | |
|                 <div class="col-md-3">
 | |
|                     <label for="title">Lockout Message: <span class="text-red"> *</span></label>
 | |
|                 </div>
 | |
|                 <div  class="col-md-9">
 | |
|                     <div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.security_msg1') !!}</div>
 | |
|                     {!! Form::textarea('lockout_message',null,['class'=>'form-control'])!!}
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="form-group {{ $errors->has('backlist_threshold') ? 'has-error' : '' }}">
 | |
|             <div class="row">
 | |
|                 <div class="col-md-3">
 | |
|                     <label for="title">{!! Lang::get('lang.max_attempt') !!}: <span class="text-red"> *</span></label>
 | |
|                 </div>
 | |
|                 <div class="col-md-9">
 | |
|                     <div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.security_msg2') !!}</div>
 | |
|                     <span>{!! Form::text('backlist_threshold',null,['class'=>'form-control'])!!} {!! Lang::get('lang.lockouts') !!}</span>
 | |
|                 </div>     
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="form-group {{ $errors->has('lockout_period') ? 'has-error' : '' }}"> 
 | |
|             <div class="row">
 | |
|                 <div class="col-md-3">
 | |
|                     <label for="title">Lockout Period: <span class="text-red"> *</span></label>
 | |
|                 </div>
 | |
|                 <div class="col-md-8">
 | |
|                     <div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.security_msg3') !!}</div>
 | |
|                     <span> {!! Form::text('lockout_period',null,['class'=>'form-control'])!!} {!! Lang::get('lang.minutes') !!}</span>
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div><!-- /.card-body -->
 | |
|     <div class="card-footer">
 | |
|         <button type="submit" class="btn btn-primary">{!! lang::get('lang.submit') !!}</button>
 | |
|     </div>
 | |
|     {!! Form::close() !!}
 | |
| </div>
 | |
| @stop
 | 
