178 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			178 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('themes.default1.admin.layout.admin')
 | |
| 
 | |
| @section('Manage')
 | |
| class="active"
 | |
| @stop
 | |
| 
 | |
| @section('manage-bar')
 | |
| active
 | |
| @stop
 | |
| 
 | |
| @section('help')
 | |
| class="active"
 | |
| @stop
 | |
| 
 | |
| @section('HeadInclude')
 | |
| @stop
 | |
| <!-- header -->
 | |
| @section('PageHeader')
 | |
| 
 | |
| @stop
 | |
| <!-- /header -->
 | |
| <!-- breadcrumbs -->
 | |
| @section('breadcrumbs')
 | |
| <ol class="breadcrumb">
 | |
| 
 | |
| </ol>
 | |
| @stop
 | |
| <!-- /breadcrumbs -->
 | |
| <!-- content -->
 | |
| @section('content')
 | |
| 
 | |
| <!-- open a form -->
 | |
| 
 | |
| 	{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
 | |
| 
 | |
| 	<div class="row">
 | |
| 		<div class="col-md-12">
 | |
| 			<div class="box box-primary">
 | |
|                <div class="box-body">
 | |
| 
 | |
|                       <div class="form-group">
 | |
|                        <div class="box-header">
 | |
|                             <h2 class="box-title">{{Lang::get('lang.create')}}</h2><div class="pull-right">
 | |
|                             {!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
 | |
|                             </div>
 | |
|                             </div>
 | |
| 	 <div class="box-body table-responsive no-padding" style="overflow:hidden">
 | |
| 
 | |
|                           <!-- status radio: required: Active|Dissable -->
 | |
|                           <div class="row">
 | |
|                <div class="col-md-6">
 | |
| 		<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('ticket_status',Lang::get('lang.status')) !!}  
 | |
| 			{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!! Form::radio('ticket_status','1',true) !!} {{Lang::get('lang.active')}}   
 | |
| 			{!! Form::radio('ticket_status','0') !!} {{Lang::get('lang.disabled')}}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 
 | |
| <!-- Type : Radio : required : Public|private -->
 | |
|             <div class="col-md-6">
 | |
| 		<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('type',Lang::get('lang.type')) !!}  
 | |
| 			{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}   
 | |
| 			{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
 | |
| 		</div>
 | |
| 		</div>
 | |
| <!-- Topic text form Required -->
 | |
|           <div class="col-md-6">
 | |
| 		<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('topic',Lang::get('lang.topic')) !!}
 | |
| 			{!! $errors->first('topic', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!! Form::text('topic',null,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 		        <!-- Parent Topic: Drop down: value from helptopic table -->
 | |
|               <div class="col-md-6">
 | |
| 		<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
 | |
| 			{!! $errors->first('parent_topic', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!!Form::select('parent_topic', [''=>'Select a Parent Topic','Help Topics'=>$topics->lists('topic','topic')],1,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 
 | |
| 
 | |
| <!-- Custom Form: Drop down: value from form table -->
 | |
|            <div class="col-md-6">
 | |
| 		<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('custom_form',Lang::get('lang.custom')) !!}
 | |
| 			{!! $errors->first('custom_form', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!!Form::select('custom_form', [''=>'Select a Form','Custom Forms'=>$forms->lists('formname','id')],1,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 
 | |
| 
 | |
| <!-- Department:	Drop down: value Department form table -->
 | |
|             <div class="col-md-6">
 | |
| 		<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('department',Lang::get('lang.department')) !!}
 | |
| 			{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!!Form::select('department', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],1,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| </div>
 | |
| 
 | |
| <!-- Priority:	Drop down: value from Priority  table -->
 | |
|           <div class="row">
 | |
|              <div class="col-md-4">
 | |
| 		<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('priority',Lang::get('lang.priority')) !!}
 | |
| 			{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!!Form::select('priority', [''=>'Select a Proirity','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 
 | |
| 
 | |
| <!-- SLA Plan:	 Drop down: value SLA Plan  table-->
 | |
|              <div class="col-md-4">
 | |
| 		<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
 | |
| 			{!! $errors->first('sla_plan', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!!Form::select('sla_plan', [''=>'Select a SLA Plan','SLA Plans'=>$slas->lists('name','id')],1,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 
 | |
| 
 | |
| <!-- Auto-assign To:	Drop Down: value  from Agent table   -->
 | |
|           <div class="col-md-4">
 | |
| 		<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
 | |
| 
 | |
| 			{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
 | |
| 			{!! $errors->first('auto_assign', '<spam class="help-block">:message</spam>') !!}
 | |
| 			{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('user_name','id')],null,['class' => 'form-control']) !!}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 		</div>
 | |
| 
 | |
| 
 | |
| <!-- Auto-response:	checkbox : Disable new ticket auto-response  -->
 | |
|           <div class="row">
 | |
| 
 | |
| <!-- intrnal Notes : Textarea :  -->
 | |
| <div class="col-md-12">
 | |
| 		<div class="form-group">
 | |
| 
 | |
| 			{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
 | |
| 			{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
 | |
| 		</div>
 | |
| 		</div>
 | |
| 		</div>
 | |
| 
 | |
| <!-- Submit button -->
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| </div>
 | |
| </div>
 | |
| </div>
 | |
| </div>
 | |
| </div>
 | |
| </div>
 | |
| 
 | |
| <!-- close form -->
 | |
| 
 | |
| {!! Form::close() !!}
 | |
| 
 | |
| @stop
 | 
