update for version 1.0.1
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('tools-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
{!! Form::open(['route'=>'canned.store','method' => 'patch']) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Create </h3>
|
||||
<div class="pull-right">{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-6 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>
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('message',Lang::get('lang.message')) !!}
|
||||
{!! $errors->first('message', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
//Add text editor
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
@@ -0,0 +1,56 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('tools-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($canned, ['url' => 'canned/update/'.$canned->id,'method' => 'PATCH'] )!!}
|
||||
|
||||
<!-- <section class="content"> -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Edit</h3>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-6 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>
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('message',Lang::get('lang.message')) !!}
|
||||
{!! $errors->first('message', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
//Add text editor
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,104 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('tools-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">Canned Response</h2><a href="{{route('canned.create')}}" class="btn btn-primary pull-right">Create Canned Response</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
$Canneds = App\Model\helpdesk\Agent_panel\Canned::where('user_id', '=', Auth::user()->id)->paginate(20);
|
||||
?>
|
||||
<!-- check whether success or not -->
|
||||
{{-- Success message --}}
|
||||
@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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Agent table -->
|
||||
<table class="table table-bordered table-hover" id="example1" >
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.name')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($Canneds as $Canned)
|
||||
|
||||
<tr>
|
||||
<td>{{$Canned->title }}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['canned.destroy', $Canned->id],'method'=>'DELETE']) !!}
|
||||
<a data-toggle="modal" data-target="#view{!! $Canned->id !!}" href="#" class="btn btn-info btn-xs btn-flat">View</a>
|
||||
<a href="{!! URL::route('canned.edit',$Canned->id) !!}" class="btn btn-primary btn-xs btn-flat">Edit</a>
|
||||
|
||||
{!! 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>
|
||||
</tr>
|
||||
|
||||
<!-- Surrender Modal -->
|
||||
<div class="modal fade" id="view{!! $Canned->id !!}">
|
||||
<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">×</span></button>
|
||||
<h4 class="modal-title">Surrender</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><pre>{!! $Canned->message !!}</pre></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis6">Close</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -0,0 +1,30 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('tools-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('tools')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- <section class="content"> -->
|
||||
<div class="box box-primary">
|
||||
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">hi</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<pre>hello</pre>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
<!-- /content -->
|
||||
Reference in New Issue
Block a user