update for version 1.0.2

This commit is contained in:
sujitprasad
2015-11-30 16:38:59 +05:30
parent d0a69a8df1
commit 7e17edab1e
425 changed files with 14241 additions and 3410 deletions

4
.gitignore vendored
View File

@@ -1,4 +0,0 @@
/bootstrap/compiled.php
.env.*.php
.env.php
.env

View File

@@ -13,3 +13,5 @@
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

3
code/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/vendor
/node_modules
.env

View File

@@ -46,49 +46,49 @@ class Handler extends ExceptionHandler {
*/
public function render($request, Exception $e)
{
if ($this->isHttpException($e) && $e->getStatusCode() == 404) {
return response()->view('errors.404', []);
} else {
if(\Config::get('database.install') == 1) {
// if(\Config::get('app.ErrorLog') == '%1%') {
// \App\Http\Controllers\Common\SettingsController::smtp();
// \Mail::send('errors.report', array('e' => $e), function ($message) {
// $message->to('', '')->subject('');
// });
// }
}
return response()->view('errors.500', []);
}
return parent::render($request, $e);
// if ($this->isHttpException($e) && $e->getStatusCode() == 404) {
// return response()->view('errors.404', []);
// } else {
// if(\Config::get('database.install') == 1) {
// // if(\Config::get('app.ErrorLog') == '%1%') {
// // \App\Http\Controllers\Common\SettingsController::smtp();
// // \Mail::send('errors.report', array('e' => $e), function ($message) {
// // $message->to('', '')->subject('');
// // });
// // }
// }
// return response()->view('errors.500', []);
// }
// return parent::render($request, $e);
// if ($this->isHttpException($e))
// {
// return $this->renderHttpException($e);
// }
if ($this->isHttpException($e))
{
return $this->renderHttpException($e);
}
// if (config('app.debug'))
// {
// return $this->renderExceptionWithWhoops($e);
// }
if (config('app.debug'))
{
return $this->renderExceptionWithWhoops($e);
}
// return parent::render($request, $e);
return parent::render($request, $e);
}
// protected function renderExceptionWithWhoops(Exception $e)
// {
// $whoops = new \Whoops\Run;
// $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
protected function renderExceptionWithWhoops(Exception $e)
{
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
// return new \Illuminate\Http\Response(
// $whoops->handleException($e),
// $e->getStatusCode(),
// $e->getHeaders()
// );
// }
return new \Illuminate\Http\Response(
$whoops->handleException($e),
$e->getStatusCode(),
$e->getHeaders()
);
}
}

View File

