216 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			216 lines
		
	
	
		
			15 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('themes.default1.admin.layout.admin')
 | |
| 
 | |
| @section('Tickets')
 | |
| class="nav-link active"
 | |
| @stop
 | |
| 
 | |
| @section('ticket-menu-parent')
 | |
| class="nav-item menu-open"
 | |
| @stop
 | |
| 
 | |
| @section('ticket-menu-open')
 | |
| class="nav nav-treeview menu-open"
 | |
| @stop
 | |
| 
 | |
| @section('status')
 | |
| class="nav-link active"
 | |
| @stop
 | |
| 
 | |
| @section('PageHeader')
 | |
| <h1>{!! Lang::get('lang.status_settings') !!}</h1>
 | |
| @stop
 | |
| 
 | |
| @section('breadcrumbs')
 | |
| <ol class="breadcrumb">
 | |
| </ol>
 | |
| @stop
 | |
| 
 | |
| <style type="text/css">
 | |
|     .select2-container--default .select2-selection--single {
 | |
|     border: 1px solid #ced4da !important;
 | |
|     border-radius: 0.25rem !important;
 | |
|     height: 35px !important;
 | |
|     }
 | |
|     .select2-selection__rendered{margin-top: 2px !important;}
 | |
| 
 | |
|     .select2-selection__arrow { top: 5px !important; }
 | |
| </style>
 | |
| 
 | |
| @section('content')
 | |
| {!! Form::model($status,['route'=>['statuss.update', $status->id],'method'=>'PATCH','files' => true]) !!}
 | |
|  @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/>
 | |
|     @foreach ($errors->all() as $error)
 | |
|     <li class="error-message-padding">{{ $error }}</li>
 | |
|     @endforeach 
 | |
| </div>
 | |
| @endif
 | |
| @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
 | |
| 
 | |
| <div class="card card-light">
 | |
|     <div class="card-header">
 | |
|         <h3 class="card-title">{!! Lang::get('lang.edit_details') !!}</h3>
 | |
|     </div><!-- /.box-header -->
 | |
|     <div class="card-body">
 | |
|         <div class="row">
 | |
|             <div class="col-md-4">
 | |
|                 <div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
 | |
|                     <label>{!! Lang::get('lang.name') !!}: <span class="text-red"> *</span></label><br>
 | |
|                     {!! Form::text('name',null,['class'=>'form-control'])!!}
 | |
|                 </div>
 | |
|             </div>
 | |
|             <div class="col-md-4">
 | |
|                 <div class="form-group {{ $errors->has('sort') ? 'has-error' : '' }}">
 | |
|                     <label>{!! Lang::get('lang.display_order') !!}: <span class="text-red"> *</span></label><br>
 | |
|                     <input type="number" name="sort" min="1" class="form-control" value="{!! $status->sort !!}">
 | |
|                 </div>  
 | |
|             </div>
 | |
|             <div class="col-md-2" id="ticket-status-icon-container">
 | |
|                 <div class="form-group {{ $errors->has('icon_class') ? 'has-error' : '' }}">
 | |
|                     <i class=></i>
 | |
|                     <label>{!! Lang::get('lang.icon_class') !!}: <span class="text-red"> *</span></label><br>
 | |
|                     <select class="form-control icons"  name="icon_class" style="font-family: 'FontAwesome', sans-serif;" required>
 | |
|                          <option <?php if ($status->icon_class == "fas fa-edit") echo 'selected="selected"' ?> value="fas fa-edit"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-folder-open") echo 'selected="selected"' ?> value="fas fa-folder-open"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-minus-circle") echo 'selected="selected"' ?> value="fas fa-minus-circle"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-exclamation-triangle") echo 'selected="selected"' ?> value="fas fa-exclamation-triangle"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-bars") echo 'selected="selected"' ?> value="fas fa-bars"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-bell") echo 'selected="selected"' ?> value="fas fa-bell"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-bookmark") echo 'selected="selected"' ?> value="fas fa-bookmark"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-bug") echo 'selected="selected"' ?> value="fas fa-bug"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-bullhorn") echo 'selected="selected"' ?> value="fas fa-bullhorn"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-calendar") echo 'selected="selected"' ?> value="fas fa-calendar"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-cart-plus") echo 'selected="selected"' ?> value="fas fa-cart-plus"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-check") echo 'selected="selected"' ?> value="fas fa-check"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-check-circle") echo 'selected="selected"' ?> value="far fa-check-circle"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-check-circle") echo 'selected="selected"' ?> value="fas fa-check-circle"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-check-square") echo 'selected="selected"' ?> value="far fa-check-square"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-check-square") echo 'selected="selected"' ?> value="fas fa-check-square"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-circle-notch") echo 'selected="selected"' ?> value="fas fa-circle-notch"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-clock") echo 'selected="selected"' ?> value="fas fa-clock"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-times") echo 'selected="selected"' ?> value="fas fa-times"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-code") echo 'selected="selected"' ?> value="fas fa-code"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-hand-paper") echo 'selected="selected"' ?> value="far fa-hand-paper"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-hourglass-half") echo 'selected="selected"' ?> value="fas fa-hourglass-half"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-cog") echo 'selected="selected"' ?> value="fas fa-cog"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-cogs") echo 'selected="selected"' ?> value="fas fa-cogs"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-comment") echo 'selected="selected"' ?> value="far fa-comment"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-comment") echo 'selected="selected"' ?> value="fas fa-comment"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-comment-dots") echo 'selected="selected"' ?> value="far fa-comment-dots"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-comment-dots") echo 'selected="selected"' ?> value="fas fa-comment-dots"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-comments") echo 'selected="selected"' ?> value="far fa-comments"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-comments") echo 'selected="selected"' ?> value="fas fa-comments"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-edit") echo 'selected="selected"' ?> value="fas fa-edit"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-envelope") echo 'selected="selected"' ?> value="far fa-envelope"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-exchange-alt") echo 'selected="selected"' ?> value="fas fa-exchange-alt"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-exclamation") echo 'selected="selected"' ?> value="fas fa-exclamation"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-exclamation-triangle") echo 'selected="selected"' ?> value="fas fa-exclamation-triangle"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-external-link-alt") echo 'selected="selected"' ?> value="fas fa-external-link-alt"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-eye") echo 'selected="selected"' ?> value="fas fa-eye"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-rss") echo 'selected="selected"' ?> value="fas fa-rss"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-flag") echo 'selected="selected"' ?> value="far fa-flag"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-bolt") echo 'selected="selected"' ?> value="fas fa-bolt"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-folder") echo 'selected="selected"' ?> value="far fa-folder"></option>
 | |
