diff --git a/app/Http/Controllers/Agent/kb/CategoryController.php b/app/Http/Controllers/Agent/kb/CategoryController.php index 1c3eb7ead..1b1b22382 100644 --- a/app/Http/Controllers/Agent/kb/CategoryController.php +++ b/app/Http/Controllers/Agent/kb/CategoryController.php @@ -94,14 +94,14 @@ class CategoryController extends Controller
{{$Canned->title }} |
{!! Form::open(['route'=>['canned.destroy', $Canned->id],'method'=>'DELETE']) !!}
- {!! Lang::get('lang.view') !!}
- {!! Lang::get('lang.edit') !!}
- {!! Form::button(' '.Lang::get('lang.delete'),
+ {!! Lang::get('lang.view') !!}
+ {!! Lang::get('lang.edit') !!}
+ {!! Form::button(' '.Lang::get('lang.delete'),
['type' => 'submit',
- 'class'=> 'btn btn-warning btn-xs btn-flat',
+ 'class'=> 'btn btn-warning btn-xs',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
@@ -69,14 +78,16 @@ class="active"
-
+
+
+
{!! $Canned->message !!}
-
+
-
- {!! Lang::get('lang.create_ticket') !!}- @if(Session::has('success')) --
-
-
- {{Session::get('success')}}
-
- @endif
-
- @if(Session::has('fails'))
- -
-
- {!! Lang::get('lang.alert') !!}!
-
- {{Session::get('fails')}}
-
- @endif
- @if(Session::has('errors'))
- -
-
- {!! Lang::get('lang.alert') !!}!
-
-
- @endif
+@if(Session::has('success'))
+- @if($errors->first('email')) -
+
+
+ {{Session::get('success')}}
+
+@endif
+
+@if(Session::has('fails'))
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+ {{Session::get('fails')}}
+
+@endif
+@if(Session::has('errors'))
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+
+@endif
+
++ @if($errors->first('email')) +
+
+
+
- {!! Lang::get('lang.create_ticket') !!}
-
- {!! Lang::get('lang.user_details') !!}:-
+
+
+
+
+
+
+
- {!! Lang::get('lang.user_details') !!}:+
-
-
-
-
- {!! Form::label('email',Lang::get('lang.email')) !!}
- @if ($email_mandatory->status == 1)
- *
- @endif
+
- {!! Form::text('email',null,['class' => 'form-control', 'id' => 'email']) !!}
+
+
-
-
+
-
+
+
+
+
+ {!! Form::label('email',Lang::get('lang.email')) !!}
+ @if ($email_mandatory->status == 1)
+ *
+ @endif
+
+ {!! Form::text('email',null,['class' => 'form-control', 'id' => 'email']) !!}
+
+
+
+
+
+
+ {!! Form::label('email',Lang::get('lang.first_name')) !!} *
+
+
+
+
+
+
+ {!! Form::label('fullname',Lang::get('lang.last_name')) !!}
+
+
+
-
-
+
- {!! Form::label('email',Lang::get('lang.first_name')) !!} *
-
-
-
-
+
-
+
+ {!! Form::label('code',Lang::get('lang.country-code')) !!}
+ @if ($email_mandatory->status == 0 || $settings->status == 1)
+ *
+ @endif
-
-
-
+
- {!! Form::label('fullname',Lang::get('lang.last_name')) !!}
-
+ {!! Form::text('code',null,['class' => 'form-control', 'id' => 'country_code', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
+
+
+
+
+
+
+ @if ($email_mandatory->status == 0 || $settings->status == 1)
+ *
+ @endif
+ {!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
+
+
+
+
+
+
+ {!! Form::input('number','phone',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
+ {!! $errors->first('phone', '
+
-
-
- {!! Form::label('code',Lang::get('lang.country-code')) !!}
- @if ($email_mandatory->status == 0 || $settings->status == 1)
- *
- @endif
+
+
- {!! Form::text('code',null,['class' => 'form-control', 'id' => 'country_code', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
+
+
+
+
+
+
+ {!! Lang::get('lang.ticket_option') !!}:+
+
+
-
+
-
+
+
+
+
+
+
+ select('topic', 'id')->get(); ?>
+ {!! Form::select('helptopic', ['Helptopic'=>$helptopic->pluck('topic','id')->toArray()],null,['class' => 'form-control select','id'=>'selectid']) !!}
+
+
+
+
+
+
+ select('grace_period', 'id')->get(); ?>
+ {!! Form::select('sla', ['SLA'=>$sla_plan->pluck('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
+
+
+
+
+
+
+ {!! Form::text('duedate',null,['class' => 'form-control','id'=>'datemask']) !!}
+
+
+
+
+
+
+
+ where('active', '=', 1)->get(); ?>
+ {!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->pluck('first_name','id')->toArray()],null,['class' => 'form-control select']) !!}
+
+
+ {{-- Event fire --}}
+
-
-
+
+
-
- @if ($email_mandatory->status == 0 || $settings->status == 1)
- *
- @endif
- {!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
+
+
+
+
+
+
+ {!! Lang::get('lang.ticket_detail') !!}:+
+
+
+
+
-
+
+
+
+
+
+
+
+ {!! Form::text('subject',null,['class' => 'form-control']) !!}
+
+
+
+
+
+
+
+
+
+
+ {!! Form::textarea('body',null,['class' => 'form-control','id' => 'body', 'style'=>"width:100%; height:150px;"]) !!}
+
+
+
+
+
+
+
+
+
+ get(); ?>
+ {!! Form::select('priority', ['Priority'=>$Priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
+
+
+
-
-
-
-
- {!! Form::input('number','phone',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
- {!! $errors->first('phone', '
-
-
- {!! Lang::get('lang.ticket_option') !!}:-
-
-
-
-
-
-
-
-
-
-
-
- select('topic', 'id')->get(); ?>
- {!! Form::select('helptopic', ['Helptopic'=>$helptopic->pluck('topic','id')->toArray()],null,['class' => 'form-control select','id'=>'selectid']) !!}
-
-
-
-
-
-
- select('grace_period', 'id')->get(); ?>
- {!! Form::select('sla', ['SLA'=>$sla_plan->pluck('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
-
-
-
-
-
-
- {!! Form::text('duedate',null,['class' => 'form-control','id'=>'datemask']) !!}
-
-
-
-
-
-
-
- where('active', '=', 1)->get(); ?>
- {!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->pluck('first_name','id')->toArray()],null,['class' => 'form-control select']) !!}
-
-
- {{-- Event fire --}}
-
-
-
-
- {!! Lang::get('lang.ticket_detail') !!}:-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {!! Form::text('subject',null,['class' => 'form-control']) !!}
-
-
-
-
-
-
-
-
-
-
- {!! Form::textarea('body',null,['class' => 'form-control','id' => 'body', 'style'=>"width:100%; height:150px;"]) !!}
-
-
-
-
-
-
-
-
-
-
-
- get(); ?>
- {!! Form::select('priority', ['Priority'=>$Priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
-
-
-
+
-
-
-
- {!! Lang::get('lang.addcategory') !!}+@if(Session::has('success')) +
+
+
+ {{Session::get('success')}}
+
+@endif
+
+@if(Session::has('fails'))
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+ {{Session::get('fails')}}
+
+@endif
+@if(Session::has('errors'))
+
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+
+@endif
++ @if($errors->first('name')) +
+
+
- {!! Lang::get('lang.addcategory') !!}
- @if(Session::has('success'))
-
-
-
- {{Session::get('success')}}
-
- @endif
-
- @if(Session::has('fails'))
-
-
- {!! Lang::get('lang.alert') !!}!
-
- {{Session::get('fails')}}
-
- @endif
- @if(Session::has('errors'))
-
-
-
- {!! Lang::get('lang.alert') !!}!
-
-
- @endif
+ - @if($errors->first('name')) -
+
-
+
{!! Form::label('name',Lang::get('lang.name')) !!} *
{!! Form::text('name',null,['class' => 'form-control']) !!}
-
+
{!! Form::label('parent',Lang::get('lang.parent')) !!}
{!!Form::select('parent',[''=>'Select a Category','Categories'=>$category],null,['class' => 'form-control select']) !!}
-
+
-
{!! Form::label('status',Lang::get('lang.status')) !!}
-
@@ -80,33 +101,30 @@ class="active"
+
{!! Form::label('description',Lang::get('lang.description')) !!} *
{!! Form::textarea('description',null,['class' => 'form-control','id'=>'description','placeholder'=>Lang::get('lang.enter_the_description') ]) !!}
- {!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
+
-
-
-
@stop
diff --git a/resources/views/themes/default1/agent/kb/category/edit.blade.php b/resources/views/themes/default1/agent/kb/category/edit.blade.php
index c0c06d59e..7153db14a 100644
--- a/resources/views/themes/default1/agent/kb/category/edit.blade.php
+++ b/resources/views/themes/default1/agent/kb/category/edit.blade.php
@@ -2,8 +2,16 @@
@extends('themes.default1.agent.layout.sidebar')
-@section('category')
-active
+@section('Tools')
+class="nav-link active"
+@stop
+
+@section('tool')
+class="active"
+@stop
+
+@section('kb')
+class="nav-link active"
@stop
@section('PageHeader')
@@ -12,102 +20,99 @@ active
@section('content')
{!! Form::model($category,['url' => 'category/'.$category->id , 'method' => 'PATCH'] )!!}
-
+ {!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
-
- {!! Lang::get('lang.edit') !!}+@if(Session::has('success')) +
+
+
+ {{Session::get('success')}}
+
+@endif
+
+@if(Session::has('fails'))
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+ {{Session::get('fails')}}
+
+@endif
+@if(Session::has('errors'))
+
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+
+@endif
++ @if($errors->first('name')) +
+
+
- {!! Lang::get('lang.edit') !!}
- @if(Session::has('success'))
-
-
-
- {{Session::get('success')}}
-
- @endif
-
- @if(Session::has('fails'))
-
-
- {!! Lang::get('lang.alert') !!}!
-
- {{Session::get('fails')}}
-
- @endif
- @if(Session::has('errors'))
-
-
-
- {!! Lang::get('lang.alert') !!}!
-
-
- @endif
+ - @if($errors->first('name')) -
-
+
{!! Form::label('name',Lang::get('lang.name')) !!} *
{!! Form::text('name',null,['class' => 'form-control']) !!}
-
+
{!! Form::label('parent',Lang::get('lang.parent')) !!}
{!!Form::select('parent',[''=>'Select a Group','Categorys'=>$categories],null,['class' => 'form-control select']) !!}
-
+
{!! Form::label('status',Lang::get('lang.status')) !!}
-
-
+
-
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
-
+
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}}
+
{!! Form::label('description',Lang::get('lang.description')) !!} *
{!! Form::textarea('description',null,['class' => 'form-control','size' => '128x10','id'=>'description','placeholder'=>'Enter the description']) !!}
- {!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary'])!!}
+
-
-
-
@stop
\ No newline at end of file
diff --git a/resources/views/themes/default1/agent/kb/category/index.blade.php b/resources/views/themes/default1/agent/kb/category/index.blade.php
index 210a4c01e..6d4f2896b 100644
--- a/resources/views/themes/default1/agent/kb/category/index.blade.php
+++ b/resources/views/themes/default1/agent/kb/category/index.blade.php
@@ -2,41 +2,61 @@
@extends('themes.default1.agent.layout.sidebar')
-@section('category')
-active
-@stop
-
@section('PageHeader')
+ {!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
{{Lang::get('lang.category')}}@stop -@section('all-category') +@section('menu-open') +class="nav nav-treeview menu-open" +@stop + +@section('menu-parent') +class="nav-item menu-open" +@stop + +@section('Tools') +class="nav-link active" +@stop + +@section('tool') class="active" @stop +@section('kb') +class="nav-link active" +@stop + +@section('all-category') +class="nav-link active" +@stop + +@section('category') +class="nav-link active" +@stop + @section('content') -
-
- {{Lang::get('lang.allcategory')}}+ +@if(Session::has('success')) +
+
+
+ {{Session::get('success')}}
+
+@endif
+
+@if(Session::has('fails'))
+
+
+ {!! Lang::get('lang.alert') !!} !
+
+ {{Session::get('fails')}}
+
+@endif
+
+
+
- {{Lang::get('lang.allcategory')}}
-
- @if(Session::has('success'))
-
-
-
- {{Session::get('success')}}
-
- @endif
-
- @if(Session::has('fails'))
-
-
- {!! Lang::get('lang.alert') !!} !
-
- {{Session::get('fails')}}
-
- @endif
+
{!! Datatable::table()
diff --git a/resources/views/themes/default1/agent/kb/settings/comment.blade.php b/resources/views/themes/default1/agent/kb/settings/comment.blade.php
index 43995b77a..9abdbdc27 100644
--- a/resources/views/themes/default1/agent/kb/settings/comment.blade.php
+++ b/resources/views/themes/default1/agent/kb/settings/comment.blade.php
@@ -5,32 +5,45 @@
{!! Lang::get('lang.comments') !!}@stop @section('comment') +class="nav-link active" +@stop + +@section('Tools') +class="nav-link active" +@stop + +@section('tool') class="active" @stop +@section('kb') +class="nav-link active" +@stop + @section('content') -
-
- {{Lang::get('lang.comments-list')}}+ +@if(Session::has('success')) +
+
+
+ {{Session::get('success')}}
+
+@endif
+
+@if(Session::has('fails'))
+
+
+ {!! Lang::get('lang.alert') !!} !
+
+ {{Session::get('fails')}}
+
+@endif
+
+
+
+
- {{Lang::get('lang.comments-list')}}
-
- @if(Session::has('success'))
-
-
-
- {{Session::get('success')}}
-
- @endif
-
- @if(Session::has('fails'))
-
-
- {!! Lang::get('lang.alert') !!} !
-
- {{Session::get('fails')}}
-
- @endif
+
{!! Datatable::table()
diff --git a/resources/views/themes/default1/agent/kb/settings/settings.blade.php b/resources/views/themes/default1/agent/kb/settings/settings.blade.php
index ffb8ab96d..c7b67855f 100644
--- a/resources/views/themes/default1/agent/kb/settings/settings.blade.php
+++ b/resources/views/themes/default1/agent/kb/settings/settings.blade.php
@@ -1,70 +1,72 @@
@extends('themes.default1.agent.layout.agent')
@extends('themes.default1.agent.layout.sidebar')
-@section('settings')
+@section('Tools')
+class="nav-link active"
+@stop
+
+@section('tool')
class="active"
@stop
+@section('kb')
+class="nav-link active"
+@stop
+
+@section('settings')
+class="nav-link active"
+@stop
@section('content')
{!! Form::model($settings,['url' => 'postsettings/'.$settings->id, 'method' => 'PATCH','files'=>true]) !!}
-
- {{Lang::get('lang.kb-settings')}}+ +@if(Session::has('success')) +
+
+
+ {{Session::get('success')}}
-
-
-
-
-
-
-
- {{-- For Form --}}
-
- @if(Session::has('success'))
-
-
-
-
- {{Session::get('success')}}
-
- @endif
-
- @if(Session::has('fails'))
-
-
- {!! lang::get('lang.alert') !!}!
-
- {{Session::get('fails')}}
-
- @endif
- @if(Session::has('errors'))
-
-
- {!! Lang::get('lang.alert') !!}!
-
-
- @endif
-
- - @if($errors->first('pagination')) -
-
-
- {!! Form::label('pagination',Lang::get('lang.numberofelementstodisplay')) !!} *
-
-
-
- {!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
+@endif
+
+@if(Session::has('fails'))
+
@stop
diff --git a/resources/views/themes/default1/agent/layout/agent.blade.php b/resources/views/themes/default1/agent/layout/agent.blade.php
index 5f3074e1d..316a27294 100644
--- a/resources/views/themes/default1/agent/layout/agent.blade.php
+++ b/resources/views/themes/default1/agent/layout/agent.blade.php
@@ -522,7 +522,7 @@
+
+ {!! lang::get('lang.alert') !!}!
+
+ {{Session::get('fails')}}
+
+@endif
+@if(Session::has('errors'))
+
+
+ {!! Lang::get('lang.alert') !!}!
+
+
+@endif
++ @if($errors->first('pagination')) +
+
+
-
+
+
+
-{{Lang::get('lang.kb-settings')}}
+
+
+
+
+
+
+ {!! Form::label('pagination',Lang::get('lang.numberofelementstodisplay')) !!} *
+
+
+
+ {!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
+
+
+ |