update for version 1.0.1

This commit is contained in:
sujitprasad
2015-10-23 14:15:29 +05:30
parent 82b878e93b
commit 3d425dc380
8348 changed files with 10020 additions and 4171 deletions

View File

@@ -0,0 +1,113 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('form')
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\FormController@store','method' => 'post']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- title: text -->
<div class="box-body table-responsive no-padding"style="overflow:hidden">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head Label -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
{!! Form::label('label',Lang::get('lang.label')) !!}
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('label',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head type -->
<div class="col-md-4">
<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::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head Vissibility -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head variable -->
<div class="col-md-4">
<div class="form-group">
{!! Form::label('variable',Lang::get('lang.variable')) !!}
{!! Form::text('variable',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- instruction: textarea -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
<!-- /table -->
<!-- txt area -->
<div class="col-md-6">
<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>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,112 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('form')
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::model($forms,['url' => 'form/'.$forms->id,'method' => 'PATCH']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- title: text -->
<div class="box-body table-responsive no-padding"style="overflow:hidden">
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!}
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head Label -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
{!! Form::label('label',Lang::get('lang.label')) !!}
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('label',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- declare table head type -->
<div class="col-md-4">
<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::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head Vissibility -->
<div class="col-md-4">
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
</div>
</div>
<!-- declare table head variable -->
<div class="col-md-4">
<div class="form-group">
{!! Form::label('variable',Lang::get('lang.variable')) !!}
{!! Form::text('variable',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- instruction: textarea -->
<div class="col-md-6">
<div class="form-group">
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
</div>
</div>
<!-- /table -->
<!-- txt area -->
<div class="col-md-6">
<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>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,145 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('forms')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
@if(Session::has('fails'))
<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">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- -->
<div class="box">
<div class="box-header">
<h3 class="box-title">Instructions</h3>
<div class="callout callout-default" style="font-style: oblique;">Select field type you want to add to the form below and click on 'Type' dropdown. Don't forget to set field options if type is select,checkbox or radio..Separate each option by a coma. After you finish creating the form, you can save the form by clicking Save Form button.</div>
</div>
<hr style="margin-top:0px;margin-bottom:0px;">
<div class="box-header">
<h3 class="box-title">Form Properties</h3>
</div>
{!! Form::open(['route'=>'forms.store']) !!}
<div class="form-group">
<div class="row">
<div class="col-md-4">
</div></div></div>
<div class="form-group">
<div class="row" style="margin-top: 10px;">
<div class="col-md-4">
<h4 style="text-align: center">Form Name:</h4>
</div>
<div class="col-md-4">
<input type="text" name="formname" class="form-control">
</div>
</div></div>
<hr style="margin-top:0px;margin-bottom:0px;">
<div class="form-group">
<div class="box-header">
<h3 class="box-title">Adding Fields</h3>
</div>
<div class="callout callout-default col-md-4"> Click <b>'Add Fields'</b> button to add Fields</div>
<div class="col-md-4">
<button type="button" class="btn btn-primary addField" value="Show Div" onclick="showDiv()" ><i class="fa fa-plus"></i>&nbsp; Add Fields</button>
</div>
<div class="row">
</div>
<hr>
<div class="box-body" id="welcomeDiv" style="display:none;">
<table id="example2" class="table table-bordered table-striped">
<thead>
<th>Label</th>
<th>Name</th>
<th>Type</th>
<th>Values(Selected Fields)</th>
<th>Required</th>
<th>Action</th>
</thead>
<tbody class="inputField">
<tr></tr>
</tbody>
</table>
</div>
<div class="box-footer">
<input type="submit" class="btn btn-primary" value="Save Form">
</div>
{!! Form::close() !!}
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
function showDiv() {
document.getElementById('welcomeDiv').style.display = "block";
}
$(document).ready(function() {
var max_fields = 10;
var wrapper = $(".inputField");
var add_button = $(".addField");
var x = 1;
$(add_button).click(function(e)
{
e.preventDefault();
if(x < max_fields){
x++;
$(wrapper).append('<tr><td><input type="text" name="label[]"></td><td><input type="text" name="name[]"></td><td><select name="type[]"><option>text</option><option>email</option><option>password</option><option>textarea</option><option>select</option><option>radio</option><option>checkbox</option><option>submit</option></select></td><td><textarea name="value[]"></textarea></td><td>Yes&nbsp;&nbsp;<input type=radio name="required['+x+'][]" value=1 checked>&nbsp;&nbsp;No&nbsp;&nbsp;<input type=radio name="required['+x+'][]" value=0></td><td><button type="button" class="remove_field btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp Remove</button></td></tr>');
}
});
$(wrapper).on("click",".remove_field", function(e)
{
e.preventDefault(); $(this).closest('tr').remove(); x--;
});
});
</script>
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,104 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('forms')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- -->
<div class="box">
<div class="box-header">
<div class="box-title">
Forms
</div>
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">Create Form</button></a>
</div>
<div class="box-body">
<table id="example2" class="table table-bordered table-striped">
<thead>
<tr>
<th>Form Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$forms =App\Model\helpdesk\Form\Forms::all();
?>
@foreach($forms as $form)
<tr>
<td>{!! $form->formname !!}</td>
<td>{!! link_to_route('forms.show','View This Form',[$form->id],['id'=>'View','class'=>'btn btn-primary btn-sm']) !!}
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$form->id}}delete">Delete Form</button>
<div class="modal fade" id="{{$form->id}}delete">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Delete</h4>
</div>
<div class="modal-body">
<p>Are you sure you want to Delete ?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
{!! link_to_route('forms.delete','Delete',[$form->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
</div>
</div>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@stop
<!-- /content -->

View File

@@ -0,0 +1,90 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('forms')
class="active"
@stop
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
@if(Session::has('fails'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Fail.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<!-- -->
<div class="box">
<div class="box-header">
<?php $id = App\Model\helpdesk\Form\Forms::where('id',$id)->first(); ?>
<h3 class="box-title">Form Name : {!! $id->formname !!}</h3>
</div>
<div class="box-body">
<?php
$i=$id->id;
$values = App\Model\helpdesk\Form\Fields::where('forms_id', '=', $i)->get();
foreach($values as $value) {
if($value->type == "select") {
$data = $value->value;
$value = explode(',', $data);
echo '<select class="form-control">';
foreach($value as $option) {
echo '<option>'.$option.'</option>';
}
echo '</select></br></br>';
} elseif ($value->type == "radio" ) {
$type2 = $value->value;
$val = explode(',', $type2);
echo '<label class="radio-inline">'.$value->label.'</label>&nbsp&nbsp&nbsp<input type="'.$value->type.'" name="'.$value->name.'">&nbsp;&nbsp;'.$val[0].'
&nbsp&nbsp&nbsp<input type="'.$value->type.'" name="'.$value->name.'">&nbsp;&nbsp;'.$val[1].'</br></br>';
} elseif($value->type == "textarea" ) {
$type3 = $value->value;
$v = explode(',', $type3);
echo '<label>'.$value->label.'</label></br><textarea rows="'.$v[0].'" cols="'.$v[1].'"></textarea></br></br>';
} elseif($value->type == "checkbox" ) {
$type4 = $value->value;
$check = explode(',', $type4);
echo '<label class="radio-inline">'.$value->label.'&nbsp&nbsp&nbsp<input type="'.$value->type.'" name="'.$value->name.'">&nbsp&nbsp'.$check[0].'</label>
<label class="radio-inline"><input type="'.$value->type.'" name="'.$value->name.'">&nbsp&nbsp'.$check[1].'</label></br></br>';
} else {
echo '<label>'.$value->label.'</label><input type="'.$value->type.'" class="form-control" name="'.$value->name.'" /></br></br>';
}
}
?>
</div>
</div>
@stop

View File

@@ -0,0 +1,183 @@
@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')) !!}&nbsp;&nbsp;
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;&nbsp;
{!! 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')) !!}&nbsp;&nbsp;
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}&nbsp;&nbsp;&nbsp;
{!! 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','name')],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','name')],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','user_name')],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
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,163 @@
@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::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>
<div class="box-body">
<!-- 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')) !!}&nbsp;&nbsp;
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;&nbsp;
{!! 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')) !!}&nbsp;&nbsp;
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}&nbsp;&nbsp;&nbsp;
{!! 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,['disabled'=>'disabled','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')) !!}
{!! $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>
<!-- 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')],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')) !!}
{!! $errors->first('auto_assign', '<spam class="help-block">:message</spam>') !!}
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('user_name','user_name')],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
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,142 @@
@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')
<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 no-padding">
<!-- 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">&times;</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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" 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>
<!-- 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 !!}</a></td>
<!-- topic Status : if status==1 active -->
<td>
@if($topic->ticket_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 -->
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first(); ?>
<td>{!! $dept->name !!}</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',
'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
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,110 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('sla')
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\SlaController@store', 'method' => 'post']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- Name text form Required -->
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Grace Period text form Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
{!! $errors->first('grace_period', '<spam class="help-block">:message</spam>') !!}
{!! Form::select('grace_period',['10'=>'10 Hours','15'=>'15 Hours','20'=>'20 hours','24'=>'One Day'],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- status radio: required: Active|Dissable -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.status')) !!}&nbsp;
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- Admin Note : Textarea : -->
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- close form -->
{!! Form::close() !!}
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,110 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('sla')
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::model($slas,['url' => 'sla/'.$slas->id, 'method' => 'PATCH']) !!}
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
<!-- Name text form Required -->
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
<div class="row">
<div class="col-md-6">
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{!! Form::label('name',Lang::get('lang.name')) !!}
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('name',null,['class' => 'form-control']) !!}
</div>
</div>
<!-- Grace Period text form Required -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
{!! $errors->first('grace_period', '<spam class="help-block">:message</spam>') !!}
{!! Form::select('grace_period',['10'=>'10 Hours','15'=>'15 Hours','20'=>'20 hours','24'=>'One Day'],null,['class' => 'form-control']) !!}
</div>
</div>
<!-- status radio: required: Active|Dissable -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.status')) !!}&nbsp;
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}&nbsp;&nbsp;
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
</div>
</div>
</div>
<!-- Admin Note : Textarea : -->
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- close form -->
{!! Form::close() !!}
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,121 @@
@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="active"
@stop
@section('manage-bar')
active
@stop
@section('sla')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{Lang::get('lang.SLA_plan')}}</h2><a href="{{route('sla.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_SLA')}}</a></div>
<div class="box-body table-responsive no-padding">
<!-- 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">&times;</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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<table class="table table-hover" style="overflow:hidden;">
<tr>
<th width="100px">{{Lang::get('lang.name')}}</th>
<th width="100px">{{Lang::get('lang.status')}}</th>
<th width="100px">{{Lang::get('lang.grace_period')}}</th>
<th width="100px">{{Lang::get('lang.created')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">{{Lang::get('lang.action')}}</th>
</tr>
<!-- Foreach @var$slas as @var sla -->
@foreach($slas as $sla)
<tr>
<!-- sla Name with Link to Edit page along Id -->
<td><a href="{{route('sla.edit',$sla->id)}}">{!! $sla->name !!}</a></td>
<!-- sla Status : if status==1 active -->
<td>
@if($sla->status=='1')
<span style="color:green">Active</span>
@else
<span style="color:red">Disable</span>
@endif
</td>
<!-- To show the sla's Time Period -->
<td>{!! $sla->grace_period !!}</td>
<!-- Created Date -->
<td>{!! UTC::usertimezone($sla->created_at) !!}</td>
<!-- Last Updated -->
<td> {!! UTC::usertimezone($sla->updated_at) !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['sla.destroy', $sla->id],'method'=>'DELETE']) !!}
<a href="{{route('sla.edit',$sla->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" 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',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
@endforeach
</tr>
<!-- Set a link to Create Page -->
</table>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->