@@ -69,8 +69,7 @@ class MailController extends Controller {
die('Mailbox is empty');
}
// dd($mailsIds);
foreach($mailsIds as $mailId)
{
foreach($mailsIds as $mailId) {
$overview = $mailbox->get_overview($mailId);
$var = $overview[0]->seen ? 'read' : 'unread';
if ($var == 'unread') {
@@ -82,8 +81,7 @@ class MailController extends Controller {
}
$body = $mail->textHtml;
// dd($mailId);
if($body == null)
{
if($body == null) {
$body = $mailbox->backup_getmail($mailId);
$body = str_replace('\r\n', '<br/>', $body);
// var_dump($body);
@@ -112,8 +110,7 @@ class MailController extends Controller {
$thread_id = Ticket_Thread::whereRaw('id = (select max(`id`) from ticket_thread)')->first();
$thread_id = $thread_id->id;
foreach($mail->getAttachments() as $attachment)
{
foreach($mail->getAttachments() as $attachment) {
$support = "support";
// echo $_SERVER['DOCUMENT_ROOT'];
$dir_img_paths = __DIR__;
@@ -132,7 +129,6 @@ class MailController extends Controller {
$pos = strpos($body, $filepath[1]);
if($pos == false) {
if($settings_email->first()->attachment == 1) {
$upload = new Ticket_attachments;
$upload->file = $file_data;

View File

@@ -13,6 +13,7 @@ use App\Model\helpdesk\Ticket\Tickets;
use App\Model\helpdesk\Ticket\Ticket_attachments;
use App\Model\helpdesk\Ticket\Ticket_Collaborator;
use App\Model\helpdesk\Ticket\Ticket_Thread;
use App\Model\helpdesk\Ticket\Ticket_Priority;
use App\Model\helpdesk\Settings\Company;
use App\Model\helpdesk\Settings\System;
use App\Model\helpdesk\Settings\Alert;
@@ -56,6 +57,135 @@ class TicketController extends Controller {
return view('themes.default1.agent.helpdesk.ticket.inbox');
}
public function get_inbox() {
return \Datatable::collection(Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->get())
->searchColumns('subject')
->orderColumns('ticket_number')
->addColumn('checkbox', function ($ticket) {
return "<input type='checkbox' class='icheckbox_flat-blue' name='select_all' value=".$ticket->id."/>";
})
->addColumn('name', function ($ticket) {
$title = Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if($title)
if($title == null){
} else {
$collaborators = Ticket_Collaborator::where('ticket_id','=',$ticket->id)->get();
$collab = count($collaborators);
// check atatchments
$attachments = Ticket_attachments::where('thread_id','=',$title->id)->first();
$attach = count($attachments);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}
}
$titles = Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title) {
$title = $title;
}
$assigned_to = User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null) {
$assigned = "Unassigned";
} else {
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
if($collab > 0) {
$collabs = "&nbsp;<i class='fa fa-users'></i>";
}
if($attach > 0) {
$attachs = "&nbsp;<i class='fa fa-paperclip'></i>";
if($collab > 0) {
$collabs = $collabs . $attachs;
} else {
$collabs = $attachs;
}
}
return "<a href=".route('ticket.thread',[$ticket->id])." title=". $title->title .">".$string."</a> (".$count.") <i class='fa fa-comment'></i>
".$collab;
}
})
->addColumn('Ticket ID', function ($ticket) {
$ticket_number = "<a href='". route('ticket.thread',[$ticket->id]) ."' title=''># ".$ticket->ticket_number."</a>";
return $ticket_number;
})
->addColumn('Priority', function ($ticket) {
$priority = Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();
return "<td class='mailbox-priority'><spam style='color:green;'>".$priority->priority_desc."</spam></td>";
// return TicketController::usertimezone($st);
})
->addColumn('From', function ($ticket) {
$from = User::where('id','=',$ticket->user_id)->first();
if($from->role == "user") {
return $from->user_name;
} else {
return $from->first_name." ".$from->last_name;
}
})
->addColumn('Last Replier', function ($ticket) {
$TicketData = Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
return $username;
})
->addColumn('Assigned To', function ($ticket) {
$assigned_to = User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null) {
$assigned = "Unassigned";
} else {
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
return $assigned;
})
->addColumn('Last Activity', function ($ticket) {
$assigned_to = User::where('id','=',$ticket->assigned_to)->first();
if($assigned_to == null) {
$assigned = "Unassigned";
} else {
$assigned = $assigned_to->first_name ." ". $assigned_to->last_name;
}
return $assigned;
})
->addColumn('Last Activity', function ($ticket) {
$titles = Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title) {
$title = $title;
}
return TicketController::usertimezone($title->created_at);
})
->make();
}
/**
* Show the Open ticket list page
* @return type response
@@ -429,8 +559,8 @@ class TicketController extends Controller {
// mail user his/her password
if ($user->save()) {
$user_id = $user->id;
if (Mail::send('emails.pass', ['password' => $password, 'name' => $username, 'from'=>$company], function ($message) use ($emailadd, $username) {
$message->to($emailadd, $username)->subject('password');
if (Mail::send('emails.pass', ['password' => $password, 'name' => $username, 'from'=>$company], function ($message) use ($emailadd, $username,$company) {
$message->to($emailadd, $username)->subject('Welcome to '.$company.' helpdesk');
})) {
// need to do something here....
}

View File

@@ -0,0 +1,270 @@
<?php namespace App\Http\Controllers\Agent\kb;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Agent\kb\SettingsController;
use App\Http\Controllers\Client\kb\UserController;
use App\Http\Controllers\Agent\helpdesk\TicketController;
use App\Http\Requests\kb\ArticleRequest;
use App\Model\kb\Article;
use App\Model\kb\Category;
use App\Model\kb\Relationship;
use App\Model\kb\Settings;
use Auth;
use Chumper\Datatable\Table;
use Datatable;
use DB;
use Illuminate\Http\Request;
use App\Model\kb\Comment;
/* include the article model to access the article table */
use Redirect;
use Exception;
/**
* ArticleController
*
* @package Controllers
* @subpackage Controller
* @author Ladybird <info@ladybirdweb.com>
*/
class ArticleController extends Controller {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function __construct() {
$this->middleware('auth');
$this->middleware('roles');
SettingsController::language();
}
public function test() {
//$table = $this->setDatatable();
return view('themes.default1.agent.kb.article.test');
}
public function getData() {
//return 'kfjhje';
return Datatable::collection(Article::All())
->searchColumns('name')
->orderColumns('name', 'description')
->addColumn('name', function ($model) {
return $model->name;
})
->addColumn('Created', function ($model) {
$t = $model->created_at;
return TicketController::usertimezone($t);
})
->addColumn('Actions', function ($model) {
//return '<a href=article/delete/ ' . $model->id . ' class="btn btn-danger btn-flat" onclick="myFunction()">Delete</a>&nbsp;<a href=article/' . $model->id . '/edit class="btn btn-warning btn-flat">Edit</a>&nbsp;<a href=show/' . $model->id . ' class="btn btn-warning btn-flat">View</a>';
//return '<form action="article/delete/ ' . $model->id . '" method="post" onclick="alert()"><button type="sumbit" value="Delete"></button></form><a href=article/' . $model->id . '/edit class="btn btn-warning btn-flat">Edit</a>&nbsp;<a href=show/' . $model->id . ' class="btn btn-warning btn-flat">View</a>';
return '<span data-toggle="modal" data-target="#banemail"><a href="#" ><button class="btn btn-danger btn-xs"></a> ' . \Lang::get('lang.delete') . ' </button></span>&nbsp;<a href=article/' . $model->slug . '/edit class="btn btn-warning btn-xs">' . \Lang::get('lang.edit') . '</a>&nbsp;<a href=show/'.$model->slug .' class="btn btn-primary btn-xs">' . \Lang::get('lang.view') . '</a>
<div class="modal fade" id="banemail">
<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">Are You Sure ?</h4>
</div>
<div class="modal-body">
'.$model->name.'
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">Close</button>
<a href="article/delete/'.$model->slug.'"><button class="btn btn-danger">delete</button></a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>';
})
->make();
}
/**
* Index for Articles
* @param type Article $article
* @return type Response
*/
public function index() {
/* show the index page with article list */
return view('themes.default1.agent.kb.article.index');
}
/**
* Creating a Article
* @param type Category $category
* @return type Response
*/
public function create(Category $category) {
//$cat = $category->whereId(33)->first();
//$tm = $cat->created_at;
//$this->usertimezone($tm);
// // /* get the attributes of the category */
$category = $category->lists('id', 'name');
/* get the create page */
return view('themes.default1.agent.kb.article.create', compact('category'));
}
/**
* Insert the values to the article table
* @param type Article $article
* @param type ArticleRequest $request
* @return type
*/
public function store(Article $article, ArticleRequest $request) {
$sl = $request->input('slug');
$slug = str_slug($sl, "-");
$article->slug = $slug;
$article->fill($request->except('created_at','slug'))->save();
$requests = $request->input('category_id');
$id = $article->id;
foreach ($requests as $req) {
DB::insert('insert into article_relationship (category_id, article_id) values (?,?)', [$req, $id]);
}
/* insert the values to the article table */
if ($article->fill($request->except('slug'))->save()) //true: redirect to index page with success message
{
return redirect('article')->with('success', 'Article Inserted Successfully');
} else //redirect to index page with fail message
{
return redirect('article')->with('fails', 'Article Not Inserted');
}
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id) {
//
}
/**
* Edit an Article by id
* @param type Integer $id
* @param type Article $article
* @param type Relationship $relation
* @param type Category $category
* @return Response
*/
public function edit($slug, Article $article, Relationship $relation, Category $category) {
$aid = $article->where('slug', $slug)->first();
$id = $aid->id;
/* define the selected fields */
$assign = $relation->where('article_id', $id)->lists('category_id');
/* get the attributes of the category */
$category = $category->lists('id', 'name');
/* get the selected article and display it at edit page */
/* Get the selected article with id */
$article = $article->whereId($id)->first();
/* send to the edit page */
return view('themes.default1.agent.kb.article.edit', compact('assign', 'article', 'category'));
}
/**
* Update an Artile by id
* @param type Integer $id
* @param type Article $article
* @param type Relationship $relation
* @param type ArticleRequest $request
* @return Response
*/
public function update($slug, Article $article, Relationship $relation,
ArticleRequest $request) {
$aid = $article->where('slug', $slug)->first();
$id = $aid->id;
$sl = $request->input('slug');
$slug = str_slug($sl, "-");
$article->slug = $slug;
/* get the attribute of relation table where id==$id */
$relation = $relation->where('article_id', $id);
$relation->delete();
/* get the request of the current articles */
$article = $article->whereId($id)->first();
$requests = $request->input('category_id');
$id = $article->id;
foreach ($requests as $req) {
DB::insert('insert into article_relationship (category_id, article_id) values (?,?)', [$req, $id]);
}
/* update the value to the table */
if ($article->fill($request->except('slug'))->save()) //true: redirect to index page with success message
{
return redirect('article')->with('success', 'Article Updated Successfully');
} else // redirect to index page with fails message
{
return redirect('article')->with('fails', 'Article Not Updated');
}
}
/**
* Delete an Agent by id
* @param type $id
* @param type Article $article
* @return Response
*/
public function destroy($slug, Article $article, Relationship $relation, Comment $comment) {
/* delete the selected article from the table */
$article = $article->where('slug',$slug)->first(); //get the selected article via id
//dd($article);
$id = $article->id;
$comments = $comment->where('article_id',$id)->get();
if($comments)
{
foreach($comments as $comment)
$comment->delete();
}
$relation = $relation->where('article_id', $id)->first();
if($relation)
{
$relation->delete();
}
if($article)
{
if ($article->delete()) //true:redirect to index page with success message
{
return Redirect::back()->with('success', 'Article Deleted Successfully');
} else //redirect to index page with fails message
{
return Redirect::back()->with('fails', 'Article Not Deleted');
}
}
else
{
return Redirect::back()->with('fails', 'Article can Not Deleted');
}
}
static function usertimezone($utc) {
$user = Auth::user();
$tz = $user->timezone;
$set = Settings::whereId('1')->first();
$format = $set->dateformat;
//$utc = date('M d Y h:i:s A');
//echo 'UTC : ' . $utc;
date_default_timezone_set($tz);
$offset = date('Z', strtotime($utc));
//print "offset: $offset \n";
$date = date($format, strtotime($utc) + $offset);
echo $date;
//return substr($date, 0, -6);
}
}

View File

@@ -0,0 +1,194 @@
<?php namespace App\Http\Controllers\Agent\kb;
use App\Http\Controllers\client\kb\UserController;
use App\Http\Controllers\admin\kb\ArticleController;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Agent\kb\SettingsController;
use App\Http\Requests\kb\CategoryRequest;
use App\Http\Controllers\Agent\helpdesk\TicketController;
use App\Model\kb\Category;
use App\Model\kb\Relationship;
use Datatable;
use Redirect;
/**
* CategoryController
*
* @package Controllers
* @subpackage Controller
* @author Ladybird <info@ladybirdweb.com>
*/
class CategoryController extends Controller {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function __construct() {
$this->middleware('auth');
$this->middleware('roles');
SettingsController::language();
}
/**
* Indexing all Category
* @param type Category $category
* @return Response
*/
public function index() {
/* get the view of index of the catogorys with all attributes
of category model */
return view('themes.default1.agent.kb.category.index');
}
public function getData() {
//return 'kfjhje';
return Datatable::collection(Category::All())
->searchColumns('name')
->orderColumns('name', 'description')
->addColumn('name', function ($model) {
return $model->name;
})
->addColumn('Created', function ($model) {
$t = $model->created_at;
return TicketController::usertimezone($t);
})
->addColumn('Actions', function ($model) {
//return '<a href=category/delete/' . $model->id . ' class="btn btn-danger btn-flat">Delete</a>&nbsp;<a href=category/' . $model->id . '/edit class="btn btn-warning btn-flat">Edit</a>&nbsp;<a href=article-list class="btn btn-warning btn-flat">View</a>';
return '<span data-toggle="modal" data-target="#banemail"><a href="#" ><button class="btn btn-danger btn-xs"></a>'. \Lang::get("lang.delete") .'</button></span>&nbsp;<a href=category/' . $model->slug . '/edit class="btn btn-warning btn-xs">'. \Lang::get("lang.edit") .'</a>&nbsp;<a href=article-list class="btn btn-primary btn-xs">'. \Lang::get("lang.view") .'</a>
<div class="modal fade" id="banemail">
<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">Are You Sure ?</h4>
</div>
<div class="modal-body">
'.$model->name.'
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">Close</button>
<a href="category/delete/' . $model->id . '"><button class="btn btn-danger">delete</button></a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>';
})
->make();
}
/**
* Create a Category
* @param type Category $category
* @return Response
*/
public function create(Category $category) {
/* Get the all attributes in the category model */
$category = $category->get();
/* get the view page to create new category with all attributes
of category model*/
return view('themes.default1.agent.kb.category.create', compact('category'));
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store(Category $category, CategoryRequest $request) {
/* Get the whole request from the form and insert into table via model */
$sl = $request->input('slug');
$slug = str_slug($sl, "-");
$category->slug = $slug;
//$category->save();
if ($category->fill($request->except('slug'))->save()) //True: send success message to index page
{
return Redirect::back()->with('success', 'Category Inserted Successfully');
} else //send fail to index page
{
return Redirect::back()->with('fails', 'Category Not Inserted');
}
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id) {
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($slug, Category $category) {
$cid = $category->where('slug', $slug)->first();
$id = $cid->id;
/* get the atributes of the category model whose id == $id */
$category = $category->whereId($id)->first();
/* get the Edit page the selected category via id */
return view('themes.default1.agent.kb.category.edit', compact('category'));
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($slug, Category $category, CategoryRequest $request) {
/* Edit the selected category via id */
$category = $category->where('slug', $slug)->first();
$sl = $request->input('slug');
$slug = str_slug($sl, "-");
$category->slug = $slug;
/* update the values at the table via model according with the request */
if ($category->fill($request->except('slug'))->save()) //True: redirct to index page with success message
{
return redirect('category')->with('success', 'Category Updated Successfully');
} else //redirect to index with fails message
{
return redirect('category')->with('fails', 'Category Not Updated');
}
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id, Category $category, Relationship $relation) {
$relation = $relation->where('category_id', $id)->delete();
// $relation->delete();
/* delete the category selected, id == $id */
$category = $category->whereId($id)->first();
if ($category->delete()) //True: redirect to index with success message
{
return Redirect::back()->with('success', 'Category Deleted Successfully');
} else //redirect to index page fails message
{
return Redirect::back()->with('fails', 'Category Not Deleted');
}
}
}

View File

@@ -0,0 +1,154 @@
<?php namespace App\Http\Controllers\Agent\kb;
use App\Http\Controllers\client\kb\UserController;
use App\Http\Controllers\Agent\kb\ArticleController;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Agent\kb\SettingsController;
use App\Http\Controllers\Agent\helpdesk\TicketController;
use App\Http\Requests\kb\PageRequest;
use App\Model\kb\Page;
use Datatable;
use Illuminate\Http\Request;
class PageController extends Controller {
/**
* Contructor for both Authentication and Model Injecting
* @param type Page $page
* @return type
*/
public function __construct(Page $page) {
$this->middleware('auth');
$this->middleware('roles');
$this->page = $page;
SettingsController::language();
}
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index() {
$pages = $this->page->paginate(3);
$pages->setPath('page');
return view('themes.default1.agent.kb.pages.index', compact('pages'));
}
public function getData() {
//return 'kfjhje';
return Datatable::collection(Page::All())
->searchColumns('name')
->orderColumns('name', 'description', 'created')
->addColumn('name', function ($model) {
return $model->name;
})
->addColumn('Created', function ($model) {
$t = $model->created_at;
return TicketController::usertimezone($t);
})
->addColumn('Actions', function ($model) {
//return '<a href=page/delete/' . $model->id . ' class="btn btn-danger btn-flat">Delete</a>&nbsp;<a href=page/' . $model->id . '/edit class="btn btn-warning btn-flat">Edit</a>&nbsp;<a href=article-list class="btn btn-warning btn-flat">View</a>';
return '<span data-toggle="modal" data-target="#banemail"><a href="#" ><button class="btn btn-danger btn-xs"></a> '. \Lang::get('lang.delete') .'</button></span>&nbsp;<a href=page/' . $model->slug . '/edit class="btn btn-warning btn-xs">'. \Lang::get('lang.edit') .'</a>&nbsp;<a href=pages/' . $model->slug . ' class="btn btn-primary btn-xs">'. \Lang::get('lang.view') .'</a>
<div class="modal fade" id="banemail">
<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">Are You Sure ?</h4>
</div>
<div class="modal-body">
'.$model->name.'
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">Close</button>
<a href="page/delete/' . $model->id . '"><button class="btn btn-danger">delete</button></a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>';
})
->make();
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create() {
return view('themes.default1.agent.kb.pages.create');
}
/**
* To insert a value to the table Page
* @param type Request $request
* @return type
*/
public function store(PageRequest $request) {
$sl = $request->input('slug');
$slug = str_slug($sl, "-");
$this->page->slug = $slug;
$this->page->fill($request->except('slug'))->save();
return redirect('page');
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id) {
//
}
/**
* To edit a page
* @param type $id
* @return type
*/
public function edit($slug) {
$page = $this->page->where('slug', $slug)->first();
return view('themes.default1.agent.kb.pages.edit', compact('page'));
}
/**
* To update a page
* @param type $id
* @param type Request $request
* @return type
*/
public function update($slug, PageRequest $request) {
$pages = $this->page->where('slug', $slug)->first();
$sl = $request->input('slug');
$slug = str_slug($sl, "-");
$this->page->slug = $slug;
//$id = $page->id;
$pages->fill($request->except('slug'))->save();
return redirect('page')->with('success', 'Your Page Updated Successfully');
}
/**
* To Delete one Page
* @param type $id
* @return type
*/
public function destroy($id) {
$page = $this->page->whereId($id)->first();
$page->delete();
return redirect('page')->with('success', 'Page Deleted Successfully');
}
}

View File

@@ -0,0 +1,384 @@
<?php namespace App\Http\Controllers\Agent\kb;
use App\Http\Controllers\Agent\kb\ArticleController;
use App\Http\Controllers\Agent\helpdesk\TicketController;
use App\Http\Controllers\Controller;
use App\Http\Requests\kb\FooterRequest;
use App\Http\Requests\kb\ProfilePassword;
use App\Http\Requests\kb\ProfileRequest;
use App\Http\Requests\kb\SettingsRequests;
use App\Http\Requests\kb\SocialRequest;
use App\Model\kb\Comment;
use App\Model\kb\DateFormat;
use App\Model\kb\Faq;
use App\Model\kb\Settings;
use App\Model\kb\Side1;
use App\Model\kb\Side2;
use App\Model\kb\Social;
use App\Model\helpdesk\Utility\Timezones;
use Auth;
use Config;
use Datatable;
use Hash;
use Illuminate\Http\Request;
use Image;
use Input;
class SettingsController extends Controller {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function __construct() {
$this->middleware('auth');
$this->middleware('roles');
$this->language();
}
/**
* to get the settings page
* @return response
* @package default
*/
public function settings(Settings $settings, Timezones $time, DateFormat $date) {
/* get the setting where the id == 1 */
$settings = $settings->whereId('1')->first();
$time = $time->get();
//$date = $date->get();
return view('themes.default1.agent.kb.settings.settings', compact('date', 'settings', 'time'));
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function postSettings($id, Settings $settings, SettingsRequests $request) {
try
{
/* fetch the values of company request */
$settings = $settings->whereId('1')->first();
if (Input::file('logo')) {
$name = Input::file('logo')->getClientOriginalName();
$destinationPath = 'lb-faveo/dist/image';
$fileName = rand(0000, 9999) . '.' . $name;
//echo $fileName;
Input::file('logo')->move($destinationPath, $fileName);
$settings->logo = $fileName;
//$thDestinationPath = 'dist/th';
Image::make($destinationPath . '/' . $fileName, array(
'width' => 300,
'height' => 300,
'grayscale' => false,
))->save('lb-faveo/dist/image/' . $fileName);
}
if (Input::file('background')) {
$name = Input::file('background')->getClientOriginalName();
$destinationPath = 'lb-faveo/dist/image';
$fileName = rand(0000, 9999) . '.' . $name;
echo $fileName;
Input::file('background')->move($destinationPath, $fileName);
$settings->background = $fileName;
//$thDestinationPath = 'dist/th';
Image::make($destinationPath . '/' . $fileName, array(
'width' => 300,
'height' => 300,
'grayscale' => false,
))->save('lb-faveo/dist/image/' . $fileName);
}
/* Check whether function success or not */
if ($settings->fill($request->except('logo', 'background'))->save() == true) {
/* redirect to Index page with Success Message */
return redirect('settings')->with('success', 'Settings Updated Successfully');
} else {
/* redirect to Index page with Fails Message */
return redirect('settings')->with('fails', 'Settings can not Updated');
}
} catch (Exception $e) {
/* redirect to Index page with Fails Message */
return redirect('settings')->with('fails', 'Settings can not Updated');
}
}
/**
* to get the faq view page
* @return response
*/
public function Faq(Faq $faq) {
/* fetch the values of faq */
$faq = $faq->whereId('1')->first();
return view('themes.default1.agent.settings.faq', compact('faq'));
}
public function postfaq($id, Faq $faq, Request $request) {
$faq = $faq->whereId('1')->first();
if ($faq->fill($request->input())->save()) {
return redirect('create-faq')->with('success', 'Faq updated Successfully');
} else {
return redirect('craete-faq')->with('fails', 'Faq not updated');
}
}
/**
* get the create page to insert the values to database
* @return type response
*/
public function CreateSocialLink(Social $social) {
$social = $social->whereId('1')->first();
return view('themes.default1.agent.kb.settings.social', compact('social'));
}
/**
*
* @param type Social $social
* @param type Request $request
* @return type resonse
*/
public function PostSocial(Social $social, SocialRequest $request) {
$social = $social->whereId('1')->first();
if ($social->fill($request->input())->save()) {
return redirect('social')->with('success', 'Your Social Links Stored');
} else {
return redirect('social')->with('fails', 'Sorry Can not Performe');
}
}
/**
* To Moderate the commenting
* @param type Comment $comment
* @return Response
*/
public function comment(Comment $comment) {
return view('themes.default1.agent.kb.settings.comment');
}
/**
* getdata
* @return type
*/
public function getData() {
return \Datatable::collection(Comment::All())
->searchColumns('name', 'email', 'comment', 'created')
->orderColumns('name')
->addColumn('name', function ($model) {
return $model->name;
})
->addColumn('email', function ($model) {
return $model->email;
})
->addColumn('website', function ($model) {
return $model->website;
})
->addColumn('comment', function ($model) {
return $model->comment;
})
->addColumn('status', function ($model) {
$status = $model->status;
if ($status == 1) {
return '<p style="color:blue"">'.\Lang::get('lang.published');
} else {
return '<p style="color:red"">'.\Lang::get('lang.not_published');
}
})
->addColumn('Created', function ($model) {
return TicketController::usertimezone(date($model->created_at));
})
->addColumn('Actions', function ($model) {
return '<a href=comment/delete/' . $model->id . ' class="btn btn-danger btn-xs">'.\Lang::get('lang.delete').'</a>&nbsp;<a href=published/' . $model->id . ' class="btn btn-warning btn-xs">'.\Lang::get('lang.publish').'</a>';
})
->make();
}
/**
* Admin can publish the comment
* @param type $id
* @param type Comment $comment
* @return bool
*/
public function publish($id, Comment $comment) {
$comment = $comment->whereId($id)->first();
$comment->status = 1;
if ($comment->save()) {
return redirect('comment')->with('success', $comment->name . '-' . 'Comment Published');
} else {
return redirect('comment')->with('fails', 'Can not Process');
}
}
/**
* delete the comment
* @param type $id
* @param type Comment $comment
* @return type
*/
public function delete($id, Comment $comment) {
$comment = $comment->whereId($id)->first();
if ($comment->delete()) {
return redirect('comment')->with('success', $comment->name . "'s!" . 'Comment Deleted');
} else {
return redirect('comment')->with('fails', 'Can not Process');
}
}
public function getProfile() {
$time = Timezone::all();
$user = Auth::user();
return view('themes.default1.agent.kb.settings.profile', compact('user', 'time'));
}
public function postProfile(ProfileRequest $request) {
$user = Auth::user();
$user->gender = $request->input('gender');
$user->save();
if (is_null($user->profile_pic)) {
if ($request->input('gender') == 1) {
$name = 'avatar5.png';
$destinationPath = 'lb-faveo/dist/img';
$user->profile_pic = $name;
} elseif ($request->input('gender') == 0) {
$name = 'avatar2.png';
$destinationPath = 'lb-faveo/dist/img';
$user->profile_pic = $name;
}
}
if (Input::file('profile_pic')) {
//$extension = Input::file('profile_pic')->getClientOriginalExtension();
$name = Input::file('profile_pic')->getClientOriginalName();
$destinationPath = 'lb-faveo/dist/img';
$fileName = rand(0000, 9999) . '.' . $name;
//echo $fileName;
Input::file('profile_pic')->move($destinationPath, $fileName);
$user->profile_pic = $fileName;
} else {
$user->fill($request->except('profile_pic', 'gender'))->save();
return redirect()->back()->with('success1', 'Profile Updated sucessfully');
}
if ($user->fill($request->except('profile_pic'))->save()) {
return redirect('profile')->with('success1', 'Profile Updated sucessfully');
} else {
return redirect('profile')->with('fails1', 'Profile Not Updated sucessfully');
}
}
public function postProfilePassword($id, ProfilePassword $request) {
$user = Auth::user();
//echo $user->password;
if (Hash::check($request->input('old_password'), $user->getAuthPassword())) {
$user->password = Hash::make($request->input('new_password'));
$user->save();
return redirect('profile')->with('success2', 'Password Updated sucessfully');
} else {
return redirect('profile')->with('fails2', 'Old password Wrong');
}
}
/**
* To delete the logo
* @param type $id
* @param type Settings $setting
* @return type
*/
public function deleteLogo($id, Settings $setting) {
$setting = $setting->whereId($id)->first();
$setting->logo = '';
$setting->save();
return redirect('settings')->with('success', 'Settings Updated Successfully');
}
public function deleteBackground($id, Settings $setting) {
$setting = $setting->whereId($id)->first();
$setting->background = '';
$setting->save();
return redirect('settings')->with('success', 'Settings Updated Successfully');
}
/**
* Get the View of create Side widget page
* @param type Side1 $side
* @return View
*/
public function side1(Side1 $side) {
$side = $side->where('id', '1')->first();
return view('themes.default1.agent.kb.settings.side1', compact('side'));
}
/**
* Post function of Side1 Page
* @param type $id
* @param type Side1 $side
* @param type Request $request
* @return view
*/
public function postside1($id, Side1 $side, Request $request) {
$side = $side->whereId($id)->first();
if ($side->fill($request->input())->save()) {
return redirect('side1')->with('success', 'Side Widget 1 Created !');
} else {
return redirect('side1')->with('fails', 'Whoops ! Something went Wrong ! ');
}
}
/**
* Get the View for side widget creat
* @param type Side2 $side
* @return type
*/
public function side2(Side2 $side) {
$side = $side->where('id', '1')->first();
return view('themes.default1.agent.kb.settings.side2', compact('side'));
}
/**
* Post functio for side
* @param type $id
* @param type Side2 $side
* @param type Request $request
* @return response
*/
public function postside2($id, Side2 $side, Request $request) {
$side = $side->whereId($id)->first();
if ($side->fill($request->input())->save()) {
return redirect('side2')->with('success', 'Side Widget 2 Created !');
} else {
return redirect('side2')->with('fails', 'Whoops ! Something went Wrong ! ');
}
}
static function language() {
// $set = Settings::whereId(1)->first();
// $lang = $set->language;
Config::set('app.locale', 'en');
Config::get('app');
}
}

View File

@@ -0,0 +1,297 @@
<?php namespace App\Http\Controllers\client\kb;
use App\Http\Controllers\Controller;
use App\Http\Requests\kb\CommentRequest;
use App\Http\Requests\kb\ContactRequest;
use App\Http\Requests\kb\SearchRequest;
use App\Http\Requests\kb\ProfilePassword;
use App\Model\kb\Article;
use App\Model\kb\Category;
use App\Model\kb\Comment;
use App\Model\kb\Contact;
use App\Model\kb\Faq;
use App\Model\kb\Page;
use App\Model\kb\Relationship;
use App\Model\kb\Settings;
use Config;
// use Creativeorange\Gravatar\Gravatar;
use Illuminate\Http\Request;
use Mail;
use Auth;
use Redirect;
use Hash;
class UserController extends Controller {
public function __construct() {
//$this->middleware('auth');
//SettingsController::language();
// $this->port();
// $this->host();
// $this->password();
// $this->encryption();
// $this->email();
}
/**
* @param
* @return response
* @package default
*/
public function getArticle(Article $article, Category $category, Settings $settings) {
$settings = $settings->first();
$pagination = $settings->pagination;
// $article = $article->where('status', '1');
// $article = $article->where('type', '1');
$article = $article->paginate($pagination);
// dd($article);
$article->setPath('article-list');
$categorys = $category->get();
// $time = $this->timezone($utc);
return view('themes.default1.client.kb.article-list.articles', compact('time', 'categorys', 'article'));
}
/**
* Get excerpt from string
*
* @param String $str String to get an excerpt from
* @param Integer $startPos Position int string to start excerpt from
* @param Integer $maxLength Maximum length the excerpt may be
* @return String excerpt
*/
static function getExcerpt($str, $startPos = 0, $maxLength = 50) {
if (strlen($str) > $maxLength) {
$excerpt = substr($str, $startPos, $maxLength - 3);
$lastSpace = strrpos($excerpt, ' ');
$excerpt = substr($excerpt, 0, $lastSpace);
$excerpt .= '...';
} else {
$excerpt = $str;
}
return $excerpt;
}
public function search(SearchRequest $request, Category $category, Article $article, Settings $settings) {
$settings = $settings->first();
$pagination = $settings->pagination;
$search = $request->input('s');
$result = $article->search($search)->paginate($pagination);
$result->setPath('search');
//dd($result);
$categorys = $category->get();
return view('themes.default1.client.kb.article-list.search', compact('categorys', 'result'));
}
/**
* to show the seleted article
* @return response
*/
public function show($slug, Article $article, Category $category) {
//ArticleController::timezone();
$arti = $article->where('slug', $slug)->where('status','1')->where('type','1')->first();
// dd($arti);
//$categorys = $category->get();
//$avatar->get('vijaycodename47@gmail.com');
return view('themes.default1.client.kb.article-list.show', compact('arti'));
}
public function getCategory($slug, Article $article, Category $category, Relationship $relation) {
/* get the article_id where category_id == current category */
$catid = $category->where('slug', $slug)->first();
$id = $catid->id;
$all = $relation->where('category_id', $id)->paginate(2);
$all->setPath('');
/* from whole attribute pick the article_id */
$article_id = $all->lists('article_id');
$categorys = $category->get();
/* direct to view with $article_id */
return view('themes.default1.client.kb.article-list.category', compact('all', 'categorys', 'article_id'));
}
public function home(Article $article, Category $category, Relationship $relation) {
if (Config::get('database.install') == '%0%') {
return redirect('step1');
}
else
{
//$categorys = $category->get();
$categorys = $category->paginate(3);
$categorys->setPath('home');
/* direct to view with $article_id */
return view('themes.default1.client.kb.article-list.home', compact('categorys', 'article_id'));
}
}
public function Faq(Faq $faq, Category $category) {
$faq = $faq->where('id', '1')->first();
$categorys = $category->get();
return view('themes.default1.client.kb.article-list.faq', compact('categorys', 'faq'));
}
/**
* get the contact page for user
* @return response
*/
public function contact(Category $category, Settings $settings) {
$settings = $settings->whereId('1')->first();
$categorys = $category->get();
return view('themes.default1.client.kb.article-list.contact', compact('settings', 'categorys'));
}
/**
* send message to the mail adderess that define in the system
* @return response
*/
public function postContact(ContactRequest $request, Contact $contact) {
$this->port();
$this->host();
$this->encryption();
$this->email();
$this->password();
//return Config::get('mail');
$contact->fill($request->input())->save();
$name = $request->input('name');
//echo $name;
$email = $request->input('email');
//echo $email;
$subject = $request->input('subject');
//echo $subject;
$details = $request->input('message');
//echo $message;
//echo $contact->email;
$mail = Mail::send('themes.default1.client.kb.article-list.contact-details', array('name' => $name, 'email' => $email, 'subject' => $subject, 'details' => $details), function ($message) use ($contact) {
$message->to($contact->email, $contact->name)->subject('Contact');
});
if ($mail) {
return redirect('contact')->with('success', 'Your details send to System');
} else {
return redirect('contact')->with('fails', 'Your details can not send to System');
}
}
public function contactDetails() {
return view('themes.default1.client.kb.article-list.contact-details');
}
/**
* To insert the values to the comment table
* @param type Article $article
* @param type Request $request
* @param type Comment $comment
* @param type Id $id
* @return type response
*/
public function postComment($slug, Article $article, CommentRequest $request, Comment $comment) {
$article = $article->where('slug',$slug)->first();
$id = $article->id;
$comment->article_id = $id;
if ($comment->fill($request->input())->save()) {
return Redirect::back()->with('success', 'Your comment posted');
} else {
return Redirect::back()->with('fails', 'Sorry not processed');
}
}
public function getPage($name, Page $page) {
$page = $page->where('slug', $name)->first();
//$this->timezone($page->created_at);
return view('themes.default1.client.kb.article-list.pages', compact('page'));
}
static function port() {
$setting = Settings::whereId('1')->first();
Config::set('mail.port', $setting->port);
}
static function host() {
$setting = Settings::whereId('1')->first();
Config::set('mail.host', $setting->host);
}
static function encryption() {
$setting = Settings::whereId('1')->first();
Config::set(['mail.encryption' => $setting->encryption, 'mail.username' => $setting->email]);
}
static function email() {
$setting = Settings::whereId('1')->first();
Config::set(['mail.from' => ['address' => $setting->email, 'name' => 'asd']]);
//dd(Config::get('mail'));
}
static function password() {
$setting = Settings::whereId('1')->first();
Config::set(['mail.password' => $setting->password, 'mail.sendmail' => $setting->email]);
}
public function getCategoryList(Article $article, Category $category, Relationship $relation) {
//$categorys = $category->get();
$categorys = $category->paginate(3);
$categorys->setPath('home');
/* direct to view with $article_id */
return view('themes.default1.client.kb.article-list.categoryList', compact('categorys', 'article_id'));
}
// static function timezone($utc) {
// $set = Settings::whereId('1')->first();
// $tz = $set->timezone;
// $format = $set->dateformat;
// //$utc = date('M d Y h:i:s A');
// //echo 'UTC : ' . $utc;
// date_default_timezone_set($tz);
// $offset = date('Z', strtotime($utc));
// //print "offset: $offset \n";
// $date = date($format, strtotime($utc) + $offset);
// return $date;
// //return substr($date, 0, -6);
// }
public function clientProfile() {
$user = Auth::user();
return view('themes.default1.client.kb.article-list.profile', compact('user'));
}
public function postClientProfile($id, ProfileRequest $request) {
$user = Auth::user();
$user->gender = $request->input('gender');
$user->save();
if ($user->profile_pic == 'avatar5.png' || $user->profile_pic == 'avatar2.png') {
if ($request->input('gender') == 1) {
$name = 'avatar5.png';
$destinationPath = 'lb-faveo/dist/img';
$user->profile_pic = $name;
} elseif ($request->input('gender') == 0) {
$name = 'avatar2.png';
$destinationPath = 'lb-faveo/dist/img';
$user->profile_pic = $name;
}
}
if (Input::file('profile_pic')) {
//$extension = Input::file('profile_pic')->getClientOriginalExtension();
$name = Input::file('profile_pic')->getClientOriginalName();
$destinationPath = 'lb-faveo/dist/img';
$fileName = rand(0000, 9999) . '.' . $name;
//echo $fileName;
Input::file('profile_pic')->move($destinationPath, $fileName);
$user->profile_pic = $fileName;
} else {
$user->fill($request->except('profile_pic', 'gender'))->save();
return redirect('guest')->with('success', 'Profile Updated sucessfully');
}
if ($user->fill($request->except('profile_pic'))->save()) {
return redirect('guest')->with('success', 'Profile Updated sucessfully');
}
}
public function postClientProfilePassword($id, ProfilePassword $request) {
$user = Auth::user();
//echo $user->password;
if (Hash::check($request->input('old_password'), $user->getAuthPassword())) {
$user->password = Hash::make($request->input('new_password'));
$user->save();
return redirect()->back()->with('success', 'Password Updated sucessfully');
} else {
return redirect()->back()->with('fails', 'Password was not Updated');
}
}
}

View File

@@ -395,7 +395,7 @@ class InstallController extends Controller {
File::put($install, $datacontent);
$smtpfilepath = "\App\Http\Controllers\Common\SettingsController::smtp()";
$path22 = app_path('Http/routes.php');
$path22 = app_path('Http\routes.php');
$content23 = File::get($path22);
$content23 = str_replace('"%smtplink%"', $smtpfilepath, $content23);
File::put($path22, $content23);

View File

@@ -0,0 +1,30 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class ArticleRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required|unique:article',
'description' => 'required',
'category_id' => 'required',
];
}
}

View File

@@ -0,0 +1,30 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class CategoryRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required|unique:category',
'description' => 'required',
];
}
}

View File

@@ -0,0 +1,30 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class CommentRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required|max:50',
'email' => 'required|email',
'website' => 'url',
'comment' => 'required|max:500',
];
}
}

View File

@@ -0,0 +1,30 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class ContactRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'email' => 'required|email',
'subject' => 'required|max:20',
'message' => 'required|max:60',
];
}
}

View File

@@ -0,0 +1,29 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class FooterRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'title' => 'required',
//'description' => 'required',
];
}
}

View File

@@ -0,0 +1,37 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
/**
* InstallerRequest
*
* @package Request
* @author Ladybird <info@ladybirdweb.com>
*/
class InstallerRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'firstname' => 'required|max:20',
'Lastname' => 'required|max:20',
'email' => 'required|max:50|email',
'username' => 'required|max:50|min:3',
'password' => 'required|min:6',
'confirmpassword' => 'required|same:password',
];
}
}

View File

@@ -0,0 +1,30 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class PageRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'name' => 'required',
'slug' => 'required|unique:pages',
//'description' => 'required',
];
}
}

View File

@@ -0,0 +1,31 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class ProfilePassword extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'old_password' => 'required',
'new_password' => 'required|min:6',
'confirm_password' => 'required|same:new_password'
];
}
}

View File

@@ -0,0 +1,29 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class ProfileRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
'firstname' => 'required',
'lastname' => 'required',
'profile_pic' => 'mimes:png,jpeg',
];
}
}

View File

@@ -0,0 +1,27 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class SearchRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
's' => 'required',
];
}
}

View File

@@ -0,0 +1,28 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class SettingsRequests extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
return [
// 'company_name' => 'required',
// 'website' => 'required|url',
];
}
}

View File

