Initial code of commit

This commit is contained in:
sujitprasad
2015-05-01 13:33:56 +05:30
parent 16ea6e1984
commit ef834c58dc
1332 changed files with 141189 additions and 0 deletions

View File

@@ -0,0 +1,113 @@
@extends('themes.default1.layouts.blank')
@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\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.layouts.blank')
@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,120 @@
@extends('themes.default1.layouts.blank')
@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')
<div class="row">
<div class="col-xs-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.forms')}}</h2><a href="{{route('form.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_form')}}</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.Custom_form')}}</th>
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
<th width="100px">Action</th>
</tr>
<!-- Foreach @var$forms as @var form -->
@foreach($forms as $form)
<tr>
<!-- form Name with Link to Edit page along Id -->
<td><a href="{{route('form.edit',$form->id)}}">{!! $form->title !!}</a></td>
<!-- Last Updated -->
<td> {!! $form->updated_at !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['form.destroy', $form->id],'method'=>'DELETE']) !!}
<div class="form-group">
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-star"></i> Delete',
['type' => 'submit',
'class'=> 'actions-line icon-trash',
'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>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->

View File

@@ -0,0 +1,207 @@
@extends('themes.default1.layouts.blank')
@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\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('name','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','name')],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('name','name')],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 a 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-6">
<div class="form-group {{ $errors->has('auto_response') ? 'has-error' : '' }}">
{!! Form::label('auto_response',Lang::get('lang.auto_response')) !!}&nbsp;
{!! $errors->first('auto_response', '<spam class="help-block">:message</spam>') !!}
{!! Form::checkbox('auto_response',1,true) !!}
</div>
</div>
<!-- Ticket Number Format: radio: System Default | Custom -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('ticket_num_format') ? 'has-error' : '' }}">
{!! Form::label('ticket_num_format',Lang::get('lang.ticket_number_format')) !!}&nbsp;
{!! $errors->first('ticket_num_format', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('ticket_num_format','1',true) !!}System Default&nbsp;&nbsp;&nbsp;
{!! Form::radio('ticket_num_format','0') !!}Custom
</div>
</div>
<!-- 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,207 @@
@extends('themes.default1.layouts.blank')
@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="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.edit')}}</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,['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','topic')],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('name','name')],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','name')],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('name','name')],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')],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-6">
<div class="form-group {{ $errors->has('auto_response') ? 'has-error' : '' }}">
{!! Form::label('auto_response',Lang::get('lang.auto_response')) !!}&nbsp;
{!! $errors->first('auto_response', '<spam class="help-block">:message</spam>') !!}
{!! Form::checkbox('auto_response',1,true) !!}
</div>
</div>
<!-- Ticket Number Format: radio: System Default | Custom -->
<div class="col-md-6">
<div class="form-group {{ $errors->has('ticket_num_format') ? 'has-error' : '' }}">
{!! Form::label('ticket_num_format',Lang::get('lang.ticket_number_format')) !!}&nbsp;
{!! $errors->first('ticket_num_format', '<spam class="help-block">:message</spam>') !!}
{!! Form::radio('ticket_num_format','1',true) !!}System Default&nbsp;&nbsp;&nbsp;
{!! Form::radio('ticket_num_format','0') !!}Custom
</div>
</div>
<!-- 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,149 @@
@extends('themes.default1.layouts.blank')
@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="row">
<div class="col-xs-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.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')
<p style="color:green">Active</p>
@else
<p style="color:red">Disable</p>
@endif
</td>
<!-- Type -->
<td>
@if($topic->type=='1')
<p style="color:green">Public</p>
@else
<p style="color:red">Private</p>
@endif
</td>
<!-- Priority -->
<td>{!! $topic->priority !!}</td>
<!-- Department -->
<td>{!! $topic->department !!}</td>
<!-- Last Updated -->
<td> {!! $topic->updated_at !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
<div class="form-group">
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-star"></i> Delete',
['type' => 'submit',
'class'=> 'actions-line icon-trash',
'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,129 @@
@extends('themes.default1.layouts.blank')
@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\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>
<!-- Transient: checkbox : SLA can be overridden on ticket transfer or help topic change -->
<div class="form-group {{ $errors->has('transient') ? 'has-error' : '' }}">
{!! Form::checkbox('transient',1) !!}
{!! Form::label('transient',Lang::get('lang.transient')) !!}
{!! $errors->first('transient', '<spam class="help-block">:message</spam>') !!}
</div>
<!-- Ticket Overdue Alerts: Disable overdue alerts notices. (Override global setting) -->
<div class="form-group {{ $errors->has('ticket_overdue') ? 'has-error' : '' }}">
{!! Form::checkbox('ticket_overdue',1) !!}
{!! Form::label('ticket_overdue',Lang::get('lang.ticket_overdue_alert')) !!}
{!! $errors->first('ticket_overdue', '<spam class="help-block">:message</spam>') !!}
</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,129 @@
@extends('themes.default1.layouts.blank')
@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>
<!-- Transient: checkbox : SLA can be overridden on ticket transfer or help topic change -->
<div class="form-group {{ $errors->has('transient') ? 'has-error' : '' }}">
{!! Form::checkbox('transient') !!}
{!! Form::label('transient',Lang::get('lang.transient')) !!}
{!! $errors->first('transient', '<spam class="help-block">:message</spam>') !!}
</div>
<!-- Ticket Overdue Alerts: Disable overdue alerts notices. (Override global setting) -->
<div class="form-group {{ $errors->has('ticket_overdue') ? 'has-error' : '' }}">
{!! Form::checkbox('ticket_overdue') !!}
{!! Form::label('ticket_overdue',Lang::get('lang.ticket_overdue_alert')) !!}
{!! $errors->first('ticket_overdue', '<spam class="help-block">:message</spam>') !!}
</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,125 @@
@extends('themes.default1.layouts.blank')
@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')
<p style="color:green">Active</p>
@else
<p style="color:red">Disable</p>
@endif
</td>
<!-- To show the sla's Time Period -->
<td>{!! $sla->grace_period !!}</td>
<!-- Created Date -->
<td>{!! $sla->created_at !!}</td>
<!-- Last Updated -->
<td> {!! $sla->updated_at !!} </td>
<!-- Deleting Fields -->
<td>
{!! Form::open(['route'=>['sla.destroy', $sla->id],'method'=>'DELETE']) !!}
<div class="form-group">
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-star"></i> Delete',
['type' => 'submit',
'class'=> 'actions-line icon-trash',
'onclick'=>'return confirm("Are you sure?")'])
!!}
</div>
{!! Form::close() !!}
</td>
@endforeach
</tr>
<!-- Set a link to Create Page -->
</table>
</div>
</div>
</div>
</div>
@stop
</div><!-- /.box -->
@section('FooterInclude')
@stop
@stop
<!-- /content -->