 21f783f72b
			
		
	
	21f783f72b
	
	
	
		
			
			Fix register page issue Removed dynamicity in statuses Removed dynamic status creation and deletion as system does not perform status change functionality correctly accordingly. The feature will only be available in premium versions. Bug fix in ticket reply from agent panel Bug fixed in assignment from new inbox
		
			
				
	
	
		
			182 lines
		
	
	
		
			14 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			182 lines
		
	
	
		
			14 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('themes.default1.admin.layout.admin')
 | |
| 
 | |
| @section('Tickets')
 | |
| active
 | |
| @stop
 | |
| 
 | |
| @section('status')
 | |
| class="active"
 | |
| @stop
 | |
| 
 | |
| @section('PageHeader')
 | |
| <h1>{!! Lang::get('lang.status_settings') !!}</h1>
 | |
| @stop
 | |
| 
 | |
| @section('breadcrumbs')
 | |
| <ol class="breadcrumb">
 | |
| </ol>
 | |
| @stop
 | |
| 
 | |
| 
 | |
| @section('content')
 | |
| {!! Form::model($status,['route'=>['statuss.update', $status->id],'method'=>'PATCH','files' => true]) !!}
 | |
| <div class="box box-primary">
 | |
|     <div class="box-header with-border">
 | |
|         <h4 class="box-title">{!! Lang::get('lang.edit_details') !!}</h4>
 | |
|     </div><!-- /.box-header -->
 | |
|     <div class="box-body">
 | |
|          @if(Session::has('errors'))
 | |
|         <div class="alert alert-danger alert-dismissable">
 | |
|             <i class="fa 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="fa 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="fa 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="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">
 | |
|                 <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 == "fa fa fa-edit") echo 'selected="selected"' ?> value="fa fa-edit"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-folder-open") echo 'selected="selected"' ?> value="fa fa-folder-open"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-minus-circle") echo 'selected="selected"' ?> value="fa fa-minus-circle"></option>
 | |
