update v 1.0.7.5
This commit is contained in:
@@ -16,162 +16,147 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.help_topic') !!}</h1>
|
||||
@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('status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</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_form')) !!}
|
||||
{!! $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>
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.create')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('type'))
|
||||
<li class="error-message-padding">{!! $errors->first('type', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('parent_topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('parent_topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('custom_form'))
|
||||
<li class="error-message-padding">{!! $errors->first('custom_form', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('department'))
|
||||
<li class="error-message-padding">{!! $errors->first('department', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('priority'))
|
||||
<li class="error-message-padding">{!! $errors->first('priority', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla_plan'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla_plan', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('auto_assign'))
|
||||
<li class="error-message-padding">{!! $errors->first('auto_assign', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group">
|
||||
<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')) !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</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')) !!}
|
||||
{!! 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')) !!} <span class="text-red"> *</span>
|
||||
{!! 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')) !!}
|
||||
{!!Form::select('parent_topic', [''=>Lang::get('lang.select_a_parent_topic'),Lang::get('lang.help_topic')=>$topics->lists('topic','topic')->toArray()],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_form')) !!}
|
||||
{!!Form::select('custom_form', [''=>Lang::get('lang.select_a_form'),Lang::get('lang.custom_form')=>$forms->lists('formname','id')->toArray()],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')) !!}
|
||||
{!!Form::select('department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],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')) !!} <span class="text-red"> *</span>
|
||||
{!!Form::select('priority', [''=>Lang::get('lang.select_a_priority'),Lang::get('lang.priorities')=>$priority->lists('priority_desc','priority_id')->toArray()],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')) !!}
|
||||
{!!Form::select('sla_plan', [''=>Lang::get('lang.select_a_sla_plan'),Lang::get('lang.sla_plans')=>$slas->lists('name','id')->toArray()],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')) !!}
|
||||
{!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('first_name','id')->toArray()],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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</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('first_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
|
||||
|
@@ -16,143 +16,148 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.help_topic') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($topics,['url' => 'helptopic/'.$topics->id, 'method' => 'PATCH']) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2><div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
{!! Form::model($topics,['url' => 'helptopic/'.$topics->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.edit')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('type'))
|
||||
<li class="error-message-padding">{!! $errors->first('type', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('parent_topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('parent_topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('custom_form'))
|
||||
<li class="error-message-padding">{!! $errors->first('custom_form', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('department'))
|
||||
<li class="error-message-padding">{!! $errors->first('department', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('priority'))
|
||||
<li class="error-message-padding">{!! $errors->first('priority', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla_plan'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla_plan', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('auto_assign'))
|
||||
<li class="error-message-padding">{!! $errors->first('auto_assign', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- 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('status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</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','id')],null,['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_form')) !!}
|
||||
{!! $errors->first('custom_form', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('custom_form', [''=>'Select a Form','Custom Forms'=>$forms->lists('formname','id')],null,['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')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</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')) !!}
|
||||
{!! 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')) !!} <span class="text-red"> *</span>
|
||||
{!! 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')) !!}
|
||||
{!!Form::select('parent_topic', [''=>Lang::get('lang.select_a_parent_topic'),Lang::get('lang.help_topic')=>$topics->lists('topic','id')->toArray()],null,['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_form')) !!}
|
||||
{!!Form::select('custom_form', [''=>Lang::get('lang.select_a_form'),Lang::get('lang.custom_form')=>$forms->lists('formname','id')->toArray()],null,['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')) !!}
|
||||
{!!Form::select('department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['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')) !!} <span class="text-red"> *</span>
|
||||
{!!Form::select('priority', [''=>Lang::get('lang.select_a_priority'),Lang::get('lang.priorities')=>$priority->lists('priority_desc','priority_id')->toArray()],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')) !!}
|
||||
{!!Form::select('sla_plan', [''=>Lang::get('lang.select_a_sla_plan'),Lang::get('lang.sla_plans')=>$slas->lists('name','id')->toArray()],null,['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')) !!}
|
||||
{!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<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>
|
||||
<!-- Submit button -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="sys_help_tpoic" @if($sys_help_topic->help_topic == $topics->id) checked disabled @endif> {{ Lang::get('lang.make-default-helptopic')}}
|
||||
</div>
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</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')) !!}
|
||||
{!!Form::select('priority', [''=>'Select a Proirity','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
</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')) !!}
|
||||
|
||||
{!!Form::select('sla_plan', [''=>'Select a SLA Plan','SLA Plans'=>$slas->lists('name','id')],null,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('sla_plan', '<spam class="help-block">:message</spam>') !!}
|
||||
</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('first_name','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<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>
|
||||
|
||||
<!-- Submit button -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- close form -->
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
@stop
|
||||
@stop
|
@@ -28,124 +28,111 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="form-group">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.help_topic')}}</h2><a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_help_topic')}}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.help_topic')}}</h3>
|
||||
<a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_help_topic')}}</a>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
<div class="box-body table-responsive">
|
||||
<!-- check whether success or not -->
|
||||
@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
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<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>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-bordered dataTable">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.topic')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.status')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.type')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.priority')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.department')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<?php
|
||||
$default_helptopic = App\Model\helpdesk\Settings\Ticket::where('id', '=', '1')->first();
|
||||
$default_helptopic = $default_helptopic->help_topic;
|
||||
?>
|
||||
<!-- Foreach @var$topics as @var topic -->
|
||||
@foreach($topics as $topic)
|
||||
<tr style="padding-bottom:-30px">
|
||||
<!-- topic Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('helptopic.edit',$topic->id)}}">{!! $topic->topic !!}
|
||||
@if($topic->id == $default_helptopic)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
|
||||
<!-- topic Status : if status==1 active -->
|
||||
<td>
|
||||
@if($topic->status=='1')
|
||||
<span style="color:green">{!! Lang::get('lang.active') !!}</span>
|
||||
@else
|
||||
<span style="color:red">{!! Lang::get('lang.disable') !!}</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Type -->
|
||||
|
||||
<td>
|
||||
@if($topic->type=='1')
|
||||
<span style="color:green">{!! Lang::get('lang.public') !!}</span>
|
||||
@else
|
||||
<span style="color:red">{!! Lang::get('lang.private') !!}</span>
|
||||
@endif
|
||||
</td>
|
||||
<!-- Priority -->
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $topic->priority)->first(); ?>
|
||||
<td>{!! $priority->priority_desc !!}</td>
|
||||
<!-- Department -->
|
||||
@if($topic->department != null)
|
||||
<?php
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first();
|
||||
$dept = $dept->name;
|
||||
?>
|
||||
@elseif($topic->department == null)
|
||||
<?php $dept = ""; ?>
|
||||
@endif
|
||||
<td> {!! $dept !!} </td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($topic->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('helptopic.edit',$topic->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> '.Lang::get('lang.delete'),
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.topic')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.status')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.type')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.priority')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.department')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$default_helptopic = App\Model\helpdesk\Settings\Ticket::where('id','=','1')->first();
|
||||
$default_helptopic = $default_helptopic->help_topic;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Foreach @var$topics as @var topic -->
|
||||
@foreach($topics as $topic)
|
||||
<tr style="padding-bottom:-30px">
|
||||
|
||||
<!-- topic Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('helptopic.edit',$topic->id)}}">{!! $topic->topic !!}
|
||||
@if($topic->id == $default_helptopic)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
|
||||
<!-- topic Status : if status==1 active -->
|
||||
<td>
|
||||
@if($topic->status=='1')
|
||||
<span style="color:green">Active</span>
|
||||
@else
|
||||
<span style="color:red">Disable</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Type -->
|
||||
|
||||
<td>
|
||||
@if($topic->type=='1')
|
||||
<span style="color:green">Public</span>
|
||||
@else
|
||||
<span style="color:red">Private</span>
|
||||
@endif
|
||||
</td>
|
||||
<!-- Priority -->
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$topic->priority)->first(); ?>
|
||||
<td>{!! $priority->priority_desc !!}</td>
|
||||
<!-- Department -->
|
||||
@if($topic->department != null)
|
||||
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first();
|
||||
$dept = $dept->name; ?>
|
||||
@elseif($topic->department == null)
|
||||
<?php $dept = ""; ?>
|
||||
@endif
|
||||
<td> {!! $dept !!} </td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($topic->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('helptopic.edit',$topic->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> Edit</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@stop
|
Reference in New Issue
Block a user