@@ -0,0 +1,42 @@
<?php namespace App\Http\Requests\kb;
use App\Http\Requests\Request;
class SocialRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'linkedin' =>'url',
'stumble' =>'url',
'google' =>'url',
'deviantart' =>'url',
'flickr' =>'url',
'skype' =>'url',
'rss' =>'url',
'twitter' =>'url',
'facebook' =>'url',
'youtube' =>'url',
'vimeo' =>'url',
'pinterest' =>'url',
'dribbble' =>'url',
'instagram' =>'url'
];
}
}

View File

@@ -1,5 +1,7 @@
<?php
"%smtplink%";
"%smtplink%";
/*
|--------------------------------------------------------------------------
| Application Routes
@@ -11,15 +13,11 @@
|
*/
//Route::get('/', 'WelcomeController@index');
//Route::get('/', 'HomeController@index');
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
// Route::get('login','Auth\AuthController@getLogin');
$router->get('getmail/{token}', 'Auth\AuthController@getMail');
/*
@@ -29,10 +27,6 @@ $router->get('getmail/{token}', 'Auth\AuthController@getMail');
| Here is defining entire routes for the Admin Panel
|
*/
// To get the dash board
//Route::get('dashboard', 'HomeController@index');
Route::group(['middleware' => 'roles', 'middleware' => 'auth'], function () {
// resource is a function to process create,edit,read and delete
Route::resource('groups', 'Admin\helpdesk\GroupController'); // for group module, for CRUD
@@ -65,7 +59,6 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth'], function () {
Route::get('agent-profile-page/{id}',['as'=>'agent.profile.page','uses'=>'Admin\helpdesk\AgentController@agent_profile']);
Route::get('getcompany', 'Admin\helpdesk\SettingsController@getcompany'); // direct to company setting page
Route::patch('postcompany/{id}', 'Admin\helpdesk\SettingsController@postcompany'); // Updating the Company table with requests
@@ -94,65 +87,39 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth'], function () {
Route::patch('postalert/{id}', 'Admin\helpdesk\SettingsController@postalert'); // Updating the Alert table with requests
/* User profile edit get */
Route::get('admin-profile', 'Admin\helpdesk\ProfileController@getProfile');
/* Admin profile get */
Route::get('admin-profile-edit', 'Admin\helpdesk\ProfileController@getProfileedit');
/* Admin Profile Post */
Route::patch('admin-profile', 'Admin\helpdesk\ProfileController@postProfileedit');
/* Admin Profile Password Post */
Route::patch('admin-profile-password', 'Admin\helpdesk\ProfileController@postProfilePassword');
/* get the create footer page for admin */
Route::get('create-footer', 'Common\SettingsController@CreateFooter');
Route::get('admin-profile', 'Admin\helpdesk\ProfileController@getProfile'); /* User profile edit get */
/* post footer to insert to database */
Route::patch('post-create-footer/{id}', 'Common\SettingsController@PostFooter');
Route::get('admin-profile-edit', 'Admin\helpdesk\ProfileController@getProfileedit');/* Admin profile get */
/* get the create footer page for admin */
Route::get('create-footer2', 'Common\SettingsController@CreateFooter2');
Route::patch('admin-profile', 'Admin\helpdesk\ProfileController@postProfileedit');/* Admin Profile Post */
Route::patch('admin-profile-password', 'Admin\helpdesk\ProfileController@postProfilePassword');/* Admin Profile Password Post */
/* post footer to insert to database */
Route::patch('post-create-footer2/{id}', 'Common\SettingsController@PostFooter2');
Route::get('create-footer', 'Common\SettingsController@CreateFooter');/* get the create footer page for admin */
/* get the create footer page for admin */
Route::get('create-footer3', 'Common\SettingsController@CreateFooter3');
Route::patch('post-create-footer/{id}', 'Common\SettingsController@PostFooter');/* post footer to insert to database */
/* post footer to insert to database */
Route::patch('post-create-footer3/{id}', 'Common\SettingsController@PostFooter3');
Route::get('create-footer2', 'Common\SettingsController@CreateFooter2');/* get the create footer page for admin */
/* get the create footer page for admin */
Route::get('create-footer4', 'Common\SettingsController@CreateFooter4');
Route::patch('post-create-footer2/{id}', 'Common\SettingsController@PostFooter2'); /* post footer to insert to database */
Route::get('create-footer3', 'Common\SettingsController@CreateFooter3'); /* get the create footer page for admin */
Route::patch('post-create-footer3/{id}', 'Common\SettingsController@PostFooter3'); /* post footer to insert to database */
Route::get('create-footer4', 'Common\SettingsController@CreateFooter4'); /* get the create footer page for admin */
Route::patch('post-create-footer4/{id}', 'Common\SettingsController@PostFooter4'); /* post footer to insert to database */
Route::get('getsmtp',['as'=>'getsmtp','uses'=>'Common\SettingsController@getsmtp']); /* get the create footer page for admin */
/* post footer to insert to database */
Route::patch('post-create-footer4/{id}', 'Common\SettingsController@PostFooter4');
Route::patch('post-smtp',['as'=>'post_smtp','uses'=>'Common\SettingsController@postsmtp']); /* post footer to insert to database */
/* get the create footer page for admin */
Route::get('getsmtp',['as'=>'getsmtp','uses'=>'Common\SettingsController@getsmtp']);
/* post footer to insert to database */
Route::patch('post-smtp',['as'=>'post_smtp','uses'=>'Common\SettingsController@postsmtp']);
Route::get('version-check',['as'=>'version-check','uses'=>'Common\SettingsController@version_check']); /* Check version */
/* Check version */
Route::get('version-check',['as'=>'version-check','uses'=>'Common\SettingsController@version_check']);
Route::post('post-version-check',['as'=>'post-version-check','uses'=>'Common\SettingsController@post_version_check']); /* post Check version */
/* post Check version */
Route::post('post-version-check',['as'=>'post-version-check','uses'=>'Common\SettingsController@post_version_check']);
/* get Check update */
Route::get('checkUpdate',['as'=>'checkupdate','uses'=>'Common\SettingsController@getupdate']);
});
/* calling ticket.blade.php file */
// $router->get('tickets','Admin\ThreadController@getTickets');
/* calling timeline.blade.php file */
Route::get('time', function () {
return view('themes.default1.admin.tickets.timeline');
Route::get('checkUpdate',['as'=>'checkupdate','uses'=>'Common\SettingsController@getupdate']); /* get Check update */
});
/*
@@ -164,132 +131,90 @@ Route::get('time', function () {
|
*/
Route::group(['middleware' => 'role.agent', 'middleware' => 'auth'], function () {
/* User router is used to control the CRUD of user */
Route::resource('user', 'Agent\helpdesk\UserController');
/* organization router used to deal CRUD function of organization */
Route::resource('organizations', 'Agent\helpdesk\OrganizationController');
Route::resource('user', 'Agent\helpdesk\UserController'); /* User router is used to control the CRUD of user */
/* User profile get */
Route::get('profile',['as'=>'profile' , 'uses'=> 'Agent\helpdesk\UserController@getProfile']);
Route::resource('organizations', 'Agent\helpdesk\OrganizationController'); /* organization router used to deal CRUD function of organization */
/* User profile edit get */
Route::get('profile-edit', ['as'=>'agent-profile-edit','uses'=>'Agent\helpdesk\UserController@getProfileedit']);
Route::get('profile',['as'=>'profile' , 'uses'=> 'Agent\helpdesk\UserController@getProfile']); /* User profile get */
/* User Profile Post */
Route::patch('agent-profile',['as'=>'agent-profile','uses'=> 'Agent\helpdesk\UserController@postProfileedit']);
Route::get('profile-edit', ['as'=>'agent-profile-edit','uses'=>'Agent\helpdesk\UserController@getProfileedit']); /* User profile edit get */
/* Profile Password Post */
Route::patch('agent-profile-password/{id}', 'Agent\helpdesk\UserController@postProfilePassword');
Route::patch('agent-profile',['as'=>'agent-profile','uses'=> 'Agent\helpdesk\UserController@postProfileedit']); /* User Profile Post */
/* Canned list */
Route::get('canned/list',['as'=>'canned.list','uses'=>'Agent\helpdesk\CannedController@index']);
Route::patch('agent-profile-password/{id}', 'Agent\helpdesk\UserController@postProfilePassword'); /* Profile Password Post */
/* Canned create */
Route::get('canned/create',['as'=>'canned.create','uses'=>'Agent\helpdesk\CannedController@create']);
Route::get('canned/list',['as'=>'canned.list','uses'=>'Agent\helpdesk\CannedController@index']); /* Canned list */
/* Canned store */
Route::patch('canned/store',['as'=>'canned.store','uses'=>'Agent\helpdesk\CannedController@store']);
Route::get('canned/create',['as'=>'canned.create','uses'=>'Agent\helpdesk\CannedController@create']); /* Canned create */
/* Canned edit */
Route::get('canned/edit/{id}',['as'=>'canned.edit','uses'=>'Agent\helpdesk\CannedController@edit']);
Route::patch('canned/store',['as'=>'canned.store','uses'=>'Agent\helpdesk\CannedController@store']); /* Canned store */
/* Canned update */
Route::patch('canned/update/{id}',['as'=>'canned.update','uses'=>'Agent\helpdesk\CannedController@update']);
Route::get('canned/edit/{id}',['as'=>'canned.edit','uses'=>'Agent\helpdesk\CannedController@edit']); /* Canned edit */
/* Canned show */
Route::get('canned/show/{id}',['as'=>'canned.show','uses'=>'Agent\helpdesk\CannedController@show']);
Route::patch('canned/update/{id}',['as'=>'canned.update','uses'=>'Agent\helpdesk\CannedController@update']); /* Canned update */
/* Canned delete */
Route::delete('canned/destroy/{id}',['as'=>'canned.destroy','uses'=>'Agent\helpdesk\CannedController@destroy']);
Route::get('canned/show/{id}',['as'=>'canned.show','uses'=>'Agent\helpdesk\CannedController@show']); /* Canned show */
// Route::get('/abcd', 'GuestController@getList');
// Route::get('/qwer', ['as' => 'thread', 'uses' => 'GuestController@getThread']);
Route::delete('canned/destroy/{id}',['as'=>'canned.destroy','uses'=>'Agent\helpdesk\CannedController@destroy']); /* Canned delete */
/* Fetch Emails */
Route::get('/test', ['as' => 'thr', 'uses' => 'Agent\helpdesk\MailController@fetchdata']);
Route::get('/test', ['as' => 'thr', 'uses' => 'Agent\helpdesk\MailController@fetchdata']); /* Fetch Emails */
/* Get Ticket */
Route::get('/ticket', ['as' => 'ticket', 'uses' => 'Agent\helpdesk\TicketController@ticket_list']);
Route::get('/ticket', ['as' => 'ticket', 'uses' => 'Agent\helpdesk\TicketController@ticket_list']); /* Get Ticket */
/* Get Inbox Ticket */
Route::get('/ticket/inbox', ['as' => 'inbox.ticket', 'uses' => 'Agent\helpdesk\TicketController@inbox_ticket_list']);
Route::get('/ticket/inbox', ['as' => 'inbox.ticket', 'uses' => 'Agent\helpdesk\TicketController@inbox_ticket_list']); /* Get Inbox Ticket */
/* Get Open Ticket */
Route::get('/ticket/open', ['as' => 'open.ticket', 'uses' => 'Agent\helpdesk\TicketController@open_ticket_list']);
Route::get('/ticket/open', ['as' => 'open.ticket', 'uses' => 'Agent\helpdesk\TicketController@open_ticket_list']); /* Get Open Ticket */
/* Get Answered Ticket */
Route::get('/ticket/answered', ['as' => 'answered.ticket', 'uses' => 'Agent\helpdesk\TicketController@answered_ticket_list']);
Route::get('/ticket/answered', ['as' => 'answered.ticket', 'uses' => 'Agent\helpdesk\TicketController@answered_ticket_list']); /* Get Answered Ticket */
/* Get Tickets Assigned to logged user */
Route::get('/ticket/myticket', ['as' => 'myticket.ticket', 'uses' => 'Agent\helpdesk\TicketController@myticket_ticket_list']);
Route::get('/ticket/myticket', ['as' => 'myticket.ticket', 'uses' => 'Agent\helpdesk\TicketController@myticket_ticket_list']); /* Get Tickets Assigned to logged user */
/* Get Overdue Ticket */
Route::get('/ticket/overdue', ['as' => 'overdue.ticket', 'uses' => 'Agent\helpdesk\TicketController@overdue_ticket_list']);
Route::get('/ticket/overdue', ['as' => 'overdue.ticket', 'uses' => 'Agent\helpdesk\TicketController@overdue_ticket_list']); /* Get Overdue Ticket */
/* Get Closed Ticket */
Route::get('/ticket/closed', ['as' => 'closed.ticket', 'uses' => 'Agent\helpdesk\TicketController@closed_ticket_list']);
Route::get('/ticket/closed', ['as' => 'closed.ticket', 'uses' => 'Agent\helpdesk\TicketController@closed_ticket_list']); /* Get Closed Ticket */
/* Get Assigned Ticket */
Route::get('/ticket/assigned', ['as' => 'assigned.ticket', 'uses' => 'Agent\helpdesk\TicketController@assigned_ticket_list']);
Route::get('/ticket/assigned', ['as' => 'assigned.ticket', 'uses' => 'Agent\helpdesk\TicketController@assigned_ticket_list']); /* Get Assigned Ticket */
/* Get Create New Ticket */
Route::get('/newticket', ['as' => 'newticket', 'uses' => 'Agent\helpdesk\TicketController@newticket']);
Route::get('/newticket', ['as' => 'newticket', 'uses' => 'Agent\helpdesk\TicketController@newticket']); /* Get Create New Ticket */
/* Post Create New Ticket */
Route::post('/newticket/post', ['as' => 'post.newticket', 'uses' => 'Agent\helpdesk\TicketController@post_newticket']);
Route::post('/newticket/post', ['as' => 'post.newticket', 'uses' => 'Agent\helpdesk\TicketController@post_newticket']); /* Post Create New Ticket */
/* Get Thread by ID */
Route::get('/thread/{id}', ['as' => 'ticket.thread', 'uses' => 'Agent\helpdesk\TicketController@thread']);
Route::get('/thread/{id}', ['as' => 'ticket.thread', 'uses' => 'Agent\helpdesk\TicketController@thread']); /* Get Thread by ID */
/* Patch Thread Reply */
Route::patch('/thread/reply/{id}', ['as' => 'ticket.reply', 'uses' => 'Agent\helpdesk\TicketController@reply']);
Route::patch('/thread/reply/{id}', ['as' => 'ticket.reply', 'uses' => 'Agent\helpdesk\TicketController@reply']); /* Patch Thread Reply */
/* Patch Internal Note */
Route::patch('/internal/note/{id}', ['as' => 'Internal.note', 'uses' => 'Agent\helpdesk\TicketController@InternalNote']);
Route::patch('/internal/note/{id}', ['as' => 'Internal.note', 'uses' => 'Agent\helpdesk\TicketController@InternalNote']); /* Patch Internal Note */
/* Patch Ticket assigned to whom */
Route::patch('/ticket/assign/{id}', ['as' => 'assign.ticket', 'uses' => 'Agent\helpdesk\TicketController@assign']);
Route::patch('/ticket/assign/{id}', ['as' => 'assign.ticket', 'uses' => 'Agent\helpdesk\TicketController@assign']); /* Patch Ticket assigned to whom */
/* Patchi Ticket Edit */
Route::patch('/ticket/post/edit/{id}', ['as' => 'ticket.post.edit', 'uses' => 'Agent\helpdesk\TicketController@ticket_edit_post']);
Route::patch('/ticket/post/edit/{id}', ['as' => 'ticket.post.edit', 'uses' => 'Agent\helpdesk\TicketController@ticket_edit_post']); /* Patchi Ticket Edit */
/* Get Print Ticket */
Route::get('/ticket/print/{id}', ['as' => 'ticket.print', 'uses' => 'Agent\helpdesk\TicketController@ticket_print']);
Route::get('/ticket/print/{id}', ['as' => 'ticket.print', 'uses' => 'Agent\helpdesk\TicketController@ticket_print']); /* Get Print Ticket */
/* Get Ticket Close */
Route::get('/ticket/close/{id}', ['as' => 'ticket.close', 'uses' => 'Agent\helpdesk\TicketController@close']);
Route::get('/ticket/close/{id}', ['as' => 'ticket.close', 'uses' => 'Agent\helpdesk\TicketController@close']); /* Get Ticket Close */
/* Get ticket Resolve */
Route::get('/ticket/resolve/{id}', ['as' => 'ticket.resolve', 'uses' => 'Agent\helpdesk\TicketController@resolve']);
Route::get('/ticket/resolve/{id}', ['as' => 'ticket.resolve', 'uses' => 'Agent\helpdesk\TicketController@resolve']); /* Get ticket Resolve */
/* Get Ticket Open */
Route::get('/ticket/open/{id}', ['as' => 'ticket.open', 'uses' => 'Agent\helpdesk\TicketController@open']);
Route::get('/ticket/open/{id}', ['as' => 'ticket.open', 'uses' => 'Agent\helpdesk\TicketController@open']); /* Get Ticket Open */
/* Get Ticket Delete */
Route::get('/ticket/delete/{id}', ['as' => 'ticket.delete', 'uses' => 'Agent\helpdesk\TicketController@delete']);
Route::get('/ticket/delete/{id}', ['as' => 'ticket.delete', 'uses' => 'Agent\helpdesk\TicketController@delete']); /* Get Ticket Delete */
/* Get Ban Email */
Route::get('/email/ban/{id}', ['as' => 'ban.email', 'uses' => 'Agent\helpdesk\TicketController@ban']);
Route::get('/email/ban/{id}', ['as' => 'ban.email', 'uses' => 'Agent\helpdesk\TicketController@ban']); /* Get Ban Email */
/* Get Ticket Surrender */
Route::get('/ticket/surrender/{id}', ['as' => 'ticket.surrender', 'uses' => 'Agent\helpdesk\TicketController@surrender']);
Route::get('/ticket/surrender/{id}', ['as' => 'ticket.surrender', 'uses' => 'Agent\helpdesk\TicketController@surrender']); /* Get Ticket Surrender */
Route::get('/aaaa', 'Client\helpdesk\GuestController@ticket_number');
/* To show Deleted Tickets */
Route::get('trash', 'Agent\helpdesk\TicketController@trash');
Route::get('trash', 'Agent\helpdesk\TicketController@trash'); /* To show Deleted Tickets */
/* To show Unassigned Tickets */
Route::get('unassigned', 'Agent\helpdesk\TicketController@unassigned');
Route::get('unassigned', 'Agent\helpdesk\TicketController@unassigned'); /* To show Unassigned Tickets */
/* To show dashboard pages */
Route::get('dashboard', 'Agent\helpdesk\DashboardController@index');
Route::get('dashboard', 'Agent\helpdesk\DashboardController@index'); /* To show dashboard pages */
Route::get('agen', 'Agent\helpdesk\DashboardController@ChartData');
/* get image */
Route::get('image/{id}', ['as'=>'image', 'uses'=>'Agent\helpdesk\MailController@get_data']);
Route::get('agen', 'Agent\helpdesk\DashboardController@ChartData');
Route::get('image/{id}', ['as'=>'image', 'uses'=>'Agent\helpdesk\MailController@get_data']); /* get image */
Route::get('thread/auto/{id}', 'Agent\helpdesk\TicketController@autosearch');
@@ -316,15 +241,15 @@ Route::group(['middleware' => 'role.agent', 'middleware' => 'auth'], function ()
Route::patch('/head-org/{id}','Agent\helpdesk\OrganizationController@Head_Org');
// Department ticket
// Open
Route::get('/{dept}/open',['as'=>'dept.open.ticket','uses'=>'Agent\helpdesk\TicketController@deptopen']);
// Inprogress
Route::get('/{dept}/inprogress',['as'=>'dept.inprogress.ticket','uses'=>'Agent\helpdesk\TicketController@deptinprogress']);
// Closed
Route::get('/{dept}/closed',['as'=>'dept.closed.ticket','uses'=>'Agent\helpdesk\TicketController@deptclose']);
Route::get('/{dept}/open',['as'=>'dept.open.ticket','uses'=>'Agent\helpdesk\TicketController@deptopen']); // Open
Route::get('/{dept}/inprogress',['as'=>'dept.inprogress.ticket','uses'=>'Agent\helpdesk\TicketController@deptinprogress']); // Inprogress
Route::get('/{dept}/closed',['as'=>'dept.closed.ticket','uses'=>'Agent\helpdesk\TicketController@deptclose']); // Closed
});
// cscdds
/*
|------------------------------------------------------------------
|Guest Routes
@@ -352,169 +277,244 @@ Route::any('getdata', function() {
}
});
/* get the form for create a ticket by guest user */
Route::get('getform', ['as'=>'guest.getform' ,'uses'=> 'Client\helpdesk\FormController@getForm']);
/* post the AJAX form for create a ticket by guest user */
Route::post('postform/{id}', 'Client\helpdesk\FormController@postForm');
/* post the form to store the value */
Route::post('postedform', 'Client\helpdesk\FormController@postedForm');
//testing checkbox auto-populate
Route::get('check', 'CheckController@getcheck');
Route::get('getform', ['as'=>'guest.getform' ,'uses'=> 'Client\helpdesk\FormController@getForm']); /* get the form for create a ticket by guest user */
Route::post('postform/{id}', 'Client\helpdesk\FormController@postForm'); /* post the AJAX form for create a ticket by guest user */
Route::post('postedform', 'Client\helpdesk\FormController@postedForm'); /* post the form to store the value */
Route::get('check', 'CheckController@getcheck'); //testing checkbox auto-populate
Route::post('postcheck/{id}', 'CheckController@postcheck');
//guest layout
Route::get('home', ['as'=>'home', 'uses'=>'Client\helpdesk\WelcomepageController@index']);
Route::get('home', ['as'=>'home', 'uses'=>'Client\helpdesk\WelcomepageController@index']); //guest layout
Route::get('/', ['as'=>'/', 'uses'=>'Client\helpdesk\WelcomepageController@index']);
//getform
Route::get('form',['as'=>'form','uses'=>'Client\helpdesk\FormController@getForm']);
//detail ticket information
Route::get('mytickets/{id}', ['as' => 'ticketinfo', 'uses' => 'Client\helpdesk\GuestController@singleThread']);
//ticket ckeck
Route::post('checkmyticket', 'Client\helpdesk\GuestController@PostCheckTicket');
//detail ticket information
Route::get('check_ticket/{id}', ['as' => 'check_ticket', 'uses' => 'Client\helpdesk\GuestController@get_ticket_email']);
Route::get('form',['as'=>'form','uses'=>'Client\helpdesk\FormController@getForm']); //getform
Route::get('mytickets/{id}', ['as' => 'ticketinfo', 'uses' => 'Client\helpdesk\GuestController@singleThread']); //detail ticket information
Route::post('checkmyticket', 'Client\helpdesk\GuestController@PostCheckTicket'); //ticket ckeck
Route::get('check_ticket/{id}', ['as' => 'check_ticket', 'uses' => 'Client\helpdesk\GuestController@get_ticket_email']); //detail ticket information
//testing ckeditor
//===================================================================================
Route::group(['middleware' => 'role.user', 'middleware' => 'auth'], function () {
/* User profile get */
Route::get('client-profile', ['as'=>'client.profile', 'uses'=>'Client\helpdesk\GuestController@getProfile']);
Route::get('client-profile', ['as'=>'client.profile', 'uses'=>'Client\helpdesk\GuestController@getProfile']); /* User profile get */
Route::get('mytickets', ['as' => 'ticket2', 'uses' => 'Client\helpdesk\GuestController@getMyticket']);
/* Get my tickets */
Route::get('myticket/{id}', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@thread']);
/* User Profile Post */
Route::patch('client-profile-edit', 'Client\helpdesk\GuestController@postProfile');
/* Profile Password Post */
Route::patch('client-profile-password', 'Client\helpdesk\GuestController@postProfilePassword');
Route::get('myticket/{id}', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@thread']); /* Get my tickets */
Route::patch('client-profile-edit', 'Client\helpdesk\GuestController@postProfile'); /* User Profile Post */
Route::patch('client-profile-password', 'Client\helpdesk\GuestController@postProfilePassword'); /* Profile Password Post */
Route::post('post/reply/{id}',['as'=>'client.reply','uses'=>'Client\helpdesk\ClientTicketController@reply']);
});
//====================================================================================
/* Check your Ticket */
Route::get('checkticket', 'Client\helpdesk\ClientTicketController@getCheckTicket');
/* Get my tickets */
Route::get('myticket', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@getMyticket']);
/* Get my tickets */
Route::get('myticket/{id}', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@thread']);
/* post Check Ticket */
Route::post('postcheck', 'Client\helpdesk\GuestController@PostCheckTicket');
Route::get('postcheck', 'Client\helpdesk\GuestController@PostCheckTicket');
Route::post('post-ticket-reply/{id}', 'Client\helpdesk\FormController@post_ticket_reply');
Route::get('checkticket', 'Client\helpdesk\ClientTicketController@getCheckTicket'); /* Check your Ticket */
Route::get('myticket', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@getMyticket']);/* Get my tickets */
Route::get('myticket/{id}', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@thread']);/* Get my tickets */
Route::post('postcheck', 'Client\helpdesk\GuestController@PostCheckTicket');/* post Check Ticket */
Route::get('postcheck', 'Client\helpdesk\GuestController@PostCheckTicket');
Route::post('post-ticket-reply/{id}', 'Client\helpdesk\FormController@post_ticket_reply');
/* 404 page */
Route::get('404', 'error\ErrorController@error404');
// Route::get('404', 'error\ErrorController@error404');
// installer
Route::get('/serial', array(
'as' => 'serialkey',
'uses' => 'Installer\helpdesk\InstallController@serialkey',
));
Route::post('/CheckSerial/{id}', array(
'as' => 'CheckSerial',
'uses' => 'Installer\helpdesk\InstallController@PostSerialKey',
));
Route::get('/step1', array(
'as' => 'licence',
'uses' => 'Installer\helpdesk\InstallController@licence',
));
Route::post('/step1post', array(
'as' => 'postlicence',
'uses' => 'Installer\helpdesk\InstallController@licencecheck',
));
Route::get('/step2', array(
'as' => 'prerequisites',
'uses' => 'Installer\helpdesk\InstallController@prerequisites',
));
Route::post('/step2post', array(
'as' => 'postprerequisites',
'uses' => 'Installer\helpdesk\InstallController@prerequisitescheck',
));
Route::get('/step3', array(
'as' => 'localization',
'uses' => 'Installer\helpdesk\InstallController@localization',
));
Route::post('/step3post', array(
'as' => 'postlocalization',
'uses' => 'Installer\helpdesk\InstallController@localizationcheck',
));
Route::get('/step4', array(
'as' => 'configuration',
'uses' => 'Installer\helpdesk\InstallController@configuration',
));
Route::post('/step4post', array(
'as' => 'postconfiguration',
'uses' => 'Installer\helpdesk\InstallController@configurationcheck',
));
Route::get('/step5', array(
'as' => 'database',
'uses' => 'Installer\helpdesk\InstallController@database',
));
Route::get('/step6', array(
'as' => 'account',
'uses' => 'Installer\helpdesk\InstallController@account',
));
Route::post('/step6post', array(
'as' => 'postaccount',
'uses' => 'Installer\helpdesk\InstallController@accountcheck',
));
Route::get('/final', array(
'as' => 'final',
'uses' => 'Installer\helpdesk\InstallController@finalize',
));
Route::post('/finalpost', array(
'as' => 'postfinal',
'uses' => 'Installer\helpdesk\InstallController@finalcheck',
));
Route::patch('/postconnection', array(
'as' => 'postconnection',
'uses' => 'Installer\helpdesk\InstallController@postconnection',
));
/*
|============================================================
| Installer Routes
|============================================================
| These routes are for installer
|
*/
Route::get('/serial', ['as' => 'serialkey' ,'uses' => 'Installer\helpdesk\InstallController@serialkey']);
Route::post('/CheckSerial/{id}', ['as' => 'CheckSerial', 'uses' => 'Installer\helpdesk\InstallController@PostSerialKey']);
Route::get('/step1', ['as' => 'licence', 'uses' => 'Installer\helpdesk\InstallController@licence']);
Route::post('/step1post', ['as' => 'postlicence', 'uses' => 'Installer\helpdesk\InstallController@licencecheck']);
Route::get('/step2', ['as' => 'prerequisites', 'uses' => 'Installer\helpdesk\InstallController@prerequisites']);
Route::post('/step2post', ['as' => 'postprerequisites', 'uses' => 'Installer\helpdesk\InstallController@prerequisitescheck']);
Route::get('/step3', ['as' => 'localization', 'uses' => 'Installer\helpdesk\InstallController@localization']);
Route::post('/step3post', ['as' => 'postlocalization', 'uses' => 'Installer\helpdesk\InstallController@localizationcheck']);
Route::get('/step4', ['as' => 'configuration', 'uses' => 'Installer\helpdesk\InstallController@configuration']);
Route::post('/step4post', ['as' => 'postconfiguration','uses' => 'Installer\helpdesk\InstallController@configurationcheck']);
Route::get('/step5', ['as' => 'database', 'uses' => 'Installer\helpdesk\InstallController@database']);
Route::get('/step6', ['as' => 'account','uses' => 'Installer\helpdesk\InstallController@account']);
Route::post('/step6post', ['as' => 'postaccount', 'uses' => 'Installer\helpdesk\InstallController@accountcheck']);
Route::get('/final', ['as' => 'final','uses' => 'Installer\helpdesk\InstallController@finalize']);
Route::post('/finalpost', ['as' => 'postfinal','uses' => 'Installer\helpdesk\InstallController@finalcheck']);
Route::patch('/postconnection', ['as' => 'postconnection','uses' => 'Installer\helpdesk\InstallController@postconnection']);
// cron job link
/*
|=============================================================
| Cron Job links
|=============================================================
| These links are for cron job execution
|
*/
Route::get('readmails',['as' => 'readmails', 'uses' => 'Agent\helpdesk\MailController@readmails']);
// to list of routes
Route::get('/aaa',function(){
$routeCollection = Route::getRoutes();
echo "<table style='width:100%'>";
echo "<tr>";
echo "<td width='10%'><h4>HTTP Method</h4></td>";
echo "<td width='10%'><h4>Route</h4></td>";
echo "<td width='10%'><h4>Url</h4></td>";
echo "<td width='80%'><h4>Corresponding Action</h4></td>";
echo "</tr>";
foreach ($routeCollection as $value) {
echo "<tr>";
echo "<td>" . $value->getMethods()[0] . "</td>";
echo "<td>" . $value->getName() . "</td>";
echo "<td>" . $value->getPath() . "</td>";
echo "<td>" . $value->getActionName() . "</td>";
echo "</tr>";
}
echo "</table>";
});
Route::get('503',function(){
return view('errors.503');
});
/*
|=============================================================
| View all the Routes
|=============================================================
*/
Route::get('/aaa',function(){
$routeCollection = Route::getRoutes();
echo "<table style='width:100%'>";
echo "<tr>";
echo "<td width='10%'><h4>HTTP Method</h4></td>";
echo "<td width='10%'><h4>Route</h4></td>";
echo "<td width='10%'><h4>Url</h4></td>";
echo "<td width='80%'><h4>Corresponding Action</h4></td>";
echo "</tr>";
foreach ($routeCollection as $value) {
echo "<tr>";
echo "<td>" . $value->getMethods()[0] . "</td>";
echo "<td>" . $value->getName() . "</td>";
echo "<td>" . $value->getPath() . "</td>";
echo "<td>" . $value->getActionName() . "</td>";
echo "</tr>";
}
echo "</table>";
});
Route::get('404',function(){
return view('errors.404');
});
/*
|=============================================================
| Error Routes
|=============================================================
*/
Route::get('503',function(){ return view('errors.503');});
Route::get('404',function(){return view('errors.404');});
Route::get('testmail',function(){
$e = "hello";
Config::set('mail.host', 'smtp.gmail.com');
/*
|=============================================================
| Test mail Routes
|=============================================================
*/
Route::get('testmail',function(){
$e = "hello";
Config::set('mail.host', 'smtp.gmail.com');
\Mail::send('errors.report', array('e' => $e), function ($message) {
$message->to('sujitprasad4567@gmail.com', 'sujit prasad')->subject('Error');
});
});
/* For the crud of catogory */
$router->resource('category', 'Agent\kb\CategoryController');
$router->get('category/delete/{id}', 'Agent\kb\CategoryController@destroy');
/* For the crud of article */
$router->resource('article', 'Agent\kb\ArticleController');
$router->get('article/delete/{id}', 'Agent\kb\ArticleController@destroy');
/* get settings */
$router->get('settings', ['as'=>'settings' , 'uses'=> 'Agent\kb\SettingsController@settings']);
/* post settings */
$router->patch('postsettings/{id}', 'Agent\kb\SettingsController@postSettings');
/* get the create faq page */
$router->get('create-faq',['as'=>'create-faq' , 'uses'=> 'Agent\kb\SettingsController@Faq'] );
/* post faq */
$router->patch('post-create-faq/{id}', 'Agent\kb\SettingsController@postfaq');
/* get the create page for Social- link */
$router->get('social',['as'=>'social' , 'uses'=> 'Agent\kb\SettingsController@CreateSocialLink']);
/* post Social - link for insert to database */
$router->patch('postsocial',['as'=>'post-create-social' , 'uses'=> 'Agent\kb\SettingsController@PostSocial']);
//Route for administrater to access the comment
$router->get('comment',['as'=>'comment' , 'uses'=> 'Agent\kb\SettingsController@comment']);
/* Route to define the comment should Published */
$router->get('published/{id}',['as'=>'published' , 'uses'=> 'Agent\kb\SettingsController@publish']);
/* Route for deleting comments */
$router->delete('deleted/{id}', ['as'=>'deleted' , 'uses'=>'Agent\kb\SettingsController@delete']);
/* Route for Profile */
// $router->get('profile', ['as' => 'profile', 'uses' => 'Agent\kb\SettingsController@getProfile']);
/* Profile Update */
// $router->patch('post-profile', ['as' => 'post-profile', 'uses' =>'Agent\kb\SettingsController@postProfile'] );
/* Profile password Update */
// $router->patch('post-profile-password/{id}',['as' => 'post-profile-password', 'uses' => 'Agent\kb\SettingsController@postProfilepassword']);
/* delete Logo */
$router->get('delete-logo/{id}',['as' => 'delete-logo', 'uses' => 'Agent\kb\SettingsController@deleteLogo']);
/* delete Background */
$router->get('delete-background/{id}',['as' => 'delete-background', 'uses' => 'Agent\kb\SettingsController@deleteBackground']);
$router->resource('page', 'Agent\kb\PageController');
$router->get('get-pages', ['as' => 'api.page', 'uses' => 'Agent\kb\PageController@getData']);
$router->get('page/delete/{id}',['as' => 'pagedelete', 'uses' =>'Agent\kb\PageController@destroy'] );
$router->get('comment/delete/{id}',['as' => 'commentdelete', 'uses' => 'Agent\kb\SettingsController@delete']);
$router->get('get-articles', ['as' => 'api.article', 'uses' => 'Agent\kb\ArticleController@getData']);
$router->get('get-categorys', ['as' => 'api.category', 'uses' => 'Agent\kb\CategoryController@getData']);
$router->get('get-comment', ['as' => 'api.comment', 'uses' => 'Agent\kb\SettingsController@getData']);
$router->get('test', 'ArticleController@test');
$router->get('side1', 'Agent\kb\SettingsController@side1');
$router->patch('side1/{id}', 'Agent\kb\SettingsController@postside1');
$router->get('side2', 'Agent\kb\SettingsController@side2');
$router->patch('side2/{id}', 'Agent\kb\SettingsController@postside2');
$router->post('image', 'Agent\kb\SettingsController@image');
$router->get('direct', function () {
return view('direct');
});
// Route::get('smp','HomeController@getsmtp');
// Route::get('/',['as'=>'home' , 'uses'=> 'client\kb\UserController@home'] );
/* post the comment from show page */
$router->post('postcomment/{slug}',['as'=>'postcomment' , 'uses'=> 'client\kb\UserController@postComment']);
/* get the article list */
$router->get('article-list',['as'=>'article-list' , 'uses'=> 'client\kb\UserController@getArticle']);
// /* get search values */
$router->get('search',['as'=>'search', 'uses'=> 'client\kb\UserController@search']);
/* get the selected article */
$router->get('show/{slug}',['as'=>'show' , 'uses'=> 'client\kb\UserController@show']);
$router->get('category-list', ['as'=>'category-list' , 'uses'=> 'client\kb\UserController@getCategoryList']);
/* get the categories with article */
$router->get('category-list/{id}',['as'=>'categorylist' , 'uses'=>'client\kb\UserController@getCategory']);
/* get the home page */
$router->get('home',['as'=>'home' , 'uses'=> 'client\kb\UserController@home']);
/* get the faq value to user */
$router->get('faq',['as'=>'faq' , 'uses'=>'client\kb\UserController@Faq'] );
/* get the cantact page to user */
$router->get('contact',['as'=>'contact' , 'uses'=> 'client\kb\UserController@contact']);
/* post the cantact page to controller */
$router->post('post-contact',['as'=>'post-contact' , 'uses'=> 'client\kb\UserController@postContact']);
//to get the value for page content
$router->get('pages/{name}', ['as' => 'pages', 'uses' =>'client\kb\UserController@getPage']);
//profile
$router->get('client-profile',['as' => 'client-profile', 'uses' => 'client\kb\UserController@clientProfile']);
Route::patch('client-profile-edit',['as' => 'client-profile-edit', 'uses' => 'client\kb\UserController@postClientProfile']);
Route::patch('client-profile-password/{id}',['as' => 'client-profile-password', 'uses' => 'client\kb\UserController@postClientProfilePassword']);
Route::get('/inbox/data', ['as' => 'api.inbox', 'uses' => 'Agent\helpdesk\TicketController@get_inbox']);

View File

@@ -0,0 +1,27 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
use Nicolaslopezj\Searchable\SearchableTrait;
class Article extends Model {
use SearchableTrait;
/**
* Searchable rules.
*
* @var array
*/
protected $searchable = [
'columns' => [
'name' => 10,
'slug' => 10,
'description' => 10,
],
];
/* define the table name to get the properties of article model as protected */
protected $table = 'article';
/* define the fillable field in the table */
protected $fillable = ['name', 'slug', 'description', 'type', 'status'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Category extends Model {
protected $table = 'category';
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
}

View File

@@ -0,0 +1,14 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
/**
* Define the Model of comment table
* @package default
*/
class Comment extends Model {
protected $table = 'comment';
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model {
protected $table = 'contact';
protected $fillable = ['name', 'subject', 'email', 'message'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Country extends Model {
public $table = 'country';
protected $fillable = ['country_code', 'country_name'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class DateFormat extends Model {
protected $table = 'date_time_format';
//protected $fillable = ['id', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
}

10
code/app/Model/kb/Faq.php Normal file
View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Faq extends Model {
protected $table = 'faq';
protected $fillable = ['id', 'faq'];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Footer extends Model {
protected $table = 'footer';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Footer2 extends Model {
protected $table = 'footer2';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Footer3 extends Model {
protected $table = 'footer3';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Footer4 extends Model {
protected $table = 'footer4';
protected $fillable = ['title', 'footer'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Options extends Model {
protected $table = 'options';
protected $fillable = ['option_name', 'option_value', 'created_at', 'updated_at'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Page extends Model {
protected $table = 'pages';
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
}

View File

@@ -0,0 +1,12 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Relationship extends Model {
/* define the table */
protected $table = 'article_relationship';
/* define fillable fields */
protected $fillable = ['id', 'category_id', 'article_id'];
}

View File

@@ -0,0 +1,16 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Settings extends Model {
/**
* @param $table, $fillable
* @package default
*/
protected $table = 'settings';
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Side1 extends Model {
protected $table = 'side1';
protected $fillable = ['title', 'content'];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Side2 extends Model {
protected $table = 'side2';
protected $fillable = ['title', 'content'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Social extends Model {
protected $table = 'social';
protected $fillable = ['linkedin', 'stumble', 'google', 'deviantart', 'flickr', 'skype', 'rss', 'twitter', 'facebook','youtube','vimeo','pinterest','dribbble','instagram'];
}

View File

@@ -0,0 +1,10 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Timezone extends Model {
protected $table = 'timezones';
protected $fillable = ['id', 'name', 'location'];
}

View File

@@ -0,0 +1,9 @@
<?php namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
class Zone extends Model {
protected $table = 'zone';
protected $fillable = ['zone_id', 'country_code', 'zone_name'];
}

View File

@@ -14,7 +14,9 @@
"thomaswelton/laravel-gravatar": "~1.0",
"php-imap/php-imap": "~2.0",
"neitanod/forceutf8": "dev-master",
"nicolaslopezj/searchable": "1.*"
"nicolaslopezj/searchable": "1.*",
"chumper/datatable": "dev-develop"
},
"require-dev": {

197
code/composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "99a47bdf38435fe30c3af1a550eb2942",
"hash": "5815117b0cf5c38a52ae7d2b95e37637",
"packages": [
{
"name": "bugsnag/bugsnag",
@@ -101,6 +101,59 @@
],
"time": "2015-07-22 14:48:17"
},
{
"name": "chumper/datatable",
"version": "dev-develop",
"source": {
"type": "git",
"url": "https://github.com/Chumper/Datatable.git",
"reference": "b44834db3d4e560d4368c1a04248b9e6a422ccff"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Chumper/Datatable/zipball/b44834db3d4e560d4368c1a04248b9e6a422ccff",
"reference": "b44834db3d4e560d4368c1a04248b9e6a422ccff",
"shasum": ""
},
"require": {
"illuminate/config": "~5.0",
"illuminate/support": "~5.0",
"illuminate/view": "~5.0",
"php": ">=5.3.0"
},
"require-dev": {
"mockery/mockery": "dev-master",
"orchestra/testbench": "3.1.*",
"phpunit/phpunit": "3.7.*"
},
"type": "library",
"autoload": {
"psr-0": {
"Chumper\\Datatable": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nils Plaschke",
"email": "github@nilsplaschke.de",
"homepage": "http://nilsplaschke.de",
"role": "Developer"
}
],
"description": "This is a laravel 4 package for the server and client side of datatablaes at http://datatables.net/",
"homepage": "http://github.com/Chumper/datatable",
"keywords": [
"ajax",
"datatables",
"jquery",
"laravel"
],
"time": "2015-10-26 01:21:31"
},
{
"name": "classpreloader/classpreloader",
"version": "1.4.0",
@@ -418,16 +471,16 @@
},
{
"name": "giggsey/libphonenumber-for-php",
"version": "7.0.11",
"version": "7.1.0",
"source": {
"type": "git",
"url": "https://github.com/giggsey/libphonenumber-for-php.git",
"reference": "252294eadb22635588ce83f2a8442bdfb9cb01b5"
"reference": "75277038380dbeba6c915749add6c0d38edd3719"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/252294eadb22635588ce83f2a8442bdfb9cb01b5",
"reference": "252294eadb22635588ce83f2a8442bdfb9cb01b5",
"url": "https://api.github.com/repos/giggsey/libphonenumber-for-php/zipball/75277038380dbeba6c915749add6c0d38edd3719",
"reference": "75277038380dbeba6c915749add6c0d38edd3719",
"shasum": ""
},
"require": {
@@ -477,7 +530,7 @@
"phonenumber",
"validation"
],
"time": "2015-09-16 14:33:08"
"time": "2015-10-08 14:46:18"
},
{
"name": "illuminate/html",
@@ -840,16 +893,16 @@
},
{
"name": "league/flysystem",
"version": "1.0.14",
"version": "1.0.15",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "202c7775d959f377e2e302d93e7127c47604438a"
"reference": "31525caf9e8772683672fefd8a1ca0c0736020f4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/202c7775d959f377e2e302d93e7127c47604438a",
"reference": "202c7775d959f377e2e302d93e7127c47604438a",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/31525caf9e8772683672fefd8a1ca0c0736020f4",
"reference": "31525caf9e8772683672fefd8a1ca0c0736020f4",
"shasum": ""
},
"require": {
@@ -920,20 +973,20 @@
"sftp",
"storage"
],
"time": "2015-09-22 19:18:28"
"time": "2015-09-30 22:26:59"
},
{
"name": "monolog/monolog",
"version": "1.17.1",
"version": "1.17.2",
"source": {
"type": "git",
"url": "https://github.com/Seldaek/monolog.git",
"reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422"
"reference": "bee7f0dc9c3e0b69a6039697533dca1e845c8c24"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/0524c87587ab85bc4c2d6f5b41253ccb930a5422",
"reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/bee7f0dc9c3e0b69a6039697533dca1e845c8c24",
"reference": "bee7f0dc9c3e0b69a6039697533dca1e845c8c24",
"shasum": ""
},
"require": {
@@ -947,10 +1000,11 @@
"aws/aws-sdk-php": "^2.4.9",
"doctrine/couchdb": "~1.0@dev",
"graylog2/gelf-php": "~1.0",
"jakub-onderka/php-parallel-lint": "0.9",
"php-console/php-console": "^3.1.3",
"phpunit/phpunit": "~4.5",
"phpunit/phpunit-mock-objects": "2.3.0",
"raven/raven": "~0.11",
"raven/raven": "^0.13",
"ruflin/elastica": ">=0.90 <3.0",
"swiftmailer/swiftmailer": "~5.3",
"videlalvaro/php-amqplib": "~2.4"
@@ -996,7 +1050,7 @@
"logging",
"psr-3"
],
"time": "2015-08-31 09:17:37"
"time": "2015-10-14 12:51:02"
},
{
"name": "mtdowling/cron-expression",
@@ -1125,16 +1179,16 @@
},
{
"name": "nicolaslopezj/searchable",
"version": "1.5.15",
"version": "1.6.1",
"source": {
"type": "git",
"url": "https://github.com/nicolaslopezj/searchable.git",
"reference": "bf47a9055cd873f06ac9ff32534d56a98953198f"
"reference": "8d97d2c97dc17bc0795220b11b9ce0769d7d9173"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nicolaslopezj/searchable/zipball/bf47a9055cd873f06ac9ff32534d56a98953198f",
"reference": "bf47a9055cd873f06ac9ff32534d56a98953198f",
"url": "https://api.github.com/repos/nicolaslopezj/searchable/zipball/8d97d2c97dc17bc0795220b11b9ce0769d7d9173",
"reference": "8d97d2c97dc17bc0795220b11b9ce0769d7d9173",
"shasum": ""
},
"require": {
@@ -1167,7 +1221,7 @@
"search",
"searchable"
],
"time": "2015-09-20 14:21:52"
"time": "2015-10-28 02:46:28"
},
{
"name": "nikic/php-parser",
@@ -1625,16 +1679,16 @@
},
{
"name": "symfony/event-dispatcher",
"version": "v2.7.5",
"version": "v2.7.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9"
"reference": "87a5db5ea887763fa3a31a5471b512ff1596d9b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ae4dcc2a8d3de98bd794167a3ccda1311597c5d9",
"reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/87a5db5ea887763fa3a31a5471b512ff1596d9b8",
"reference": "87a5db5ea887763fa3a31a5471b512ff1596d9b8",
"shasum": ""
},
"require": {
@@ -1645,7 +1699,6 @@
"symfony/config": "~2.0,>=2.0.5",
"symfony/dependency-injection": "~2.6",
"symfony/expression-language": "~2.6",
"symfony/phpunit-bridge": "~2.7",
"symfony/stopwatch": "~2.3"
},
"suggest": {
@@ -1679,28 +1732,25 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
"time": "2015-09-22 13:49:29"
"time": "2015-10-11 09:39:48"
},
{
"name": "symfony/filesystem",
"version": "v2.7.5",
"version": "v2.7.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "a17f8a17c20e8614c15b8e116e2f4bcde102cfab"
"reference": "56fd6df73be859323ff97418d97edc1d756df6df"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/a17f8a17c20e8614c15b8e116e2f4bcde102cfab",
"reference": "a17f8a17c20e8614c15b8e116e2f4bcde102cfab",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/56fd6df73be859323ff97418d97edc1d756df6df",
"reference": "56fd6df73be859323ff97418d97edc1d756df6df",
"shasum": ""
},
"require": {
"php": ">=5.3.9"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
@@ -1728,7 +1778,7 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
"time": "2015-09-09 17:42:36"
"time": "2015-10-18 20:23:18"
},
{
"name": "symfony/finder",
@@ -2271,16 +2321,16 @@
},
{
"name": "thomaswelton/laravel-gravatar",
"version": "1.0.0",
"version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/thomaswelton/laravel-gravatar.git",
"reference": "c688c5823778a22f511358fd0717aa44f5655a26"
"reference": "e01b473a4e89c8ebb203d0616e12894f5dd84c45"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thomaswelton/laravel-gravatar/zipball/c688c5823778a22f511358fd0717aa44f5655a26",
"reference": "c688c5823778a22f511358fd0717aa44f5655a26",
"url": "https://api.github.com/repos/thomaswelton/laravel-gravatar/zipball/e01b473a4e89c8ebb203d0616e12894f5dd84c45",
"reference": "e01b473a4e89c8ebb203d0616e12894f5dd84c45",
"shasum": ""
},
"require": {
@@ -2288,10 +2338,15 @@
"php": ">=5.4.0",
"thomaswelton/gravatarlib": "0.1.x"
},
"require-dev": {
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "4.8.*"
},
"type": "library",
"autoload": {
"psr-0": {
"Thomaswelton\\LaravelGravatar": "src/"
"psr-4": {
"Thomaswelton\\LaravelGravatar\\": "src/",
"Thomaswelton\\Tests\\LaravelGravatar\\": "tests/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -2317,7 +2372,7 @@
"laravel",
"laravel5"
],
"time": "2015-05-14 15:26:16"
"time": "2015-10-13 14:42:42"
},
{
"name": "vlucas/phpdotenv",
@@ -2688,16 +2743,16 @@
},
{
"name": "phpunit/php-code-coverage",
"version": "2.2.3",
"version": "2.2.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "ef1ca6835468857944d5c3b48fa503d5554cff2f"
"reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef1ca6835468857944d5c3b48fa503d5554cff2f",
"reference": "ef1ca6835468857944d5c3b48fa503d5554cff2f",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
"reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
"shasum": ""
},
"require": {
@@ -2746,7 +2801,7 @@
"testing",
"xunit"
],
"time": "2015-09-14 06:51:16"
"time": "2015-10-06 15:47:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -2928,16 +2983,16 @@
},
{
"name": "phpunit/phpunit",
"version": "4.8.9",
"version": "4.8.16",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "73fad41adb5b7bc3a494bb930d90648df1d5e74b"
"reference": "625f8c345606ed0f3a141dfb88f4116f0e22978e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/73fad41adb5b7bc3a494bb930d90648df1d5e74b",
"reference": "73fad41adb5b7bc3a494bb930d90648df1d5e74b",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/625f8c345606ed0f3a141dfb88f4116f0e22978e",
"reference": "625f8c345606ed0f3a141dfb88f4116f0e22978e",
"shasum": ""
},
"require": {
@@ -2996,20 +3051,20 @@
"testing",
"xunit"
],
"time": "2015-09-20 12:56:44"
"time": "2015-10-23 06:48:33"
},
{
"name": "phpunit/phpunit-mock-objects",
"version": "2.3.7",
"version": "2.3.8",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
"reference": "5e2645ad49d196e020b85598d7c97e482725786a"
"reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/5e2645ad49d196e020b85598d7c97e482725786a",
"reference": "5e2645ad49d196e020b85598d7c97e482725786a",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
"reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
"shasum": ""
},
"require": {
@@ -3052,7 +3107,7 @@
"mock",
"xunit"
],
"time": "2015-08-19 09:14:08"
"time": "2015-10-02 06:51:40"
},
{
"name": "sebastian/comparator",
@@ -3288,16 +3343,16 @@
},
{
"name": "sebastian/global-state",
"version": "1.0.0",
"version": "1.1.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
"reference": "c7428acdb62ece0a45e6306f1ae85e1c05b09c01"
"reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/c7428acdb62ece0a45e6306f1ae85e1c05b09c01",
"reference": "c7428acdb62ece0a45e6306f1ae85e1c05b09c01",
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
"reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
"shasum": ""
},
"require": {
@@ -3335,7 +3390,7 @@
"keywords": [
"global state"
],
"time": "2014-10-06 09:23:50"
"time": "2015-10-12 03:26:01"
},
{
"name": "sebastian/recursion-context",
@@ -3427,24 +3482,21 @@
},
{
"name": "symfony/yaml",
"version": "v2.7.5",
"version": "v2.7.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770"
"reference": "eca9019c88fbe250164affd107bc8057771f3f4d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/31cb2ad0155c95b88ee55fe12bc7ff92232c1770",
"reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770",
"url": "https://api.github.com/repos/symfony/yaml/zipball/eca9019c88fbe250164affd107bc8057771f3f4d",
"reference": "eca9019c88fbe250164affd107bc8057771f3f4d",
"shasum": ""
},
"require": {
"php": ">=5.3.9"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
@@ -3472,13 +3524,14 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
"time": "2015-09-14 14:14:09"
"time": "2015-10-11 09:39:48"
}
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"neitanod/forceutf8": 20
"neitanod/forceutf8": 20,
"chumper/datatable": 20
},
"prefer-stable": false,
"prefer-lowest": false,

View File

@@ -13,7 +13,7 @@ return [
|
*/
'debug' => false,
'debug' => true,
/*
|--------------------------------------------------------------------------
@@ -24,7 +24,7 @@ return [
|
*/
'version' => '1.0.1',
'version' => '1.0.2',
/*
|--------------------------------------------------------------------------
@@ -159,6 +159,7 @@ return [
'Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider',
'Vsmoraes\Pdf\PdfServiceProvider',
'Thomaswelton\LaravelGravatar\LaravelGravatarServiceProvider',
'Chumper\Datatable\DatatableServiceProvider',
],
@@ -215,6 +216,7 @@ return [
'Gravatar' => 'Thomaswelton\LaravelGravatar\Facades\Gravatar',
'UTC' => 'App\Http\Controllers\Agent\helpdesk\TicketController',
'SMTPS' => 'App\Http\Controllers\HomeController',
'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',
],

View File

@@ -11,7 +11,7 @@ return [
| stdClass object; however, you may desire to retrieve records in an
| array format for simplicity. Here you can tweak the fetch style.
|
*/
*/
'fetch' => PDO::FETCH_CLASS,
@@ -24,7 +24,7 @@ return [
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
*/
'default' => '%default%',
@@ -42,46 +42,46 @@ return [
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => storage_path() . '/database.sqlite',
'prefix' => '',
'driver' => 'sqlite',
'database' => storage_path().'/database.sqlite',
'prefix' => '',
],
'mysql' => [
'driver' => 'mysql',
'host' => '%host%',
'database' => '%database%',
'username' => '%username%',
'password' => '%password%',
'charset' => 'utf8',
'driver' => 'mysql',
'host' => '%host%',
'database' => '%database%',
'username' => '%username%',
'password' => '%password%',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
'prefix' => '',
'strict' => false,
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', 'localhost'),
'driver' => 'pgsql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'prefix' => '',
'prefix' => '',
],
],
@@ -95,22 +95,10 @@ return [
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Installer value
|--------------------------------------------------------------------------
|
| This key is used for the installer to know wether this project is
| installed or not.
|
*/
'install' => '%0%',
/*
|--------------------------------------------------------------------------
| Redis Databases
@@ -120,15 +108,17 @@ return [
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
*/
'install' => '%0%',
'redis' => [
'cluster' => false,
'default' => [
'host' => '127.0.0.1',
'port' => 6379,
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
],

View File

@@ -15,7 +15,7 @@ return [
|
*/
'driver' => '',
'driver' => 'mail',
/*
|--------------------------------------------------------------------------

1
code/database/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.sqlite

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCategoriesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('category', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->string('name');
$table->string('slug');
$table->string('description');
$table->boolean('status');
$table->integer('parent');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('categories');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateArticlesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('article', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->string('name');
$table->string('slug');
$table->text('description');
$table->boolean('status');
$table->boolean('type');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('articles');
}
}

View File

@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSettingsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('settings', function (Blueprint $table) {
$table->increments('id');
$table->string('company_name');
$table->string('phone');
$table->string('website');
$table->string('address');
$table->string('logo');
$table->string('background');
$table->string('version');
$table->string('port');
$table->string('host');
$table->string('encryption');
$table->string('email');
$table->string('password');
$table->integer('pagination');
$table->string('timezone');
$table->string('dateformat');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('settings');
}
}

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateArticleRelationshipsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('article_relationship', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->integer('article_id')->unsigned();
$table->foreign('article_id')->references('id')->on('article');
$table->integer('category_id')->unsigned();
$table->foreign('category_id')->references('id')->on('category');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('article_relationship');
}
}

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFaqsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('faqs', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('faqs');
}
}

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateContactsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('contact', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email');
$table->string('subject');
$table->string('message');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('contacts');
}
}

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCommentsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('comment', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->integer('article_id')->unsigned();
$table->foreign('article_id')->references('id')->on('article');
$table->string('name');
$table->string('email');
$table->string('website');
$table->string('comment');
$table->boolean('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('comments');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreatePagesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->boolean('status');
$table->boolean('visibility');
$table->string('slug');
$table->text('description');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('pages');
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateOptionsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('options', function (Blueprint $table) {
$table->increments('id');
$table->text('option_name');
$table->text('option_value');
$table->text('autoload');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('options');
}
}

View File

@@ -0,0 +1,43 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSocialsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('social', function (Blueprint $table) {
$table->increments('id');
$table->string('linkedin');
$table->string('stumble');
$table->string('google');
$table->string('deviantart');
$table->string('flickr');
$table->string('skype');
$table->string('rss');
$table->string('twitter');
$table->string('facebook');
$table->string('youtube');
$table->string('vimeo');
$table->string('pinterest');
$table->string('dribbble');
$table->string('instagram');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::drop('social');
}
}

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSideTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('side1', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('content');
$table->timestamps();
});
Schema::create('side2', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('content');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('side1');
Schema::drop('side2');
}
}

View File

@@ -33,7 +33,14 @@ use App\Model\helpdesk\Theme\Footer3;
use App\Model\helpdesk\Theme\Footer4;
use App\Model\helpdesk\Email\Smtp;
use App\Model\helpdesk\Utility\Version_Check;
use App\Model\kb\Options;
// Knowledge base
use App\Model\kb\Social;
use App\Model\kb\Side1;
use App\Model\kb\Side2;
use App\Model\kb\Settings;
class DatabaseSeeder extends Seeder {
@@ -291,5 +298,42 @@ class DatabaseSeeder extends Seeder {
Version_Check::create(['id'=>'1']);
$option = array(
'gmt_offset',
'date_format',
'time_format',
'date_time_format',
'sitename',
'sitedescription',
'admin_email',
'template',
'upload_url_path',
'timezone_string',
'siteurl',
'home',
'start_of_week',
'language',
'port',
'host',
'encryption',
'username',
'password',
'footer',
'uselogo',
'logo',
);
foreach ($option as $name) {
Options::create(array('option_name' => $name));
}
Social::create(['id'=>'1']);
Side1::create(['id'=>'1']);
Side2::create(['id'=>'1']);
Settings::create(['id'=>'id','paagination' => '10']);
}
}

View File

@@ -2,7 +2,7 @@
<?php
return array(
/*
/*
|----------------------------------------------------------------------------------------
| Authentication Pages [English(en)]
|----------------------------------------------------------------------------------------
@@ -13,63 +13,140 @@ return array(
|
*/
/*
|--------------------------------------
| Error
|--------------------------------------
*/
'success' => 'Success',
'fails' => 'Fails',
'alert' => 'Alert',
/*
|--------------------------------------
| Login Page
|--------------------------------------
*/
'signin' => 'Sign In',
'Login_to_start_your_session' => 'Login to start your session',
'login' => 'Login',
'remember' => 'Remember Me',
'signmein' => 'Sign me In',
'iforgot' => 'I forgot my Password',
'email_address' => 'E-Mail Address',
'password' => 'Password',
'woops' => 'Whoops!',
'theirisproblem' => 'There were some problems with your input.',
'login' => 'Login',
'theirisproblem' => 'There were some problems with your input.',
'login' => 'Login',
'e-mail' => 'E-mail',
'reg_new_member' => 'Register a new membership',
/*
|--------------------------------------
| Register Page
|--------------------------------------
*/
'registration' => 'Registration',
'full_name' => 'Full name',
'retype_password' => 'Retype Password',
'i_agree_to_the' => 'I agree to the',
'terms' => 'terms',
'register' => 'Register',
'i_already_have_a_membership' => 'I already have a membership',
/*
|--------------------------------------
| Reset Password Page
|--------------------------------------
*/
'reset_password' => 'Reset Password',
/*
|--------------------------------------
| Forgot Password Page
|--------------------------------------
*/
*/
'i_know_my_password' => 'I know my password',
'recover_passord' => 'Recover Password',
'send_password_reset_link' => 'Send pasword Reset Link',
'enter_email_to_reset_password' => 'Enter E-mail to reset password',
/*
/*
|----------------------------------------------------------------------------------------
| Staff Pages [English(en)]
| Emails Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Staff related issues to translate
| The following language lines are used in all Emails related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
/*
*/
'admin_panel' => 'Admin Panel',
/*
|--------------------------------------
| Staff index Page
| Emails Create Page
|--------------------------------------
*/
*/
'emails' => 'Emails',
'incoming_emails' => 'Incoming Emails',
'reuired_authentication' => 'Reuired Authentication',
'fetching_email_via_imap_or_pop' => 'Fetching Email via IMAP or POP',
'create_email' =>'Create Email',
'email_address' =>'Email Address',
'email_name' =>'Email Name',
'help_topic' =>'Help Topic',
'auto_response' =>'Auto Response',
'host_name' =>'Host Name',
'port_number' =>'Port Number',
'mail_box_protocol' =>'Mail Box Protocol',
'authentication_required' =>'Authentication Required',
'yes' =>'Yes',
'no' =>'No',
'header_spoofing' =>'Header Spoofing',
'allow_for_this_email' =>'Allow For This Email',
'imap_config' =>'IMAP Configuration',
/*
|--------------------------------------
| Ban Emails Create Page
|--------------------------------------
*/
'ban_lists' =>'Ban Lists',
'ban_email' =>'Ban Email',
'banlists' =>'Ban lists',
'ban_status' =>'Ban Status',
/*
|--------------------------------------
| Templates Index Page
|--------------------------------------
*/
'templates' =>'Templates',
'create_template' =>'Create Template',
'in_use' =>'In Use',
/*
|--------------------------------------
| Templates Create Page
|--------------------------------------
*/
'template_set_to_clone' =>'Template set to clone',
'language' =>'Language',
'name' =>'Name',
'user_name' =>'User Name',
'status' =>'Status',
'group' =>'Group',
'department' =>'Department',
'created' =>'Created',
'lastlogin' =>'Last Login',
'createagent' =>'Create An Agent',
'delete' =>'Delete',
'agents' =>'Agents',
'create' =>'Create',
'edit' =>'Edit',
/*
|--------------------------------------
| Diagnostics Page
|--------------------------------------
*/
'diagnostics' =>'Diagnostics',
'from' =>'From',
'to' =>'To',
'subject' =>'Subject',
'message' =>'Message',
'send' =>'Send',
/*
/*
|----------------------------------------------------------------------------------------
| Settings Pages [English(en)]
|----------------------------------------------------------------------------------------
@@ -78,31 +155,29 @@ return array(
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
*/
/*
/*
|--------------------------------------
| Company Settings Page
|--------------------------------------
*/
'company' =>'Company',
*/
'company' =>'Company',
'website' =>'Website',
'phone' =>'Phone',
'address' =>'Address',
'landing' =>'Landing Page',
'offline' =>'Offline Page',
'thank' =>'Thank Page',
'logo' =>'Logo',
'save' =>'Save',
'phone' =>'Phone',
'address' =>'Address',
'landing' =>'Landing Page',
'offline' =>'Offline Page',
'thank' =>'Thank Page',
'logo' =>'Logo',
'save' =>'Save',
/*
/*
|--------------------------------------
| System Settings Page
|--------------------------------------
*/
'system' =>'System',
*/
'system' =>'System',
'online' =>'Online',
'offline' =>'Offline',
'name/title' =>'Name/Title',
@@ -118,12 +193,11 @@ return array(
'day_date_time' =>'Day,Date And Time Format',
'timezone' =>'Default Time Zone',
/*
/*
|--------------------------------------
| Email Settings Page
|--------------------------------------
*/
*/
'email' =>'Email',
'default_template' =>'Default Template Set:',
'default_system_email' =>'Default System Email:',
@@ -143,14 +217,11 @@ return array(
'attachments' =>'Attachments',
'email_attahment_user' =>'Email attachments to the user',
/*
/*
|--------------------------------------
| Ticket Settings Page
|--------------------------------------
*/
*/
'ticket' =>'Ticket',
'default_ticket_number_format' =>'Default Ticket Number Format',
'default_ticket_number_sequence' =>'Default Ticket Number Sequence',
@@ -168,16 +239,13 @@ return array(
'enable_HTML_ticket_thread' =>'Enable HTML Ticket Thread',
'allow_client_updates' =>'Allow Client Updates',
/*
/*
|--------------------------------------
| Access Settings Page
|--------------------------------------
*/
'access' =>'Access',
'expiration_policy' =>'Password Expiration Policy',
*/
'access' =>'Access',
'expiration_policy' =>'Password Expiration Policy',
'allow_password_resets' =>'Allow Password Resets',
'reset_token_expiration' =>'Reset Token Expiration',
'agent_session_timeout' =>'Agent Session Timeout',
@@ -188,13 +256,12 @@ return array(
'user_session_timeout' =>'User Session Timeout',
'client_quick_access' =>'Client Quick Access',
/*
/*
|--------------------------------------
| Auto-Response Settings Page
|--------------------------------------
*/
'auto_responce' =>'Auto-Responce',
*/
'auto_responce' =>'Auto-Responce',
'new_ticket' =>'New Ticket',
'new_ticket_by_agent' =>'New Ticket by Agent',
'new_message' =>'New Message',
@@ -205,16 +272,16 @@ return array(
'overlimit_notice' =>'Overlimit Notice',
'email_attachments_to_the_user' =>'Email attachments to the user',
/*
/*
|--------------------------------------
| Alert & Notice Settings Page
|--------------------------------------
*/
'disable' =>'Disable',
'admin_email_2' =>'Admin Email',
'alert_notices' =>'Alert & Notices',
'new_ticket_alert' =>'New Ticket Alert',
'department_manager' =>'Department Manager',
*/
'disable' =>'Disable',
'admin_email_2' =>'Admin Email',
'alert_notices' =>'Alert & Notices',
'new_ticket_alert' =>'New Ticket Alert',
'department_manager' =>'Department Manager',
'department_members' =>'Department Members',
'organization_account_manager' =>'Organization Account Manager',
'new_message_alert' =>'New Message Alert',
@@ -231,7 +298,7 @@ return array(
'SQL_errors' =>'SQL errors',
'excessive_failed_login_attempts' =>'Excessive failed login attempts',
/*
/*
|----------------------------------------------------------------------------------------
| Manage Pages [English(en)]
|----------------------------------------------------------------------------------------
@@ -240,15 +307,15 @@ return array(
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
/*
*/
'manage' => 'Manage',
/*
|--------------------------------------
| Help Topic index Page
|--------------------------------------
*/
*/
'help_topics' => 'Help Topics',
'topic' =>'Topic',
'type' =>'Type',
'priority' =>'Priority',
@@ -256,12 +323,11 @@ return array(
'create_help_topic' =>'Create Help topic',
'action' =>'Action',
/*
/*
|--------------------------------------
| Help Topic Create Page
|--------------------------------------
*/
*/
'active' =>'Active',
'disabled' =>'Disabled',
'public' =>'Public',
@@ -277,31 +343,29 @@ return array(
'internal_notes' =>'Internal Notes',
/*
/*
|--------------------------------------
| SLA plan Index Page
|--------------------------------------
*/
*/
'sla_plans' => 'SLA Plans',
'create_SLA' =>'Create a SLA',
'grace_period' =>'Grace Period',
'added_date' =>'Added Date',
/*
/*
|--------------------------------------
| SLA plan Create Page
|--------------------------------------
*/
*/
'transient' =>'Transient',
'ticket_overdue_alert' =>'Ticket Overdue Alerts',
'transient' =>'Transient',
'ticket_overdue_alert' =>'Ticket Overdue Alerts',
/*
/*
|--------------------------------------
| Form Create Page
|--------------------------------------
*/
*/
'title' =>'Title',
'instruction' =>'Instruction',
'label' =>'Label',
@@ -309,86 +373,51 @@ return array(
'variable' =>'Variable',
'create_form' =>'Create Form',
'forms' =>'Forms',
'form_name' => 'Form Name',
'view_this_form' => 'View This Form',
'delete_from' => 'Delete Form',
'are_you_sure_you_want_to_delete' => 'Are you sure you want to Delete',
'close' => 'Close',
'instructions' => 'Instructions',
"instructions_on_creating_form" => "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",
'form_properties' => 'Form Properties',
'adding_fields' => 'Adding Fields',
"click_add_fields_button_to_add_fields" => "Click <b>'Add Fields'</b> button to add Fields",
'add_fields' => 'Add Fields',
'save_form' => 'Save Form',
'label' => 'Label',
'name' => 'Name',
'type' => 'Type',
'values(selected_fields)' => 'Values(Selected Fields)',
'required' => 'Required',
'Action' => 'Action',
'remove' => 'Remove',
/*
/*
|----------------------------------------------------------------------------------------
| Emails Pages [English(en)]
| Theme Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Emails related issues to translate
| The following language lines are used in all Theme related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
/*
*/
'themes' => 'Themes',
/*
|--------------------------------------
| Emails Create Page
| Footer Pages
|--------------------------------------
*/
'create_email' =>'Create Email',
'email_address' =>'Email Address',
'email_name' =>'Email Name',
'help_topic' =>'Help Topic',
'auto_response' =>'Auto Response',
'host_name' =>'Host Name',
'port_number' =>'Port Number',
'mail_box_protocol' =>'Mail Box Protocol',
'authentication_required' =>'Authentication Required',
'yes' =>'Yes',
'no' =>'No',
'header_spoofing' =>'Header Spoofing',
'allow_for_this_email' =>'Allow For This Email',
'imap_config' =>'IMAP Configuration',
/*
|--------------------------------------
| Ban Emails Create Page
|--------------------------------------
*/
'ban_email' =>'Ban Email',
'banlists' =>'Ban lists',
'ban_status' =>'Ban Status',
/*
|--------------------------------------
| Templates Index Page
|--------------------------------------
*/
'templates' =>'Templates',
'create_template' =>'Create Template',
'in_use' =>'In Use',
/*
|--------------------------------------
| Templates Create Page
|--------------------------------------
*/
'template_set_to_clone' =>'Template set to clone',
'language' =>'Language',
*/
'footer' => 'Footer',
'footer1' => 'Footer1',
'footer2' => 'Footer2',
'footer3' => 'Footer3',
'footer4' => 'Footer4',
/*
|--------------------------------------
| Diagnostics Page
|--------------------------------------
*/
'diagnostics' =>'Diagnostics',
'from' =>'From',
'to' =>'To',
'subject' =>'Subject',
'message' =>'Message',
'send' =>'Send',
/*
/*
|----------------------------------------------------------------------------------------
| Staff Pages [English(en)]
|----------------------------------------------------------------------------------------
@@ -397,14 +426,32 @@ return array(
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
*/
'are_you_sure' => 'Are you sure',
'staffs' => 'Staffs',
'name' =>'Name',
'user_name' =>'User Name',
'status' =>'Status',
'group' =>'Group',
'department' =>'Department',
'created' =>'Created',
'lastlogin' =>'Last Login',
'createagent' =>'Create An Agent',
'delete' =>'Delete',
'agents' =>'Agents',
'create' =>'Create',
'edit' =>'Edit',
'departments' =>'Departments',
'groups' =>'Groups',
/*
/*
|--------------------------------------
| Staff Create Page
|--------------------------------------
*/
*/
'create_agent' =>'Create Agent',
'first_name' =>'First Name',
'last_name' =>'Last Name',
@@ -425,13 +472,11 @@ return array(
'vocation_mode' =>'Vocation Mode',
'assigned_team' =>'Assigned Team',
/*
/*
|--------------------------------------
| Department Create Page
|--------------------------------------
*/
*/
'create_department' =>'Create Department',
'manager' =>'Manager',
'ticket_assignment' =>'Ticket Assignment ',
@@ -445,24 +490,22 @@ return array(
'group_access' =>'Group Access',
'department_signature' =>'Department Signature',
/*
/*
|--------------------------------------
| Team Create Page
|--------------------------------------
*/
*/
'create_team'=>'Create Team',
'team_lead'=>'Team Lead',
'assignment_alert'=>'Assignment Alert',
'disable_for_this_team'=>'Disable for this team',
'teams'=>'Teams',
/*
/*
|--------------------------------------
| Group Create Page
|--------------------------------------
*/
*/
'create_group' =>'Create Group',
'goups' =>'Goups',
'can_create_ticket' =>'Can create ticket',
@@ -482,20 +525,18 @@ return array(
'group_name' =>'Group Name',
/*
/*
|--------------------------------------
| SMTP Page
|--------------------------------------
*/
'driver' => 'Driver',
'smtp' => 'SMTP',
'host'=>'Host',
'port'=>'Port',
'encryption'=>'Encryption',
*/
'driver' => 'Driver',
'smtp' => 'SMTP',
'host'=>'Host',
'port'=>'Port',
'encryption'=>'Encryption',
/*
/*
|----------------------------------------------------------------------------------------
| Agent Panel [English(en)]
|----------------------------------------------------------------------------------------
@@ -504,35 +545,174 @@ return array(
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
*/
'agent_panel' => 'Agent Panel',
'profile' => 'Profile',
'change_password' => 'Change Password',
'sign_out' => 'Sign Out',
'Tickets' => 'TICKETS',
'inbox' => 'Inbox',
'my_tickets' => 'My Tickets',
'unassigned' => 'Unassigned',
'trash' => 'Trash',
'Updates' => 'UPDATES',
'no_new_updates' => 'No new Updates',
'check_for_updates' => 'Check for Updates',
'open' => 'Open',
'inprogress' => 'Inprogress',
'closed' => 'Closed',
'Departments' => 'DEPARTMENTS',
'tools' => 'Tools',
'canned' => 'Canned',
'knowledge_base' => 'Knowledge Base',
/*
|-----------------------------------------------
| Profile
|-----------------------------------------------
*/
'user_information' => 'User Information',
'time_zone' => 'Time-zone',
'phone_number' => 'Phone Number',
'contact_information' => 'Contact Information',
/*
/*
|-----------------------------------------------
| Dashboard
|-----------------------------------------------
*/
'dashboard' => 'Dashboard',
'line_chart' => 'Line Chart',
'statistics' => 'Statistics',
'opened' => 'Opened',
'resolved' => 'Resolved',
'closed' => 'Closed',
'deleted' => 'Deleted',
/*
|------------------------------------------------
|User Page
|------------------------------------------------
*/
*/
'user_directory' => 'User Directory',
'ban' => 'Ban',
'user' => 'User',
'users' => 'Users',
'create_user' => 'Create User',
'full_name' => 'Full Name',
'mobile' => 'Mobile',
'last_login' => 'Last Login',
'user_profile' => 'User Profile',
'assign' => 'Assign',
'open_tickets' => 'Open Tickets',
'closed_tickets' => 'Closed Tickets',
'deleted_tickets' => 'Deleted Tickets',
/*
|------------------------------------------------
|Organization Page
|------------------------------------------------
*/
*/
'organizations' => 'Organizations',
'organization' => 'Organization',
'create_organisations' => 'Create Organization',
'create_organization' => 'Create Organization',
'account_manager' => 'Account Manager',
'update' => 'update',
'please_select_an_organization' => 'Please select an Organization',
'please_select_an_user' => 'Please select an user',
'organization_profile' => 'Organization Profile',
'organization-s_head' => "Organization's Head",
'select_department_manager' => 'Select Department Manager',
'users_of' => 'Users of',
/*
|----------------------------------------------
| Ticket page
|----------------------------------------------
*/
'subject' => 'Subject',
'ticket_id' => 'Ticket ID',
'priority' => 'Priority',
'from' => 'From',
'last_replier' => 'Last Replier',
'assigned_to' => 'Assigned To',
'last_activity' => 'Last Activity',
'answered' => 'Answered',
'assigned' => 'Assigned',
'create_ticket' => 'Create Ticket',
'tickets' => 'Tickets',
'open' => 'Open',
'Ticket_Information' => 'TICKET INFORMATION',
'Ticket_Id' => 'TICKET ID',
'User' => 'USER',
'Unassigned' => 'UNASSIGNED',
'generate_pdf' => 'Generate PDF',
'change_status' => 'Change Status',
'more' => 'More',
'delete_ticket' => 'Delete Ticket',
'emergency' => 'Emergency',
'high' => 'High',
'medium' => 'Medium',
'low' => 'Low',
'sla_plan' => 'SLA Plan',
'created_date' => 'Created Date',
'due_date' => 'Due Date',
'last_response' => 'Last Response',
'source' => 'Source',
'last_message' => 'Last Message',
'reply' => 'Reply',
'response' => 'Response',
'reply_content' => 'Reply Content',
'attachment' => 'Attachment',
'internal_note' => 'Internal Note',
'this_ticket_is_under_banned_user' => 'This ticket is under banned user',
'ticket_source' => 'Ticket Source',
'are_you_sure_to_ban' => 'Are you sure to ban',
'whome_do_you_want_to_assign_ticket' => 'Whome do you want to assign ticket',
'are_you_sure_you_want_to_surrender_this_ticket' => 'Are you sure you want to surrender this Ticket',
'add_collaborator' => 'Add Collaborator',
'search_existing_users' => 'Search existing Users',
'add_new_user' => 'Add new User',
'search_existing_users_or_add_new_users' => 'Search existing users or add new users',
'search_by_email' => 'Search by Email',
'list_of_collaborators_of_this_ticket' => 'List of Collaborators of this Ticket',
'submit' => 'Submit',
'max' => 'Max',
'add_cc' => 'Add CC',
'recepients' => 'Recepients',
'select_a_canned_response' => 'Select a Canned Response',
'assign_to' => 'Assign to',
'detail' => 'Detail',
'user_details' => 'User Details',
'ticket_option' => 'Ticket Option',
'ticket_detail' => 'Ticket Detail',
/*
|------------------------------------------------
|Tools Page
|------------------------------------------------
*/
'canned_response' => 'Canned Response',
'create_canned_response' => 'Create Canned Response',
'surrender' => 'surrender',
'view' => 'View',
/*
|-----------------------------------------------
| Main text
|-----------------------------------------------
*/
'copyright' => 'Copyright',
'all_rights_reserved' => 'All right Reserved',
'powered_by' => 'Powered by',
/*
|------------------------------------------------
|Guest-User Page
|------------------------------------------------
*/
*/
'issue_summary' => 'Issue Summary',
'issue_details' => 'Issue Details',
'contact_informations' => 'Contact Informations',
@@ -551,6 +731,96 @@ return array(
'ticket_number' => 'Ticket Number',
'content' => 'Content',
/*
|------------------------------------------------
| Error Pages
|------------------------------------------------
*/
'not_found' => 'Not Found',
'oops_page_not_found' => 'Oops! Page not found',
'we_could_not_find_the_page_you_were_looking_for'=>'We could not find the page you were looking for',
'internal_server_error' => 'Internal server Error',
'be_right_back' => 'Be right back',
'sorry' => 'Sorry',
'we_are_working_on_it' => 'We are working on it',
'category' => 'Category',
'addcategory' => 'Add Category',
'allcategory' => 'All Category',
'article' => 'Article',
'articles' => 'Articles',
'addarticle' => 'Add Article',
'allarticle' => 'All Article',
'pages' => 'Pages',
'addpages' => 'Add Pages',
'allpages' => 'All Pages',
'widgets' => 'Widgets',
'footer1' => 'Footer 1',
'footer2' => 'Footer 2',
'footer3' => 'Footer 3',
'footer4' => 'Footer 4',
'sidewidget1' => 'Side Widget 1',
'sidewidget2' => 'Side Widget 2',
'comments' => 'Comments',
'settings' => 'Settings',
'parent' => 'Parent',
'description' => 'Description',
'enter_the_description' => 'Enter the Description',
'publish' => 'Publish',
'published' => 'Published',
'draft' => 'Draft',
'create_a_category' => 'Create a Category',
'add' => 'add',
'social' => 'Social',
'comment' => 'Comment',
'not_published' => 'Not Published',
'numberofelementstodisplay' => 'Number of elements to display',
//======================================
'language' => 'Language',
'save' => 'Save',
'create' => 'Create',
'dateformat' => 'Date Format',
'slug' => 'Slug',
'read_more' => 'Read more',
'view_all' => 'View All',
'categories' => 'Categories',
'need_more_support' => 'Need more support',
'if_you_did_not_find_an_answer_please_raise_a_ticket_describing_the_issue' => 'If you did not find an answer, please raise a ticket describing the issue',
'have_a_question?_type_your_search_term_here' => 'Have a question? Type your search term here...',
'search' => 'Search',
'frequently_asked_questions' => 'Frequently Asked Questions',
'leave_a_reply' => 'Leave a Reply',
'post_message' => 'Post Message',
/*
|--------------------------------------------------------------------------------------
| Client Panel [English(en)]
|--------------------------------------------------------------------------------------
| The following language lines are used in all Agent Panel related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
'home' => 'Home',
'submit_a_ticket' => 'Submit A Ticket',
'my_profile' => 'My Profile',
'log_out' => 'Logout',
'forgot_password' => 'Forgot Password',
'create_account' => 'Create Account',
'you_are_here' => 'You are here',
'have_a_ticket' => 'Have a Ticket',
'check_ticket_status' => 'Check Ticket status',
'choose_a_help_topic' => 'Choose a Help Topic',
'ticket_status' => 'Ticket Status',
);

View File

@@ -0,0 +1,877 @@
<?php
return array(
/*
|----------------------------------------------------------------------------------------
| Authentication Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all authentication related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
/*
|--------------------------------------
| Error
|--------------------------------------
*/
'success' => 'lllllll',
'fails' => 'lllllll',
'alert' => 'lllllll',
/*
|--------------------------------------
| Login Page
|--------------------------------------
*/
'Login_to_start_your_session' => 'lllllll',
'login' => 'lllllll',
'remember' => 'lllllll',
'signmein' => 'lllllll',
'iforgot' => 'lllllll',
'email_address' => 'lllllll',
'password' => 'llllllll',
'woops' => 'llllllll',
'theirisproblem' => 'llllllll',
'login' => 'llllllll',
'e-mail' => 'llllllll',
'reg_new_member' => 'llllllll',
/*
|--------------------------------------
| Register Page
|--------------------------------------
*/
'registration' => 'llllllll',
'full_name' => 'llllllll',
'retype_password' => 'llllllll',
'i_agree_to_the' => 'llllllll',
'terms' => 'llllllll',
'register' => 'llllllll',
'i_already_have_a_membership' => 'llllllll',
/*
|--------------------------------------
| Reset Password Page
|--------------------------------------
*/
'reset_password' => 'llllllll',
/*
|--------------------------------------
| Forgot Password Page
|--------------------------------------
*/
'i_know_my_password' => 'llllllll',
'recover_passord' => 'llllllll',
'send_password_reset_link' => 'llllllll',
'enter_email_to_reset_password' => 'llllllll',
/*
|----------------------------------------------------------------------------------------
| Emails Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Emails related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
'admin_panel' => 'llllllll',
'emails' => 'llllllll',
/*
|--------------------------------------
| Emails Create Page
|--------------------------------------
*/
'incoming_emails' => 'llllllll',
'reuired_authentication' => 'llllllll',
'fetching_email_via_imap_or_pop' => 'llllllll',
'create_email' =>'llllllll',
'email_address' =>'llllllll',
'email_name' =>'llllllll',
'help_topic' =>'llllllll',
'auto_response' =>'llllllll',
'host_name' =>'llllllll',
'port_number' =>'llllllll',
'mail_box_protocol' =>'llllllll',
'authentication_required' =>'llllllll',
'yes' =>'llllllll',
'no' =>'llllllll',
'header_spoofing' =>'llllllll',
'allow_for_this_email' =>'llllllll',
'imap_config' =>'llllllll',
/*
|--------------------------------------
| Ban Emails Create Page
|--------------------------------------
*/
'ban_lists' =>'llllllll',
'ban_email' =>'llllllll',
'banlists' =>'llllllll',
'ban_status' =>'llllllll',
/*
|--------------------------------------
| Templates Index Page
|--------------------------------------
*/
'templates' =>'llllllll',
'create_template' =>'llllllll',
'in_use' =>'llllllll',
/*
|--------------------------------------
| Templates Create Page
|--------------------------------------
*/
'template_set_to_clone' =>'llllllll',
'language' =>'llllllll',
/*
|--------------------------------------
| Diagnostics Page
|--------------------------------------
*/
'diagnostics' =>'llllllll',
'from' =>'llllllll',
'to' =>'llllllll',
'subject' =>'llllllll',
'message' =>'llllllll',
'send' =>'llllllll',
/*
|----------------------------------------------------------------------------------------
| Settings Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Setting related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
/*
|--------------------------------------
| Company Settings Page
|--------------------------------------
*/
'company' =>'llllllll',
'website' =>'llllllll',
'phone' =>'llllllll',
'address' =>'llllllll',
'landing' =>'llllllll',
'offline' =>'llllllll',
'thank' =>'llllllll',
'logo' =>'llllllll',
'save' =>'llllllll',
/*
|--------------------------------------
| System Settings Page
|--------------------------------------
*/
'system' =>'llllllll',
'online' =>'llllllll',
'offline' =>'llllllll',
'name/title' =>'llllllll',
'pagesize' =>'llllllll',
'url' =>'llllllll',
'default_department'=>'llllllll',
'loglevel' =>'llllllll',
'purglog' =>'llllllll',
'nameformat' =>'llllllll',
'timeformat' =>'llllllll',
'dateformat' =>'llllllll',
'date_time' =>'llllllll',
'day_date_time' =>'llllllll',
'timezone' =>'llllllll',
/*
|--------------------------------------
| Email Settings Page
|--------------------------------------
*/
'email' =>'llllllll',
'default_template' =>'llllllll',
'default_system_email' =>'llllllll',
'default_alert_email' =>'llllllll',
'admin_email' =>'llllllll',
'email_fetch' =>'llllllll',
'enable' =>'llllllll',
'default_MTA' =>'llllllll',
'fetch_auto-corn' =>'llllllll',
'strip_quoted_reply' =>'llllllll',
'reply_separator' =>'llllllll',
'accept_all_email' =>'llllllll',
'accept_email_unknown' =>'llllllll',
'accept_email_collab' =>'llllllll',
'automatically_and_collab_from_email'=>'llllllll',
'default_alert_email' =>'llllllll',
'attachments' =>'llllllll',
'email_attahment_user' =>'llllllll',
/*
|--------------------------------------
| Ticket Settings Page
|--------------------------------------
*/
'ticket' =>'llllllll',
'default_ticket_number_format' =>'llllllll',
'default_ticket_number_sequence' =>'llllllll',
'default_status' =>'llllllll',
'default_priority' =>'llllllll',
'default_sla' =>'llllllll',
'default_help_topic' =>'llllllll',
'maximum_open_tickets' =>'llllllll',
'agent_collision_avoidance_duration'=>'llllllll',
'human_verification' =>'llllllll',
'claim_on_response' =>'llllllll',
'assigned_tickets' =>'llllllll',
'answered_tickets' =>'llllllll',
'agent_identity_masking' =>'llllllll',
'enable_HTML_ticket_thread' =>'llllllll',
'allow_client_updates' =>'llllllll',
/*
|--------------------------------------
| Access Settings Page
|--------------------------------------
*/
'access' =>'llllllll',
'expiration_policy' =>'llllllll',
'allow_password_resets' =>'llllllll',
'reset_token_expiration' =>'llllllll',
'agent_session_timeout' =>'llllllll',
'bind_agent_session_IP' =>'llllllll',
'registration_required' =>'llllllll',
'require_registration_and_login_to_create_tickets' =>'llllllll',
'registration_method' =>'llllllll',
'user_session_timeout' =>'llllllll',
'client_quick_access' =>'llllllll',
/*
|--------------------------------------
| Auto-Response Settings Page
|--------------------------------------
*/
'auto_responce' =>'llllllll',
'new_ticket' =>'llllllll',
'new_ticket_by_agent' =>'llllllll',
'new_message' =>'llllllll',
'submitter' =>'llllllll',
'send_receipt_confirmation' =>'llllllll',
'participants' =>'llllllll',
'send_new_activity_notice' =>'llllllll',
'overlimit_notice' =>'llllllll',
'email_attachments_to_the_user' =>'llllllll',
/*
|--------------------------------------
| Alert & Notice Settings Page
|--------------------------------------
*/
'disable' =>'llllllll',
'admin_email_2' =>'llllllll',
'alert_notices' =>'llllllll',
'new_ticket_alert' =>'llllllll',
'department_manager' =>'llllllll',
'department_members' =>'llllllll',
'organization_account_manager' =>'llllllll',
'new_message_alert' =>'llllllll',
'last_respondent' =>'llllllll',
'assigned_agent_team' =>'llllllll',
'new_internal_note_alert' =>'llllllll',
'ticket_assignment_alert' =>'llllllll',
'team_lead' =>'llllllll',
'team_members' =>'llllllll',
'ticket_transfer_alert' =>'llllllll',
'overdue_ticket_alert' =>'llllllll',
'system_alerts' =>'llllllll',
'system_errors' =>'llllllll',
'SQL_errors' =>'llllllll',
'excessive_failed_login_attempts' =>'llllllll',
/*
|----------------------------------------------------------------------------------------
| Theme Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Theme related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
'themes' => 'llllllll',
/*
|--------------------------------------
| Footer Pages
|--------------------------------------
*/
'footer' => 'llllllll',
'footer1' => 'llllllll',
'footer2' => 'llllllll',
'footer3' => 'llllllll',
'footer4' => 'llllllll',
/*
|----------------------------------------------------------------------------------------
| Manage Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Manage related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
'manage' => 'llllllll',
/*
|--------------------------------------
| Help Topic index Page
|--------------------------------------
*/
'help_topics' => 'llllllll',
'topic' =>'llllllll',
'type' =>'llllllll',
'priority' =>'llllllll',
'last_updated' =>'llllllll',
'create_help_topic' =>'llllllll',
'action' =>'llllllll',
/*
|--------------------------------------
| Help Topic Create Page
|--------------------------------------
*/
'active' =>'llllllll',
'disabled' =>'llllllll',
'public' =>'llllllll',
'private' =>'llllllll',
'parent_topic' =>'llllllll',
'Custom_form' =>'llllllll',
'SLA_plan' =>'llllllll',
'auto_assign' =>'llllllll',
'auto_respons' =>'llllllll',
'ticket_number_format' =>'llllllll',
'system_default' =>'llllllll',
'custom' =>'llllllll',
'internal_notes' =>'llllllll',
/*
|--------------------------------------
| SLA plan Index Page
|--------------------------------------
*/
'sla_plans' => 'llllllll',
'create_SLA' =>'llllllll',
'grace_period' =>'llllllll',
'added_date' =>'llllllll',
/*
|--------------------------------------
| SLA plan Create Page
|--------------------------------------
*/
'transient' =>'llllllll',
'ticket_overdue_alert' =>'llllllll',
/*
|--------------------------------------
| Form Create Page
|--------------------------------------
*/
'title' =>'llllllll',
'instruction' =>'llllllll',
'label' =>'llllllll',
'visibility' =>'llllllll',
'variable' =>'llllllll',
'create_form' =>'llllllll',
'forms' =>'llllllll',
'form_name' => 'llllllll',
'view_this_form' => 'llllllll',
'delete_from' => 'llllllll',
'are_you_sure_you_want_to_delete' => 'llllllll',
'close' => 'llllllll',
'instructions' => 'llllllll',
"instructions_on_creating_form" => "lllllll",
'form_properties' => 'llllllll',
'adding_fields' => 'llllllll',
"click_add_fields_button_to_add_fields" => "llllllll",
'add_fields' => 'llllllll',
'save_form' => 'llllllll',
'label' => 'llllllll',
'name' => 'llllllll',
'type' => 'llllllll',
'values(selected_fields)' => 'llllllll',
'required' => 'llllllll',
'Action' => 'llllllll',
'remove' => 'llllllll',
/*
|----------------------------------------------------------------------------------------
| Staff Pages [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Staff related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
/*
|--------------------------------------
| Staff index Page
|--------------------------------------
*/
'are_you_sure' => 'llllllll',
'staffs' => 'llllllll',
'name' =>'llllllll',
'user_name' =>'llllllll',
'status' =>'llllllll',
'group' =>'llllllll',
'department' =>'llllllll',
'created' =>'llllllll',
'lastlogin' =>'llllllll',
'createagent' =>'llllllll',
'delete' =>'llllllll',
'agents' =>'llllllll',
'create' =>'llllllll',
'edit' =>'llllllll',
'departments' =>'llllllll',
'groups' =>'lllllll',
/*
|--------------------------------------
| Staff Create Page
|--------------------------------------
*/
'create_agent' =>'llllllll',
'first_name' =>'llllllll',
'last_name' =>'llllllll',
'mobile_number' =>'llllllll',
'agent_signature' =>'llllllll',
'account_status_setting' =>'llllllll',
'account_type' =>'llllllll',
'admin' =>'llllllll',
'agent' =>'llllllll',
'account_status' =>'llllllll',
'locked' =>'llllllll',
'assigned_group' =>'llllllll',
'primary_department' =>'llllllll',
'agent_time_zone' =>'llllllll',
'day_light_saving' =>'llllllll',
'limit_access' =>'llllllll',
'directory_listing' =>'llllllll',
'vocation_mode' =>'llllllll',
'assigned_team' =>'llllllll',
/*
|--------------------------------------
| Department Create Page
|--------------------------------------
*/
'create_department' =>'llllllll',
'manager' =>'llllllll',
'ticket_assignment' =>'llllllll',
'restrict_ticket_assignment_to_department_members' =>'llllllll',
'outgoing_emails' =>'llllllll',
'template_set' =>'llllllll',
'auto_responding_settings' =>'llllllll',
'disable_for_this_department' =>'llllllll',
'auto_response_email' =>'Allllllll',
'recipient' =>'llllllll',
'group_access' =>'llllllll',
'department_signature' =>'llllllll',
/*
|--------------------------------------
| Team Create Page
|--------------------------------------
*/
'create_team'=>'llllllll',
'team_lead'=>'llllllll',
'assignment_alert'=>'llllllll',
'disable_for_this_team'=>'llllllll',
'teams'=>'llllllll',
/*
|--------------------------------------
| Group Create Page
|--------------------------------------
*/
'create_group' =>'llllllll',
'goups' =>'llllllll',
'can_create_ticket' =>'llllllll',
'can_edit_ticket' =>'llllllll',
'can_post_ticket' =>'llllllll',
'can_close_ticket' =>'llllllll',
'can_assign_ticket' =>'llllllll',
'can_transfer_ticket' =>'llllllll',
'can_delete_ticket' =>'llllllll',
'can_ban_emails' =>'llllllll',
'can_manage_premade' =>'llllllll',
'can_manage_FAQ' =>'llllllll',
'can_view_agent_stats' =>'llllllll',
'department_access' =>'llllllll',
'admin_notes' =>'llllllll',
'group_members' =>'llllllll',
'group_name' =>'llllllll',
/*
|--------------------------------------
| SMTP Page
|--------------------------------------
*/
'driver' => 'llllllll',
'smtp' => 'llllllll',
'host'=>'llllllll',
'port'=>'llllllll',
'encryption'=>'llllllll',
/*
|----------------------------------------------------------------------------------------
| Agent Panel [English(en)]
|----------------------------------------------------------------------------------------
|
| The following language lines are used in all Agent Panel related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
'agent_panel' => 'llllllll',
'profile' => 'llllllll',
'change_password' => 'llllllll',
'sign_out' => 'llllllll',
'Tickets' => 'llllllll',
'inbox' => 'llllllll',
'my_tickets' => 'llllllll',
'unassigned' => 'llllllll',
'trash' => 'llllllll',
'Updates' => 'llllllll',
'no_new_updates' => 'llllllll',
'check_for_updates' => 'llllllll',
'open' => 'llllllll',
'inprogress' => 'llllllll',
'closed' => 'llllllll',
'Departments' => 'llllllll',
'tools' => 'llllllll',
'canned' => 'llllllll',
'knowledge_base' => 'llllllll',
/*
|-----------------------------------------------
| Profile
|-----------------------------------------------
*/
'user_information' => 'llllllll',
'time_zone' => 'llllllll',
'phone_number' => 'llllllll',
'contact_information' => 'llllllll',
/*
|-----------------------------------------------
| Dashboard
|-----------------------------------------------
*/
'dashboard' => 'llllllll',
'line_chart' => 'llllllll',
'statistics' => 'llllllll',
'opened' => 'llllllll',
'resolved' => 'llllllll',
'closed' => 'llllllll',
'deleted' => 'llllllll',
/*
|------------------------------------------------
|User Page
|------------------------------------------------
*/
'user_directory' => 'llllllll',
'ban' => 'llllllll',
'user' => 'llllllll',
'users' => 'llllllll',
'create_user' => 'llllllll',
'full_name' => 'llllllll',
'mobile' => 'llllllll',
'last_login' => 'llllllll',
'user_profile' => 'llllllll',
'assign' => 'llllllll',
'open_tickets' => 'llllllll',
'closed_tickets' => 'llllllll',
'deleted_tickets' => 'llllllll',
/*
|------------------------------------------------
|Organization Page
|------------------------------------------------
*/
'organizations' => 'llllllll',
'organization' => 'llllllll',
'create_organization' => 'llllllll',
'account_manager' => 'llllllll',
'update' => 'llllllll',
'organization_profile' => 'llllllll',
'please_select_an_organization' => 'llllllll',
'please_select_an_user' => 'llllllll',
'organization-s_head' => "llllllll",
'select_department_manager' => 'llllllll',
'users_of' => 'llllllll',
/*
|----------------------------------------------
| Ticket page
|----------------------------------------------
*/
'subject' => 'llllllll',
'ticket_id' => 'llllllll',
'priority' => 'llllllll',
'from' => 'llllllll',
'last_replier' => 'llllllll',
'assigned_to' => 'llllllll',
'last_activity' => 'llllllll',
'answered' => 'llllllll',
'assigned' => 'llllllll',
'create_ticket' => 'llllllll',
'tickets' => 'llllllll',
'open' => 'llllllll',
'Ticket_Information' => 'llllllll',
'Ticket_Id' => 'llllllll',
'User' => 'llllllll',
'Unassigned' => 'llllllll',
'generate_pdf' => 'llllllll',
'change_status' => 'llllllll',
'more' => 'llllllll',
'delete_ticket' => 'llllllll',
'emergency' => 'llllllll',
'high' => 'llllllll',
'medium' => 'llllllll',
'low' => 'llllllll',
'sla_plan' => 'llllllll',
'created_date' => 'llllllll',
'due_date' => 'llllllll',
'last_response' => 'llllllll',
'source' => 'llllllll',
'last_message' => 'llllllll',
'reply' => 'llllllll',
'response' => 'llllllll',
'reply_content' => 'llllllll',
'attachment' => 'llllllll',
'internal_note' => 'llllllll',
'this_ticket_is_under_banned_user' => 'llllllll',
'ticket_source' => 'llllllll',
'are_you_sure_to_ban' => 'llllllll',
'whome_do_you_want_to_assign_ticket' => 'llllllll',
'are_you_sure_you_want_to_surrender_this_ticket' => 'llllllll',
'add_collaborator' => 'llllllll',
'search_existing_users' => 'llllllll',
'add_new_user' => 'llllllll',
'search_existing_users_or_add_new_users' => 'llllllll',
'search_by_email' => 'llllllll',
'list_of_collaborators_of_this_ticket' => 'llllllll',
'submit' => 'llllllll',
'max' => 'llllllll',
'add_cc' => 'llllllll',
'recepients' => 'llllllll',
'select_a_canned_response' => 'llllllll',
'assign_to' => 'llllllll',
'detail' => 'llllllll',
'user_details' => 'llllllll',
'ticket_option' => 'llllllll',
'ticket_detail' => 'llllllll',
/*
|------------------------------------------------
|Tools Page
|------------------------------------------------
*/
'canned_response' => 'llllllll',
'create_canned_response' => 'llllllll',
'surrender' => 'llllllll',
'view' => 'llllllll',
/*
|-----------------------------------------------
| Main text
|-----------------------------------------------
*/
'copyright' => 'llllllll',
'all_rights_reserved' => 'llllllll',
'powered_by' => 'llllllll',
/*
|------------------------------------------------
|Guest-User Page
|------------------------------------------------
*/
'issue_summary' => 'llllllll',
'issue_details' => 'llllllll',
'contact_informations' => 'llllllll',
'contact_details' => 'llllllll',
'role' => 'llllllll',
'ext' => 'llllllll',
'profile_pic' => 'llllllll',
'agent_sign' => 'llllllll',
'inactive' => 'llllllll',
'male' => 'llllllll',
'female' => 'llllllll',
'old_password' => 'llllllll',
'new_password' => 'llllllll',
'confirm_password' => 'llllllll',
'gender' => 'llllllll',
'ticket_number' => 'llllllll',
'content' => 'llllllll',
/*
|------------------------------------------------
| Error Pages
|------------------------------------------------
*/
'not_found' => 'llllllll',
'oops_page_not_found' => 'llllllll',
'we_could_not_find_the_page_you_were_looking_for'=>'llllllll',
'internal_server_error' => 'llllllll',
'be_right_back' => 'llllllll',
'sorry' => 'llllllll',
'we_are_working_on_it' => 'llllllll',
'category' => 'llllllll',
'addcategory' => 'llllllll',
'allcategory' => 'llllllll',
'article' => 'llllllll',
'articles' => 'llllllll',
'addarticle' => 'llllllll',
'allarticle' => 'llllllll',
'pages' => 'llllllll',
'addpages' => 'llllllll',
'allpages' => 'llllllll',
'widgets' => 'llllllll',
'footer1' => 'llllllll',
'footer2' => 'llllllll',
'footer3' => 'llllllll',
'footer4' => 'llllllll',
'sidewidget1' => 'llllllll',
'sidewidget2' => 'llllllll',
'comments' => 'llllllll',
'settings' => 'llllllll',
'parent' => 'llllllll',
'description' => 'llllllll',
'enter_the_description' => 'llllllll',
'publish' => 'llllllll',
'published' => 'llllllll',
'draft' => 'llllllll',
'create_a_category' => 'llllllll',
'add' => 'llllllll',
'social' => 'llllllll',
'comment' => 'llllllll',
'not_published' => 'llllllll',
'numberofelementstodisplay' => 'llllllll',
//======================================
'language' => 'llllllll',
'save' => 'llllllll',
'create' => 'Cllllllll',
'dateformat' => 'llllllll',
'slug' => 'llllllll',
'read_more' => 'llllllll',
'view_all' => 'llllllll',
'categories' => 'llllllll',
'need_more_support' => 'llllllll',
'if_you_did_not_find_an_answer_please_raise_a_ticket_describing_the_issue' => 'llllllll',
'have_a_question?_type_your_search_term_here' => 'llllllll',
'search' => 'llllllll',
'frequently_asked_questions' => 'llllllll',
'leave_a_reply' => 'llllllll',
'post_message' => 'llllllll',
/*
|--------------------------------------------------------------------------------------
| Client Panel [English(en)]
|--------------------------------------------------------------------------------------
| The following language lines are used in all Agent Panel related issues to translate
| some words in view to English. You are free to change them to anything you want to
| customize your views to better match your application.
|
*/
'home' => 'llllllll',
'submit_a_ticket' => 'llllllll',
'my_profile' => 'llllllll',
'log_out' => 'llllllll',
'forgot_password' => 'llllllll',
'create_account' => 'llllllll',
'you_are_here' => 'llllllll',
'have_a_ticket' => 'llllllll',
'check_ticket_status' => 'llllllll',
'choose_a_help_topic' => 'llllllll',
'ticket_status' => 'llllllll',
);

View File

@@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Previous',
'next' => 'Next &raquo;',
];

View File

@@ -0,0 +1,22 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reminder Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
"password" => "Passwords must be at least six characters and match the confirmation.",
"user" => "We can't find a user with that e-mail address.",
"token" => "This password reset token is invalid.",
"sent" => "We have e-mailed your password reset link!",
"reset" => "Your password has been reset!",
];

View File

@@ -0,0 +1,107 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
"accepted" => "The :attribute must be accepted.",
"active_url" => "The :attribute is not a valid URL.",
"after" => "The :attribute must be a date after :date.",
"alpha" => "The :attribute may only contain letters.",
"alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
"alpha_num" => "The :attribute may only contain letters and numbers.",
"array" => "The :attribute must be an array.",
"before" => "The :attribute must be a date before :date.",
"between" => [
"numeric" => "The :attribute must be between :min and :max.",
"file" => "The :attribute must be between :min and :max kilobytes.",
"string" => "The :attribute must be between :min and :max characters.",
"array" => "The :attribute must have between :min and :max items.",
],
"boolean" => "The :attribute field must be true or false.",
"confirmed" => "The :attribute confirmation does not match.",
"date" => "The :attribute is not a valid date.",
"date_format" => "The :attribute does not match the format :format.",
"different" => "The :attribute and :other must be different.",
"digits" => "The :attribute must be :digits digits.",
"digits_between" => "The :attribute must be between :min and :max digits.",
"email" => "The :attribute must be a valid email address.",
"filled" => "The :attribute field is required.",
"exists" => "The selected :attribute is invalid.",
"image" => "The :attribute must be an image.",
"in" => "The selected :attribute is invalid.",
"integer" => "The :attribute must be an integer.",
"ip" => "The :attribute must be a valid IP address.",
"max" => [
"numeric" => "The :attribute may not be greater than :max.",
"file" => "The :attribute may not be greater than :max kilobytes.",
"string" => "The :attribute may not be greater than :max characters.",
"array" => "The :attribute may not have more than :max items.",
],
"mimes" => "The :attribute must be a file of type: :values.",
"min" => [
"numeric" => "The :attribute must be at least :min.",
"file" => "The :attribute must be at least :min kilobytes.",
"string" => "The :attribute must be at least :min characters.",
"array" => "The :attribute must have at least :min items.",
],
"not_in" => "The selected :attribute is invalid.",
"numeric" => "The :attribute must be a number.",
"regex" => "The :attribute format is invalid.",
"required" => "The :attribute field is required.",
"required_if" => "The :attribute field is required when :other is :value.",
"required_with" => "The :attribute field is required when :values is present.",
"required_with_all" => "The :attribute field is required when :values is present.",
"required_without" => "The :attribute field is required when :values is not present.",
"required_without_all" => "The :attribute field is required when none of :values are present.",
"same" => "The :attribute and :other must match.",
"size" => [
"numeric" => "The :attribute must be :size.",
"file" => "The :attribute must be :size kilobytes.",
"string" => "The :attribute must be :size characters.",
"array" => "The :attribute must contain :size items.",
],
"unique" => "The :attribute has already been taken.",
"url" => "The :attribute format is invalid.",
"timezone" => "The :attribute must be a valid zone.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [],
];

View File

@@ -1,10 +1,10 @@
@extends('themes.default1.layouts.login')
@section('body')
<h4 class="login-box-msg">Sign in to start your session</h4>
<h4 class="login-box-msg">{!! Lang::get('lang.Login_to_start_your_session') !!}</h4>
@if(Session::has('status'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"> </i> <b> Success </b>
<i class="fa fa-check-circle"> </i> <b> {!! Lang::get('lang.success') !!} </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('status')}}
</div>
@@ -12,7 +12,7 @@
<!-- failure message -->
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"> </i> <b> Alert! </b>
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
</div>
@endif
@@ -20,14 +20,14 @@
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
<!-- Email -->
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}
{!! Form::text('email',null,['placeholder'=> Lang::get("lang.email") ,'class' => 'form-control']) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<!-- Password -->
<div class="form-group has-feedback {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::password('password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! Form::password('password',['placeholder'=>Lang::get("lang.password"),'class' => 'form-control']) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
@@ -35,18 +35,17 @@
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox" name="remember"> Remember Me
<input type="checkbox" name="remember">{!! Lang::get("lang.remember") !!}
</label>
</div>
</div><!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
<button type="submit" class="btn btn-primary btn-block btn-flat">{!! Lang::get("lang.login") !!}</button>
</div><!-- /.col -->
</div>
</form>
<a href="{{url('password/email')}}">I forgot my password</a><br>
<a href="{{url('auth/register')}}" class="text-center">Register a new membership</a>
<a href="{{url('password/email')}}">{!! Lang::get("lang.iforgot") !!}</a><br>
<a href="{{url('auth/register')}}" class="text-center">{!! Lang::get("lang.reg_new_member") !!}</a>
<!-- /.login-page -->
@stop

View File

@@ -3,7 +3,7 @@
@section('body')
@if(Session::has('status'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"> </i> <b> Success </b>
<i class="fa fa-check-circle"> </i> <b> {!! Lang::get('lang.success') !!} </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('status')}}
</div>
@@ -11,23 +11,23 @@
<!-- failure message -->
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"> </i> <b> Alert! </b>
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! $errors->first('email') !!}
</div>
@endif
<p class="login-box-msg">Enter E-mail to reset password</p>
<p class="login-box-msg">{!! Lang::get('lang.enter_email_to_reset_password') !!}</p>
<!-- form open -->
<form role="form" method="POST" action="{{ url('/password/email') }}">
<!-- Email -->
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<!-- Email -->
<div class="input-group margin">
<input type="email" class="form-control" name="email" placeholder="E-mail" value="{{ old('email') }}">
<span class="input-group-btn"><button type="submit" class="btn btn-primary btn-block btn-flat">Send</button></span>
<input type="email" class="form-control" name="email" placeholder="{!! Lang::get('lang.email') !!}" value="{{ old('email') }}">
<span class="input-group-btn"><button type="submit" class="btn btn-primary btn-block btn-flat">{!! Lang::get('lang.send') !!}</button></span>
</div>
</form>
<a href="{{url('auth/login')}}" class="text-center">I know my password</a>
<a href="{{url('auth/login')}}" class="text-center">{!! Lang::get('lang.i_know_my_password') !!}</a>
<!-- /.login-page -->
@stop
@stop

View File

@@ -1,11 +1,11 @@
@extends('themes.default1.layouts.login')
@section('body')
<h4 class="login-box-msg">Registration</h4>
<h4 class="login-box-msg">{!! Lang::get('lang.registration') !!}</h4>
@if(Session::has('status'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"> </i> <b> Success </b>
<i class="fa fa-check-circle"> </i> <b> {!! Lang::get('lang.success') !!} </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('status')}}
</div>
@@ -13,7 +13,7 @@
<!-- failure message -->
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"> </i> <b> Alert! </b>
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
</div>
@endif
@@ -25,7 +25,7 @@
<!-- fullname -->
<div class="form-group has-feedback {{ $errors->has('full_name') ? 'has-error' : '' }}">
{!! Form::text('full_name',null,['placeholder'=>'Full Name','class' => 'form-control']) !!}
{!! Form::text('full_name',null,['placeholder'=>Lang::get('lang.full_name'),'class' => 'form-control']) !!}
{!! $errors->first('full_name', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-user form-control-feedback"></span>
@@ -34,7 +34,7 @@
<!-- Email -->
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}
{!! Form::text('email',null,['placeholder'=>Lang::get('lang.email'),'class' => 'form-control']) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
@@ -42,41 +42,34 @@
<!-- Password -->
<div class="form-group has-feedback {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::password('password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! Form::password('password',['placeholder'=>Lang::get('lang.password'),'class' => 'form-control']) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- Confirm password -->
<div class="form-group has-feedback {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
{!! Form::password('password_confirmation',['placeholder'=>'Retype Password','class' => 'form-control']) !!}
{!! Form::password('password_confirmation',['placeholder'=>Lang::get('lang.retype_password'),'class' => 'form-control']) !!}
{!! $errors->first('password_confirmation', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox"> I agree to the <a href="#">terms</a>
<input type="checkbox">{!! Lang::get('lang.i_agree_to_the') !!} <a href="#">{!! Lang::get('lang.terms') !!}</a>
</label>
</div>
</div><!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Register</button>
<button type="submit" class="btn btn-primary btn-block btn-flat">{!! Lang::get('lang.register') !!}</button>
</div><!-- /.col -->
</div>
<a href="{{url('auth/login')}}" class="text-center">I already have a membership</a>
<a href="{{url('auth/login')}}" class="text-center">{!! Lang::get('lang.i_already_have_a_membership') !!}</a>
{!! Form::close()!!}
@stop

View File

@@ -3,7 +3,7 @@
@section('body')
@if(Session::has('status'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"> </i> <b> Success </b>
<i class="fa fa-check-circle"> </i> <b> {!! Lang::get('lang.success') !!} </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('status')}}
</div>
@@ -11,30 +11,30 @@
<!-- failure message -->
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"> </i> <b> Alert! </b>
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
</div>
@endif
<p class="login-box-msg">Reset Password</p>
<p class="login-box-msg">{!! Lang::get('lang.reset_password') !!}</p>
<div class="panel-body">
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="token" value="{{ $token }}">
<!-- Email -->
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
<input type="email" class="form-control" name="email" placeholder="E-mail" value="{{ old('email') }}">
<input type="email" class="form-control" name="email" placeholder="{!! Lang::get('lang.e-mail') !!}" value="{{ old('email') }}">
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<!-- password -->
<div class="form-group has-feedback {{ $errors->has('password') ? 'has-error' : '' }}">
<input type="password" class="form-control" name="password" placeholder="Password">
<input type="password" class="form-control" name="password" placeholder="Lang::get('lang.password')">
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- confirm password -->
<div class="form-group has-feedback {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
<input type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password">
<input type="password" class="form-control" name="password_confirmation" placeholder="Lang::get('lang.confirm_password')">
{!! $errors->first('password_confirmation', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
@@ -45,7 +45,7 @@
<div class="col-md-3"></div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary btn-flat">
Reset Password
{!! Lang::get('lang.reset_password') !!}
</button>
</div>
</div>

View File

@@ -8,9 +8,7 @@ E-mail :- {!! $email !!}<br/>
<h4 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}</h4>
<br/>
Your friendly {!! $system !!}<br/>
<br/>
Kind Regards,<br/>
{!! $from !!}
{!! $from !!}

View File

@@ -1,10 +1,9 @@
Hello {!! $agent !!},<br/>
Ticket No. :- {!! $ticket_number !!} <br/>
Hello {!! $agent !!},<br/><br/>
Ticket No: {!! $ticket_number !!} <br/>
Has been assigned to you by {!! $master !!}<br/>
<br/>
Thank You<br/><br/>
Kind Regards,<br/>
{!! $from !!}
{!! $from !!}

View File

@@ -1,9 +1,7 @@
Ticket No.: <b>{{ $ticket_number }}</b><br/>
<br/>
Your ticket have been closed.<br/>
Hello,<br/><br/>
This message is regarding your ticket ID {{ $ticket_number }}. We are changing the status of this ticket to 'Closed' as the issue appears to be resolved.<br/>
<br/>
Thank you<br/>
<br/>
Kind regards,<br/>
{!! $from !!}
{!! $from !!}

View File

@@ -2,14 +2,12 @@ Hello {!! $agent !!},<br/><br/>
A reply been made to ticket {!! $ticket_number !!} <br/>
<br/>
From
Name :- {!! $name !!}<br/>
E-mail :- {!! $email !!}<br/>
Name: {!! $name !!}<br/>
E-mail: {!! $email !!}<br/>
<br/>
<h4 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}</h4>
<br/>
Your friendly {!! $system !!}<br/>
<br/>
Kind Regards,<br/>
{!! $from !!}

View File

@@ -1,10 +1,11 @@
Hello {!! $name !!}, <br/><br/>
Your account has been created. <br/> <br/>
This email is confirmation that you are now registered at our helpdesk. <br/> <br/>
Registered email: support@ladybirdweb.com<br/>
Password: {{$password}} <br/> <br/>
To view or respond to the ticket, please login {!! \URL::route('ticket2') !!} to the support ticket system <br/> <br/>
You can visit the helpdesk to browse articles and contact us at any time: {!! \URL::route('ticket2') !!}<br/> <br/>
Thank You.<br/><br/>

View File

@@ -1,6 +1,6 @@
Hello <br/><br/>
You asked to reset your Sync password. To do so, please click this link:<br/><br/>
You asked to reset your password. To do so, please click this link:<br/><br/>
{!! url('password/reset/'.$token) !!} <br/><br/>

View File

@@ -37,11 +37,11 @@
<body>
<div class="container">
<div class="content">
<div class="title"><a>404</a> Not Found.</div>
<div class="title"><a>404</a> {!! Lang::get('lang.not_found') !!}.</div>
<div class="error-content" id="body">
<h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
<h3><i class="fa fa-warning text-yellow"></i> {!! Lang::get('lang.oops_page_not_found') !!}.</h3>
<p>
We could not find the page you were looking for.
{!! Lang::get('lang.we_could_not_find_the_page_you_were_looking_for') !!}.
</p>
</div>
</div>

View File

@@ -1,4 +1,4 @@
<html>
lang.<html>
<head>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
@@ -37,11 +37,11 @@
<body>
<div class="container">
<div class="content">
<div class="title"><a>500</a>Internal server Error. Be right back.</div>
<div class="title"><a>500</a>{!! Lang::get('lang.internal_server_error') !!}. {!! Lang::get('lang.be_right_back') !!}.</div>
<div class="error-content" id="body">
<h3><i class="fa fa-warning text-yellow"></i> Sorry!</h3>
<h3><i class="fa fa-warning text-yellow"></i> {!! Lang::get('lang.sorry') !!}!</h3>
<p>
We are working on it.
{!! Lang::get('lang.we_are_working_on_it') !!}.
</p>
</div>
</div>

View File

@@ -84,7 +84,7 @@ class="active"
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<label for="ext">EXT</label>
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}

View File

@@ -33,7 +33,7 @@ class="active"
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Staffs</h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_agent')}}</a></div>
<h2 class="box-title">{!! Lang::get('lang.staffs') !!} </h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_agent')}}</a></div>
<div class="box-body table-responsive no-padding">
<?php
@@ -95,9 +95,9 @@ class="active"
{{-- <td>{{$use->Lastlogin_at}}</td> --}}
<td>
{!! Form::open(['route'=>['agents.destroy', $use->id],'method'=>'DELETE']) !!}
<a href="{{route('agents.edit', $use->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<a href="{{route('agents.edit', $use->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!} </a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
{!! Form::button(' <i class="fa fa-trash" style="color:black;"> </i> ' . Lang::get('lang.delete') ,
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])

View File

@@ -37,7 +37,7 @@ class="active"
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Create</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
<h4 class="box-title">{!! Lang::get('lang.create') !!}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>

View File

@@ -36,7 +36,7 @@ class="active"
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Edit</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
<h4 class="box-title">{!! Lang::get('lang.edit') !!}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>

View File

@@ -32,7 +32,7 @@ class="active"
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Departments</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_department')}}</a></div>
<h2 class="box-title">{!! Lang::get('lang.departments') !!}</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_department')}}</a></div>
<div class="box-body table-responsive no-padding">

View File

@@ -33,7 +33,7 @@ class="active"
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Groups</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_group')}}</a></div>
<h2 class="box-title">{!! Lang::get('lang.groups') !!}</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_group')}}</a></div>
<div class="box-body table-responsive no-padding">

View File

@@ -40,7 +40,7 @@ class="active"
<div class="box box-primary">
<div class="content-header">
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
<h4>{!! Lang::get('lang.create') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>

View File

@@ -39,7 +39,7 @@ class="active"
<div class="box box-primary">
<div class="content-header">
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
<h4>{!! Lang::get('lang.edit') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>

View File

@@ -105,7 +105,7 @@ class="active"
<div class="col-md-6 form-group">
<h4>Reuired Authentication</h4>
<h4>{!! Lang::get('lang.reuired_authentication') !!}</h4>
</div>
@@ -137,7 +137,7 @@ class="active"
<div class="col-md-6 form-group">
<h4>Fetching Email via IMAP or POP</h4>
<h4>{!! Lang::get('lang.fetching_email_via_imap_or_pop') !!}</h4>
</div>

View File

@@ -102,7 +102,7 @@ class="active"
<div class="col-md-6 form-group">
<h4>Reuired Authentication</h4>
<h4>{!! Lang::get('lang.reuired_authentication') !!}</h4>
</div>
@@ -136,7 +136,7 @@ class="active"
<div class="col-md-6 form-group">
<h4>Fetching Email via IMAP</h4>
<h4>{!! Lang::get('lang.fetching_email_via_imap_or_pop') !!}</h4>
</div>

View File

@@ -32,7 +32,7 @@ class="active"
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">Incoming Emails</h2><a href="{{route('emails.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_email')}}</a></div>
<h2 class="box-title">{!! Lang::get('lang.incoming_emails') !!}</h2><a href="{{route('emails.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_email')}}</a></div>
<div class="box-body table-responsive no-padding">

View File

@@ -40,7 +40,7 @@ class="active"
{!! Form::model($settings,['url'=>'post-smtp','method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Outgoing Email</h3>
<h3 class="box-title">{!! Lang::get('lang.outgoing_emails') !!}</h3>
<div class="pull-right">
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
</div>

View File

@@ -49,14 +49,13 @@ class="active"
<!-- -->
<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>
<h3 class="box-title">{!! Lang::get('lang.instructions') !!}</h3>
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.instructions_on_creating_form') !!}.</div>
</div>
<hr style="margin-top:0px;margin-bottom:0px;">
<div class="box-header">
<h3 class="box-title">Form Properties</h3>
<h3 class="box-title">{!! Lang::get('lang.form_properties') !!}</h3>
</div>
{!! Form::open(['route'=>'forms.store']) !!}
<div class="form-group">
@@ -66,7 +65,7 @@ class="active"
<div class="form-group">
<div class="row" style="margin-top: 10px;">
<div class="col-md-4">
<h4 style="text-align: center">Form Name:</h4>
<h4 style="text-align: center">{!! Lang::get('lang.form_name') !!}:</h4>
</div>
<div class="col-md-4">
<input type="text" name="formname" class="form-control">
@@ -75,11 +74,11 @@ class="active"
<hr style="margin-top:0px;margin-bottom:0px;">
<div class="form-group">
<div class="box-header">
<h3 class="box-title">Adding Fields</h3>
<h3 class="box-title">{!! Lang::get('lang.adding_fields') !!}</h3>
</div>
<div class="callout callout-default col-md-4"> Click <b>'Add Fields'</b> button to add Fields</div>
<div class="callout callout-default col-md-4"> {!! Lang::get('lang.click_add_fields_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>
<button type="button" class="btn btn-primary addField" value="Show Div" onclick="showDiv()" ><i class="fa fa-plus"></i>&nbsp; {!! Lang::get('lang.add_fields') !!}</button>
</div>
<div class="row">
@@ -91,21 +90,20 @@ class="active"
<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>
<th>{!! Lang::get('lang.label') !!} </th>
<th>{!! Lang::get('lang.name') !!} </th>
<th>{!! Lang::get('lang.type') !!} </th>
<th>{!! Lang::get('lang.values(selected_fields)') !!} </th>
<th>{!! Lang::get('lang.required') !!} </th>
<th>{!! Lang::get('lang.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">
<input type="submit" class="btn btn-primary" value="{!! Lang::get('lang.save_form') !!}">
</div>
{!! Form::close() !!}
@@ -128,7 +126,7 @@ $(document).ready(function() {
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).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>{!! Lang::get("lang.yes") !!}&nbsp;&nbsp;<input type=radio name="required['+x+'][]" value=1 checked>&nbsp;&nbsp;{!! Lang::get("lang.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 {!! Lang::get("lang.remove") !!}</button></td></tr>');
}
});

View File

@@ -42,17 +42,17 @@ class="active"
<div class="box">
<div class="box-header">
<div class="box-title">
Forms
{!! Lang::get('lang.forms') !!}
</div>
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">Create Form</button></a>
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">{!! Lang::get('lang.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>
<th>{!! Lang::get('lang.form_name') !!}</th>
<th>{!! Lang::get('lang.action') !!}</th>
</tr>
</thead>
<tbody>
@@ -66,26 +66,23 @@ class="active"
<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>
<td>{!! link_to_route('forms.show', Lang::get('lang.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">{!! Lang::get('lang.delete_from') !!}</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>
<h4 class="modal-title">{!! Lang::get('lang.delete') !!}</h4>
</div>
<div class="modal-body">
<p>Are you sure you want to Delete ?</p>
<p>{!! Lang::get('lang.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>
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
{!! link_to_route('forms.delete', Lang::get('lang.delete'),[$form->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
</div>
</div>
</div>
</div>

View File

@@ -41,7 +41,7 @@ class="active"
<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>
<h3 class="box-title">{!! Lang::get('lang.form_name') !!} : {!! $id->formname !!}</h3>
</div>
<div class="box-body">

View File

@@ -19,7 +19,7 @@ class="active"
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer </h4>{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
<h4 class="box-title">{!! Lang::get('lang.footer') !!} </h4>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- check whether success or not -->
@if(Session::has('success'))
@@ -42,13 +42,13 @@ class="active"
<!-- Name text form Required -->
<div class="box-body">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! 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 class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! Form::label('footer', Lang::get('lang.footer') ) !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>

View File

@@ -22,7 +22,7 @@ class="active"
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer 2</h4> {!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
<h4 class="box-title">{!! Lang::get('lang.footer2') !!}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- check whether success or not -->
@if(Session::has('success'))
@@ -45,12 +45,12 @@ class="active"
<!-- Name text form Required -->
<div class="box-body table-responsive"style="overflow:hidden;">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! 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 class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! Form::label('footer', Lang::get('lang.footer') ) !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>

View File

@@ -17,7 +17,7 @@ class="active"
{!! Form::model($footer3,['url' => 'post-create-footer3/'.$footer3->id, 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer 3</h4>{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
<h4 class="box-title">{!! Lang::get('lang.footer3') !!}</h4>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
@@ -39,12 +39,12 @@ class="active"
<!-- Name text form Required -->
<div class="box-body table-responsive">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! 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 class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! Form::label('footer', Lang::get('lang.footer') ) !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>

View File

@@ -17,7 +17,7 @@ class="active"
{!! Form::model($footer4,['url'=>'post-create-footer4/'.$footer4->id, 'method'=>'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Footer 4</h4>{!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}
<h4 class="box-title">{!! Lang::get('lang.footer4') !!}</h4>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
</div>
<!-- check whether success or not -->
@if(Session::has('success'))
@@ -40,12 +40,12 @@ class="active"
<!-- Name text form Required -->
<div class="box-body">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title','Title') !!}
{!! 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 class="form-group {{ $errors->has('footer') ? 'has-error' : '' }}">
{!! Form::label('footer','Footer') !!}
{!! Form::label('footer', Lang::get('lang.footer') ) !!}
{!! $errors->first('footer', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('footer',null,['class' => 'form-control','size' => '30x5','id'=>'footer']) !!}
</div>

View File

@@ -0,0 +1,188 @@
@extends('themes.default1.agent.layout.kb')
@section('article')
active
@stop
@section('add-article')
class="active"
@stop
<script type="text/javascript" src="{{asset('lb-faveo/dist/js/nicEdit.js')}}"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
</script>
@section('content')
{!! Form::open(array('action' => 'Admin\kb\ArticleController@store' , 'method' => 'post') )!!}
<div class="row">
@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">&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>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
@if(!$category)
<div class="alert alert-warning alert-dismissable">
<i class="fa fa-info"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
Create a Category
</div>
@endif
<div class="box-body">
<div class="col-md-9">
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Add Article</h4>
</div>
<div class="box-body">
<div class="row">
<div class="col-md-6 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 class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
{!! Form::label('slug',Lang::get('lang.slug')) !!}
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('slug',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
{!! Form::label('description',Lang::get('lang.description')) !!}
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
<div class="form-group" style="background-color:white">
{!! Form::textarea('description',null,['class' => 'form-control color','size' => '128x20','id'=>'myNicEditor','placeholder'=>'Enter the description']) !!}
</div>
</div>
</div>
</div>
</div>
<ul style="list-style-type:none;">
<li>
<div class="col-md-3">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
</div>
<div class="box-body">
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
{!! Form::label('type',Lang::get('lang.status')) !!}
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-4">
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.published')}}
</div>
<div class="col-xs-3">
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.draft')}}
</div>
</div>
</div>
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
{!! Form::label('status',Lang::get('lang.visibility')) !!}
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.public')}}
</div>
<div class="row">
<div class="col-xs-3">
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.private')}}
</div>
</div>
</div>
</div>
</div>
<div class="box-footer" style="background-color:#f5f5f5;">
<div style="margin-left:140px;">
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
</div>
</div>
</li>
<li>
<div class="col-md-3">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
</div>
<div class="box-body" style="height:190px; overflow-y:auto;">
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
{{-- {!! Form::label('category_id','Category') !!} --}}
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
@while (list($key, $val) = each($category))
<div class="row">
<div class="form-group">
<div class="col-md-1">
<input type="checkbox" name="category_id[]" value="<?php echo $val;?>">
</div>
<div class="col-md-10">
<?php echo $key;?>
</div>
</div>
</div>
@endwhile
</div>
</div>
{!! Form::close() !!}
<div class="box-footer" style="background-color:#f5f5f5;">
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{{Lang::get('lang.addcategory')}}</span>
<div class="modal" id="j">
<div class="modal-dialog">
<div class="modal-content">
{!! Form::open(['method'=>'post','action'=>'Admin\kb\CategoryController@store']) !!}
<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">{{Lang::get('lang.addcategory')}}</h4>
</div>
<div class="modal-body">
@include('themes.default1.admin.kb.category.form')
</div>
<div class="modal-footer">
<div class="form-group">
{!! Form::submit('Add')!!}
</div>
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
</div>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
{{-- {!! Form::close() !!} --}}
@stop
@section('FooterInclude')
@stop
<!-- /content -->

Some files were not shown because too many files have changed in this diff Show More