|                         <option <?php if ($status->icon_class == "glyphicon glyphicon-alert") echo 'selected="selected"' ?> value="glyphicon glyphicon-alert"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa fa-bars") echo 'selected="selected"' ?> value="fa fa-bars"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-bell-o") echo 'selected="selected"' ?> value="fa fa-bell-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-bookmark-o") echo 'selected="selected"' ?> value="fa fa-bookmark-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-bug") echo 'selected="selected"' ?> value="fa fa-bug"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-bullhorn") echo 'selected="selected"' ?> value="fa fa-bullhorn"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-calendar") echo 'selected="selected"' ?> value="fa fa-calendar"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-cart-plus") echo 'selected="selected"' ?> value="fa fa-cart-plus"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-check") echo 'selected="selected"' ?> value="fa fa-check"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-check-circle") echo 'selected="selected"' ?> value="fa fa-check-circle"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-check-circle-o") echo 'selected="selected"' ?> value="fa fa-check-circle-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-check-square") echo 'selected="selected"' ?> value="fa fa-check-square"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-check-square-o") echo 'selected="selected"' ?> value="fa fa-check-square-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-circle-o-notch") echo 'selected="selected"' ?> value="fa fa-circle-o-notch"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-clock-o") echo 'selected="selected"' ?> value="fa fa-clock-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-close") echo 'selected="selected"' ?> value="fa fa-close"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-code") echo 'selected="selected"' ?> value="fa fa-code"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-hand-paper-o") echo 'selected="selected"' ?> value="fa fa-hand-paper-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-hourglass-half") echo 'selected="selected"' ?> value="fa fa-hourglass-half"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-cog") echo 'selected="selected"' ?> value="fa fa-cog"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-cogs") echo 'selected="selected"' ?> value="fa fa-cogs"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-comment") echo 'selected="selected"' ?> value="fa fa-comment"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-comment-o") echo 'selected="selected"' ?> value="fa fa-comment-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-commenting") echo 'selected="selected"' ?> value="fa fa-commenting"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-commenting-o") echo 'selected="selected"' ?> value="fa fa-commenting-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-comments") echo 'selected="selected"' ?> value="fa fa-comments"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-comments-o") echo 'selected="selected"' ?> value="fa fa-comments-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-edit") echo 'selected="selected"' ?> value="fa fa-edit"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-envelope-o") echo 'selected="selected"' ?> value="fa fa-envelope-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-exchange") echo 'selected="selected"' ?> value="fa fa-exchange"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-exclamation") echo 'selected="selected"' ?> value="fa fa-exclamation"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-exclamation-triangle") echo 'selected="selected"' ?> value="fa fa-exclamation-triangle"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-external-link") echo 'selected="selected"' ?> value="fa fa-external-link"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-eye") echo 'selected="selected"' ?> value="fa fa-eye"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-feed") echo 'selected="selected"' ?> value="fa fa-feed"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-flag-o") echo 'selected="selected"' ?> value="fa fa-flag-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-flash") echo 'selected="selected"' ?> value="fa fa-flash"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-folder-o") echo 'selected="selected"' ?> value="fa fa-folder-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-folder-open-o") echo 'selected="selected"' ?> value="fa fa-folder-open-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-group") echo 'selected="selected"' ?> value="fa fa-group"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-info") echo 'selected="selected"' ?> value="fa fa-info"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-life-ring") echo 'selected="selected"' ?> value="fa fa-life-ring"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-line-chart") echo 'selected="selected"' ?> value="fa fa-line-chart"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-location-arrow") echo 'selected="selected"' ?> value="fa fa-location-arrow"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-lock") echo 'selected="selected"' ?> value="fa fa-lock"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-mail-forward") echo 'selected="selected"' ?> value="fa fa-mail-forward"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-mail-reply") echo 'selected="selected"' ?> value="fa fa-mail-reply"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-mail-reply-all") echo 'selected="selected"' ?> value="fa fa-mail-reply-all"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-times") echo 'selected="selected"' ?> value="fa fa-times"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-trash-o") echo 'selected="selected"' ?> value="fa fa-trash-o"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-user") echo 'selected="selected"' ?> value="fa fa-user"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-user-plus") echo 'selected="selected"' ?> value="fa fa-user-plus"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-user-secret") echo 'selected="selected"' ?> value="fa fa-user-secret"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-user-times") echo 'selected="selected"' ?> value="fa fa-user-times"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-users") echo 'selected="selected"' ?> value="fa fa-users"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-wrench") echo 'selected="selected"' ?> value="fa fa-wrench"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-circle-o-notch") echo 'selected="selected"' ?> value="fa fa-circle-o-notch"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-refresh") echo 'selected="selected"' ?> value="fa fa-refresh"></option>
 | |
|                         <option <?php if ($status->icon_class == "fa fa-spinner") echo 'selected="selected"' ?> value="fa 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-xs-3">
 | |
|                     {!! Form::radio('state','closed',true) !!} {{Lang::get('lang.yes')}}
 | |
|                 </div>
 | |
|                 <div class="col-xs-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-xs-3">
 | |
|                     {!! Form::radio('delete','yes') !!} {{Lang::get('lang.yes')}}
 | |
|                 </div>
 | |
|                 <div class="col-xs-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-xs-3">
 | |
|                     {!! Form::radio('email_user','yes') !!} {{Lang::get('lang.yes')}}
 | |
|                 </div>
 | |
|                 <div class="col-xs-3">
 | |
|                     {!! Form::radio('email_user','no') !!} {{Lang::get('lang.no')}}
 | |
|                 </div>
 | |
|             </div>        
 | |
|         </div>
 | |
|     </div>
 | |
|     <div class="box-footer">
 | |
|         {!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
 | |
|     </div>
 | |
|     {!! Form::close() !!}
 | |
| </div> 
 | |
| @stop
 |