|                         <option <?php if ($status->icon_class == "far fa-folder-open") echo 'selected="selected"' ?> value="far fa-folder-open"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-users") echo 'selected="selected"' ?> value="fas fa-users"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-info") echo 'selected="selected"' ?> value="fas fa-info"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-life-ring") echo 'selected="selected"' ?> value="fas fa-life-ring"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-chart-line") echo 'selected="selected"' ?> value="fas fa-chart-line"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-location-arrow") echo 'selected="selected"' ?> value="fas fa-location-arrow"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-lock") echo 'selected="selected"' ?> value="fas fa-lock"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-share") echo 'selected="selected"' ?> value="fas fa-share"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-reply") echo 'selected="selected"' ?> value="fas fa-reply"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-reply-all") echo 'selected="selected"' ?> value="fas fa-reply-all"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-times") echo 'selected="selected"' ?> value="fas fa-times"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-trash") echo 'selected="selected"' ?> value="fas fa-trash"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-user") echo 'selected="selected"' ?> value="fas fa-user"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-user-plus") echo 'selected="selected"' ?> value="fas fa-user-plus"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-user-secret") echo 'selected="selected"' ?> value="fas fa-user-secret"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-user-times") echo 'selected="selected"' ?> value="fas fa-user-times"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-users") echo 'selected="selected"' ?> value="fas fa-users"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-wrench") echo 'selected="selected"' ?> value="fas fa-wrench"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-circle-notch") echo 'selected="selected"' ?> value="fas fa-circle-notch"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-sync") echo 'selected="selected"' ?> value="fas fa-sync"></option>
 | |
|                         <option <?php if ($status->icon_class == "fas fa-spinner") echo 'selected="selected"' ?> value="fas fa-spinner"></option>
 | |
|                     </select>
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="form-group">
 | |
|             <!-- gender -->
 | |
|             {!! Form::label('gender',Lang::get('lang.resolved_status')) !!}
 | |
|             <div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg3') !!}</div>
 | |
|             <div class="row">
 | |
|                 <div class="col-sm-3">
 | |
|                     {!! Form::radio('state','closed',true) !!} {{Lang::get('lang.yes')}}
 | |
|                 </div>
 | |
|                 <div class="col-sm-3">
 | |
|                     {!! Form::radio('state','open') !!} {{Lang::get('lang.no')}}
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="form-group">
 | |
|             <!-- Email user -->
 | |
|             {!! Form::label('gender',Lang::get('lang.deleted_status')) !!}
 | |
|             <div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg2') !!}</div>
 | |
|             <div class="row">
 | |
|                 <div class="col-sm-3">
 | |
|                     {!! Form::radio('delete','yes') !!} {{Lang::get('lang.yes')}}
 | |
|                 </div>
 | |
|                 <div class="col-sm-3">
 | |
|                     {!! Form::radio('delete','no') !!} {{Lang::get('lang.no')}}
 | |
|                 </div>
 | |
|             </div>        
 | |
|         </div>
 | |
|         <div class="form-group">
 | |
|             <!-- gender -->
 | |
|             {!! Form::label('gender',Lang::get('lang.notify_user')) !!}
 | |
|             <div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg1') !!}</div>
 | |
|             <div class="row">
 | |
|                 <div class="col-sm-3">
 | |
|                     {!! Form::radio('email_user','yes') !!} {{Lang::get('lang.yes')}}
 | |
|                 </div>
 | |
|                 <div class="col-sm-3">
 | |
|                     {!! Form::radio('email_user','no') !!} {{Lang::get('lang.no')}}
 | |
|                 </div>
 | |
|             </div>        
 | |
|         </div>
 | |
|     </div>
 | |
|     <div class="card-footer">
 | |
|         {!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
 | |
|     </div>
 | |
|     {!! Form::close() !!}
 | |
| </div> 
 | |
| <script src="{{asset("lb-faveo/plugins/select2/select2.full.min.js")}}" type="text/javascript"></script>
 | |
| <script type="text/javascript">
 | |
|     function format(option){
 | |
|     var icon = $(option.element).attr('value');
 | |
|         return '<i class="'+icon+'" ></i> ';
 | |
|     }
 | |
|     $('.icons').select2({
 | |
|             templateResult: format,
 | |
|             templateSelection: format,
 | |
|             escapeMarkup: function (m) {
 | |
|                                         return m;
 | |
|                                         }
 | |
|     })
 | |
| </script>
 | |
| @stop
 | 
