├── .gitignore ├── LICENSE.txt ├── README.md ├── composer.json └── src ├── Console └── Htmlify.php ├── Controllers ├── AdministratorsController.php ├── AgentsController.php ├── CategoriesController.php ├── CommentsController.php ├── ConfigurationsController.php ├── DashboardController.php ├── InstallController.php ├── NotificationsController.php ├── PrioritiesController.php ├── StatusesController.php ├── TicketsController.php └── ToolsController.php ├── Helpers ├── Cdn.php ├── EditorLocale.php └── LaravelVersion.php ├── JSON └── summernote_init.json ├── Mail └── TicketitNotification.php ├── Middleware ├── IsAdminMiddleware.php ├── IsAgentMiddleware.php └── ResAccessMiddleware.php ├── Migrations ├── 2015_07_22_115516_create_ticketit_tables.php ├── 2015_07_22_123254_alter_users_table.php ├── 2015_09_29_123456_add_completed_at_column_to_ticketit_table.php ├── 2015_10_08_123457_create_settings_table.php ├── 2016_01_15_002617_add_htmlcontent_to_ticketit_and_comments.php ├── 2016_01_15_040207_enlarge_settings_columns.php └── 2016_01_15_120557_add_indexes.php ├── Models ├── Agent.php ├── Category.php ├── Comment.php ├── Configuration.php ├── Priority.php ├── Setting.php ├── Status.php └── Ticket.php ├── Public └── css │ └── style.css ├── Seeds ├── SettingsTableSeeder.php └── TicketitTableSeeder.php ├── TicketitServiceProvider.php ├── Traits ├── ContentEllipse.php └── Purifiable.php ├── Translations ├── ar │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ ├── lang.php │ └── settings.php ├── de │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ └── lang.php ├── en │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ ├── lang.php │ └── settings.php ├── es │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ ├── lang.php │ └── settings.php ├── fa │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ └── lang.php ├── fr │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── lang.php │ └── settings.php ├── hu │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ └── lang.php ├── it │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ ├── lang.php │ └── settings.php ├── nl │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ └── lang.php ├── pt_BR │ ├── admin.php │ ├── email │ │ ├── assigned.php │ │ ├── comment.php │ │ ├── globals.php │ │ ├── status.php │ │ └── transfer.php │ ├── install.php │ └── lang.php └── ru │ ├── admin.php │ ├── email │ ├── assigned.php │ ├── comment.php │ ├── globals.php │ ├── status.php │ └── transfer.php │ ├── install.php │ ├── lang.php │ └── settings.php ├── ViewComposers └── TicketItComposer.php ├── Views ├── bootstrap3 │ ├── admin │ │ ├── administrator │ │ │ ├── create.blade.php │ │ │ └── index.blade.php │ │ ├── agent │ │ │ ├── create.blade.php │ │ │ └── index.blade.php │ │ ├── category │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ ├── form.blade.php │ │ │ └── index.blade.php │ │ ├── configuration │ │ │ ├── common │ │ │ │ └── paginate.blade.php │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ ├── index.blade.php │ │ │ └── tables │ │ │ │ ├── editor_table.blade.php │ │ │ │ ├── email_table.blade.php │ │ │ │ ├── init_table.blade.php │ │ │ │ ├── other_table.blade.php │ │ │ │ ├── perms_table.blade.php │ │ │ │ └── ticket_table.blade.php │ │ ├── index.blade.php │ │ ├── priority │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ ├── form.blade.php │ │ │ └── index.blade.php │ │ └── status │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ ├── form.blade.php │ │ │ └── index.blade.php │ ├── emails │ │ ├── assigned.blade.php │ │ ├── comment.blade.php │ │ ├── status.blade.php │ │ ├── templates │ │ │ └── ticketit.blade.php │ │ └── transfer.blade.php │ ├── index.blade.php │ ├── install │ │ ├── index.blade.php │ │ └── upgrade.blade.php │ ├── shared │ │ ├── assets.blade.php │ │ ├── errors.blade.php │ │ ├── header.blade.php │ │ └── nav.blade.php │ └── tickets │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ ├── index.blade.php │ │ ├── partials │ │ ├── comment_form.blade.php │ │ ├── comments.blade.php │ │ ├── datatable.blade.php │ │ ├── modal-delete-confirm.blade.php │ │ ├── summernote.blade.php │ │ └── ticket_body.blade.php │ │ └── show.blade.php └── bootstrap4 │ ├── admin │ ├── administrator │ │ ├── create.blade.php │ │ └── index.blade.php │ ├── agent │ │ ├── create.blade.php │ │ └── index.blade.php │ ├── category │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ ├── form.blade.php │ │ └── index.blade.php │ ├── configuration │ │ ├── common │ │ │ └── paginate.blade.php │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ ├── index.blade.php │ │ └── tables │ │ │ ├── editor_table.blade.php │ │ │ ├── email_table.blade.php │ │ │ ├── init_table.blade.php │ │ │ ├── other_table.blade.php │ │ │ ├── perms_table.blade.php │ │ │ └── ticket_table.blade.php │ ├── index.blade.php │ ├── priority │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ ├── form.blade.php │ │ └── index.blade.php │ └── status │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ ├── form.blade.php │ │ └── index.blade.php │ ├── emails │ ├── assigned.blade.php │ ├── comment.blade.php │ ├── status.blade.php │ ├── templates │ │ └── ticketit.blade.php │ └── transfer.blade.php │ ├── index.blade.php │ ├── install │ ├── index.blade.php │ └── upgrade.blade.php │ ├── layouts │ └── master.blade.php │ ├── shared │ ├── assets.blade.php │ ├── errors.blade.php │ ├── header.blade.php │ └── nav.blade.php │ └── tickets │ ├── create.blade.php │ ├── edit.blade.php │ ├── index.blade.php │ ├── partials │ ├── comment_form.blade.php │ ├── comments.blade.php │ ├── datatable.blade.php │ ├── modal-delete-confirm.blade.php │ ├── summernote.blade.php │ └── ticket_body.blade.php │ └── show.blade.php └── routes.php /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /.idea 3 | /.vscode 4 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-2017 Ahmed M. Kordy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kordy/ticketit", 3 | "description": "A simple helpdesk tickets system for Laravel 5.1 – 5.8 and 6.* - 7.* - 8.* which integrates smoothly with Laravel default users and auth system", 4 | "type": "laravel-package", 5 | "keywords": ["laravel","helpdesk", "ticket", "support"], 6 | "require": { 7 | "laravel/framework": "^5.1|^6.0|^7.0|^8.0", 8 | "laravelcollective/html": "^5.1|^6.0", 9 | "illuminate/support": "^5.1|^6.0|^7.0|^8.0", 10 | "yajra/laravel-datatables-oracle": "^6.0|^8.0|^9.4|^9.11", 11 | "jenssegers/date": "^3.0|^4.0", 12 | "mews/purifier": "^2.0|^3.1|^3.2", 13 | "doctrine/dbal": "^2.5|^2.6|^2.10" 14 | 15 | }, 16 | "license": "MIT", 17 | "authors": [ 18 | { 19 | "name": "Ahmed Kordy", 20 | "email": "ahmed@kordy.info" 21 | }, 22 | { 23 | "name": "Balázs Dura-Kovács", 24 | "homepage": "https://gitlab.com/balping" 25 | } 26 | ], 27 | "autoload": { 28 | "psr-4": { 29 | "Kordy\\Ticketit\\": "src" 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Console/Htmlify.php: -------------------------------------------------------------------------------- 1 | tags. Run this when upgrading from <=v0.2.2'; 24 | 25 | public function __construct() 26 | { 27 | parent::__construct(); 28 | } 29 | 30 | /** 31 | * Execute the console command. 32 | * 33 | * @return mixed 34 | */ 35 | public function handle() 36 | { 37 | $tickets = Ticket::all(); 38 | 39 | foreach ($tickets as $ticket) { 40 | if (!$ticket->html) { 41 | $ticket->html = nl2br(e($ticket->content)); 42 | $ticket->content = e($ticket->content); 43 | $ticket->save(); 44 | } 45 | } 46 | 47 | $comments = Comment::all(); 48 | 49 | foreach ($comments as $comment) { 50 | if (!$comment->html) { 51 | $comment->html = nl2br(e($comment->content)); 52 | $comment->content = e($comment->content); 53 | $comment->save(); 54 | } 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Controllers/AdministratorsController.php: -------------------------------------------------------------------------------- 1 | addAdministrators($request->input('administrators')); 30 | $administrators_names = implode(',', $administrators_list); 31 | 32 | Session::flash('status', trans('ticketit::lang.administrators-are-added-to-administrators', ['names' => $administrators_names])); 33 | 34 | return redirect()->action('\Kordy\Ticketit\Controllers\AdministratorsController@index'); 35 | } 36 | 37 | public function update($id, Request $request) 38 | { 39 | $this->syncAdministratorCategories($id, $request); 40 | 41 | Session::flash('status', trans('ticketit::lang.administrators-joined-categories-ok')); 42 | 43 | return redirect()->action('\Kordy\Ticketit\Controllers\AdministratorsController@index'); 44 | } 45 | 46 | public function destroy($id) 47 | { 48 | $administrator = $this->removeAdministrator($id); 49 | 50 | Session::flash('status', trans('ticketit::lang.administrators-is-removed-from-team', ['name' => $administrator->name])); 51 | 52 | return redirect()->action('\Kordy\Ticketit\Controllers\AdministratorsController@index'); 53 | } 54 | 55 | /** 56 | * Assign users as administrators. 57 | * 58 | * @param $user_ids 59 | * 60 | * @return array 61 | */ 62 | public function addAdministrators($user_ids) 63 | { 64 | $users = Agent::find($user_ids); 65 | foreach ($users as $user) { 66 | $user->ticketit_admin = true; 67 | $user->save(); 68 | $users_list[] = $user->name; 69 | } 70 | 71 | return $users_list; 72 | } 73 | 74 | /** 75 | * Remove user from the administrators. 76 | * 77 | * @param $id 78 | * 79 | * @return mixed 80 | */ 81 | public function removeAdministrator($id) 82 | { 83 | $administrator = Agent::find($id); 84 | $administrator->ticketit_admin = false; 85 | $administrator->save(); 86 | 87 | // Remove him from tickets categories as well 88 | if (version_compare(app()->version(), '5.2.0', '>=')) { 89 | $administrator_cats = $administrator->categories->pluck('id')->toArray(); 90 | } else { // if Laravel 5.1 91 | $administrator_cats = $administrator->categories->lists('id')->toArray(); 92 | } 93 | 94 | $administrator->categories()->detach($administrator_cats); 95 | 96 | return $administrator; 97 | } 98 | 99 | /** 100 | * Sync Administrator categories with the selected categories got from update form. 101 | * 102 | * @param $id 103 | * @param Request $request 104 | */ 105 | public function syncAdministratorCategories($id, Request $request) 106 | { 107 | $form_cats = ($request->input('administrator_cats') == null) ? [] : $request->input('administrator_cats'); 108 | $administrator = Agent::find($id); 109 | $administrator->categories()->sync($form_cats); 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /src/Controllers/AgentsController.php: -------------------------------------------------------------------------------- 1 | get(); 17 | 18 | return view('ticketit::admin.agent.index', compact('agents')); 19 | } 20 | 21 | public function create() 22 | { 23 | $users = Agent::paginate(Setting::grab('paginate_items')); 24 | 25 | return view('ticketit::admin.agent.create', compact('users')); 26 | } 27 | 28 | public function store(Request $request) 29 | { 30 | $rules = [ 31 | 'agents' => 'required|array|min:1', 32 | ]; 33 | 34 | if(LaravelVersion::min('5.2')){ 35 | $rules['agents.*'] = 'integer|exists:users,id'; 36 | } 37 | 38 | $this->validate($request, $rules); 39 | 40 | $agents_list = $this->addAgents($request->input('agents')); 41 | $agents_names = implode(',', $agents_list); 42 | 43 | Session::flash('status', trans('ticketit::lang.agents-are-added-to-agents', ['names' => $agents_names])); 44 | 45 | return redirect()->action('\Kordy\Ticketit\Controllers\AgentsController@index'); 46 | } 47 | 48 | public function update($id, Request $request) 49 | { 50 | $this->syncAgentCategories($id, $request); 51 | 52 | Session::flash('status', trans('ticketit::lang.agents-joined-categories-ok')); 53 | 54 | return redirect()->action('\Kordy\Ticketit\Controllers\AgentsController@index'); 55 | } 56 | 57 | public function destroy($id) 58 | { 59 | $agent = $this->removeAgent($id); 60 | 61 | Session::flash('status', trans('ticketit::lang.agents-is-removed-from-team', ['name' => $agent->name])); 62 | 63 | return redirect()->action('\Kordy\Ticketit\Controllers\AgentsController@index'); 64 | } 65 | 66 | /** 67 | * Assign users as agents. 68 | * 69 | * @param $user_ids 70 | * 71 | * @return array 72 | */ 73 | public function addAgents($user_ids) 74 | { 75 | $users = Agent::find($user_ids); 76 | foreach ($users as $user) { 77 | $user->ticketit_agent = true; 78 | $user->save(); 79 | $users_list[] = $user->name; 80 | } 81 | 82 | return $users_list; 83 | } 84 | 85 | /** 86 | * Remove user from the agents. 87 | * 88 | * @param $id 89 | * 90 | * @return mixed 91 | */ 92 | public function removeAgent($id) 93 | { 94 | $agent = Agent::find($id); 95 | $agent->ticketit_agent = false; 96 | $agent->save(); 97 | 98 | // Remove him from tickets categories as well 99 | if (version_compare(app()->version(), '5.2.0', '>=')) { 100 | $agent_cats = $agent->categories->pluck('id')->toArray(); 101 | } else { // if Laravel 5.1 102 | $agent_cats = $agent->categories->lists('id')->toArray(); 103 | } 104 | 105 | $agent->categories()->detach($agent_cats); 106 | 107 | return $agent; 108 | } 109 | 110 | /** 111 | * Sync Agent categories with the selected categories got from update form. 112 | * 113 | * @param $id 114 | * @param Request $request 115 | */ 116 | public function syncAgentCategories($id, Request $request) 117 | { 118 | $form_cats = ($request->input('agent_cats') == null) ? [] : $request->input('agent_cats'); 119 | $agent = Agent::find($id); 120 | $agent->categories()->sync($form_cats); 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /src/Controllers/CategoriesController.php: -------------------------------------------------------------------------------- 1 | validate($request, [ 49 | 'name' => 'required', 50 | 'color' => 'required', 51 | ]); 52 | 53 | $category = new Category(); 54 | $category->create(['name' => $request->name, 'color' => $request->color]); 55 | 56 | Session::flash('status', trans('ticketit::lang.category-name-has-been-created', ['name' => $request->name])); 57 | 58 | \Cache::forget('ticketit::categories'); 59 | 60 | return redirect()->action('\Kordy\Ticketit\Controllers\CategoriesController@index'); 61 | } 62 | 63 | /** 64 | * Display the specified resource. 65 | * 66 | * @param int $id 67 | * 68 | * @return Response 69 | */ 70 | public function show($id) 71 | { 72 | return 'All category related agents here'; 73 | } 74 | 75 | /** 76 | * Show the form for editing the specified resource. 77 | * 78 | * @param int $id 79 | * 80 | * @return Response 81 | */ 82 | public function edit($id) 83 | { 84 | $category = Category::findOrFail($id); 85 | 86 | return view('ticketit::admin.category.edit', compact('category')); 87 | } 88 | 89 | /** 90 | * Update the specified resource in storage. 91 | * 92 | * @param Request $request 93 | * @param int $id 94 | * 95 | * @return \Illuminate\Http\RedirectResponse 96 | */ 97 | public function update(Request $request, $id) 98 | { 99 | $this->validate($request, [ 100 | 'name' => 'required', 101 | 'color' => 'required', 102 | ]); 103 | 104 | $category = Category::findOrFail($id); 105 | $category->update(['name' => $request->name, 'color' => $request->color]); 106 | 107 | Session::flash('status', trans('ticketit::lang.category-name-has-been-modified', ['name' => $request->name])); 108 | 109 | \Cache::forget('ticketit::categories'); 110 | 111 | return redirect()->action('\Kordy\Ticketit\Controllers\CategoriesController@index'); 112 | } 113 | 114 | /** 115 | * Remove the specified resource from storage. 116 | * 117 | * @param int $id 118 | * 119 | * @return Response 120 | */ 121 | public function destroy($id) 122 | { 123 | $category = Category::findOrFail($id); 124 | $name = $category->name; 125 | $category->delete(); 126 | 127 | Session::flash('status', trans('ticketit::lang.category-name-has-been-deleted', ['name' => $name])); 128 | 129 | \Cache::forget('ticketit::categories'); 130 | 131 | return redirect()->action('\Kordy\Ticketit\Controllers\CategoriesController@index'); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /src/Controllers/CommentsController.php: -------------------------------------------------------------------------------- 1 | middleware('Kordy\Ticketit\Middleware\IsAdminMiddleware', ['only' => ['edit', 'update', 'destroy']]); 14 | $this->middleware('Kordy\Ticketit\Middleware\ResAccessMiddleware', ['only' => 'store']); 15 | } 16 | 17 | /** 18 | * Display a listing of the resource. 19 | * 20 | * @return Response 21 | */ 22 | public function index() 23 | { 24 | // 25 | } 26 | 27 | /** 28 | * Show the form for creating a new resource. 29 | * 30 | * @return Response 31 | */ 32 | public function create() 33 | { 34 | // 35 | } 36 | 37 | /** 38 | * Store a newly created resource in storage. 39 | * 40 | * @param Request $request 41 | * 42 | * @return \Illuminate\Http\RedirectResponse 43 | */ 44 | public function store(Request $request) 45 | { 46 | $this->validate($request, [ 47 | 'ticket_id' => 'required|exists:ticketit,id', 48 | 'content' => 'required|min:6', 49 | ]); 50 | 51 | $comment = new Models\Comment(); 52 | 53 | $comment->setPurifiedContent($request->get('content')); 54 | 55 | $comment->ticket_id = $request->get('ticket_id'); 56 | $comment->user_id = \Auth::user()->id; 57 | $comment->save(); 58 | 59 | $ticket = Models\Ticket::find($comment->ticket_id); 60 | $ticket->updated_at = $comment->created_at; 61 | $ticket->save(); 62 | 63 | return back()->with('status', trans('ticketit::lang.comment-has-been-added-ok')); 64 | } 65 | 66 | /** 67 | * Display the specified resource. 68 | * 69 | * @param int $id 70 | * 71 | * @return Response 72 | */ 73 | public function show($id) 74 | { 75 | // 76 | } 77 | 78 | /** 79 | * Show the form for editing the specified resource. 80 | * 81 | * @param int $id 82 | * 83 | * @return Response 84 | */ 85 | public function edit($id) 86 | { 87 | // 88 | } 89 | 90 | /** 91 | * Update the specified resource in storage. 92 | * 93 | * @param Request $request 94 | * @param int $id 95 | * 96 | * @return Response 97 | */ 98 | public function update(Request $request, $id) 99 | { 100 | // 101 | } 102 | 103 | /** 104 | * Remove the specified resource from storage. 105 | * 106 | * @param int $id 107 | * 108 | * @return Response 109 | */ 110 | public function destroy($id) 111 | { 112 | // 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/Controllers/DashboardController.php: -------------------------------------------------------------------------------- 1 | count(); 16 | $closed_tickets_count = $tickets_count - $open_tickets_count; 17 | 18 | // Per Category pagination 19 | $categories = Category::paginate(10, ['*'], 'cat_page'); 20 | 21 | // Total tickets counter per category for google pie chart 22 | $categories_all = Category::all(); 23 | $categories_share = []; 24 | foreach ($categories_all as $cat) { 25 | $categories_share[$cat->name] = $cat->tickets()->count(); 26 | } 27 | 28 | // Total tickets counter per agent for google pie chart 29 | $agents_share_obj = Agent::agents()->with(['agentTotalTickets' => function ($query) { 30 | $query->addSelect(['id', 'agent_id']); 31 | }])->get(); 32 | 33 | $agents_share = []; 34 | foreach ($agents_share_obj as $agent_share) { 35 | $agents_share[$agent_share->name] = $agent_share->agentTotalTickets->count(); 36 | } 37 | 38 | // Per Agent 39 | $agents = Agent::agents(10); 40 | 41 | // Per User 42 | $users = Agent::users(10); 43 | 44 | // Per Category performance data 45 | $ticketController = new TicketsController(new Ticket(), new Agent()); 46 | $monthly_performance = $ticketController->monthlyPerfomance($indicator_period); 47 | 48 | if (request()->has('cat_page')) { 49 | $active_tab = 'cat'; 50 | } elseif (request()->has('agents_page')) { 51 | $active_tab = 'agents'; 52 | } elseif (request()->has('users_page')) { 53 | $active_tab = 'users'; 54 | } else { 55 | $active_tab = 'cat'; 56 | } 57 | 58 | return view( 59 | 'ticketit::admin.index', 60 | compact( 61 | 'open_tickets_count', 62 | 'closed_tickets_count', 63 | 'tickets_count', 64 | 'categories', 65 | 'agents', 66 | 'users', 67 | 'monthly_performance', 68 | 'categories_share', 69 | 'agents_share', 70 | 'active_tab' 71 | )); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/Controllers/StatusesController.php: -------------------------------------------------------------------------------- 1 | validate($request, [ 49 | 'name' => 'required', 50 | 'color' => 'required', 51 | ]); 52 | 53 | $status = new Status(); 54 | $status->create(['name' => $request->name, 'color' => $request->color]); 55 | 56 | Session::flash('status', trans('ticketit::lang.status-name-has-been-created', ['name' => $request->name])); 57 | 58 | \Cache::forget('ticketit::statuses'); 59 | 60 | return redirect()->action('\Kordy\Ticketit\Controllers\StatusesController@index'); 61 | } 62 | 63 | /** 64 | * Display the specified resource. 65 | * 66 | * @param int $id 67 | * 68 | * @return Response 69 | */ 70 | public function show($id) 71 | { 72 | return trans('ticketit::lang.status-all-tickets-here'); 73 | } 74 | 75 | /** 76 | * Show the form for editing the specified resource. 77 | * 78 | * @param int $id 79 | * 80 | * @return Response 81 | */ 82 | public function edit($id) 83 | { 84 | $status = Status::findOrFail($id); 85 | 86 | return view('ticketit::admin.status.edit', compact('status')); 87 | } 88 | 89 | /** 90 | * Update the specified resource in storage. 91 | * 92 | * @param Request $request 93 | * @param int $id 94 | * 95 | * @return \Illuminate\Http\RedirectResponse 96 | */ 97 | public function update(Request $request, $id) 98 | { 99 | $this->validate($request, [ 100 | 'name' => 'required', 101 | 'color' => 'required', 102 | ]); 103 | 104 | $status = Status::findOrFail($id); 105 | $status->update(['name' => $request->name, 'color' => $request->color]); 106 | 107 | Session::flash('status', trans('ticketit::lang.status-name-has-been-modified', ['name' => $request->name])); 108 | 109 | \Cache::forget('ticketit::statuses'); 110 | 111 | return redirect()->action('\Kordy\Ticketit\Controllers\StatusesController@index'); 112 | } 113 | 114 | /** 115 | * Remove the specified resource from storage. 116 | * 117 | * @param int $id 118 | * 119 | * @return Response 120 | */ 121 | public function destroy($id) 122 | { 123 | $status = Status::findOrFail($id); 124 | $name = $status->name; 125 | $status->delete(); 126 | 127 | Session::flash('status', trans('ticketit::lang.status-name-has-been-deleted', ['name' => $name])); 128 | 129 | \Cache::forget('ticketit::statuses'); 130 | 131 | return redirect()->action('\Kordy\Ticketit\Controllers\StatusesController@index'); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /src/Controllers/ToolsController.php: -------------------------------------------------------------------------------- 1 | $b[$field] ? 1 : -1; 36 | } 37 | }); 38 | 39 | return $data; 40 | } 41 | 42 | /** 43 | * Determine if the current request URL and query string matches a pattern. 44 | * 45 | * @param mixed string 46 | * 47 | * @return bool 48 | */ 49 | public function fullUrlIs($match) 50 | { 51 | $url = Request::fullUrl(); 52 | 53 | if (Str::is($match, $url)) { 54 | return true; 55 | } 56 | 57 | return false; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/Helpers/Cdn.php: -------------------------------------------------------------------------------- 1 | 'ca-ES', 29 | 'cs' => 'cs-CZ', 30 | 'da' => 'da-DK', 31 | 'fa' => 'fa-IR', 32 | 'he' => 'he-IL', 33 | 'ja' => 'ja-JP', 34 | 'ko' => 'ko-KR', 35 | 'nb' => 'nb-NO', 36 | 'sl' => 'sl-SI', 37 | 'sr' => 'sr-RS', 38 | 'sv' => 'sv-SE', 39 | 'uk' => 'uk-UA', 40 | 'vi' => 'vi-VN', 41 | 'zh' => 'zh-CN', 42 | ]; 43 | $editor_locale = Arr::get($map, $editor_locale, $editor_locale.'-'.strtoupper($editor_locale)); 44 | 45 | return $editor_locale; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Helpers/LaravelVersion.php: -------------------------------------------------------------------------------- 1 | , gt, >=, ge, ==, =, eq, !=, <>, ne 25 | * @param string $version 26 | * 27 | * @return bool 28 | */ 29 | public static function compare($operator, $version) 30 | { 31 | return version_compare(static::getLaravelVersion(), $version, $operator); 32 | } 33 | 34 | /** 35 | * Checks if the current install is older than the given version number. 36 | * 37 | * @param string $version 38 | * 39 | * @return bool 40 | */ 41 | public static function lt($version) 42 | { 43 | return static::compare('<', $version); 44 | } 45 | 46 | /** 47 | * Checks if the current install is newer than the given version number. 48 | * 49 | * @param string $version 50 | * 51 | * @return bool 52 | */ 53 | public static function gt($version) 54 | { 55 | return static::compare('>', $version); 56 | } 57 | 58 | /** 59 | * Checks if the current install is minimum as new as required. 60 | * 61 | * @param string $version 62 | * 63 | * @return bool 64 | */ 65 | public static function min($version) 66 | { 67 | return static::compare('>=', $version); 68 | } 69 | 70 | /** 71 | * Checks if the current install is maximum as new as required. 72 | * 73 | * @param string $version 74 | * 75 | * @return bool 76 | */ 77 | public static function max($version) 78 | { 79 | return static::compare('<=', $version); 80 | } 81 | 82 | /** 83 | * Returns the needed auth middleware according to the version. 84 | * 85 | * @return array 86 | */ 87 | public static function authMiddleware() 88 | { 89 | if (static::min('5.2') && static::lt('5.3') && app(Router::class)->resolveMiddlewareClassName('web') != 'web') { 90 | return ['web', 'auth']; 91 | } elseif (static::min('5.3')) { 92 | return ['web', 'auth']; 93 | } 94 | 95 | return ['auth']; 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /src/JSON/summernote_init.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolbar": [ 3 | ["style", ["style"]], 4 | ["font", ["bold", "underline", "italic", "clear"]], 5 | ["color", ["color"]], 6 | ["para", ["ul", "ol", "paragraph"]], 7 | ["table", ["table"]], 8 | ["insert", ["link", "picture", "video"]], 9 | ["view", ["fullscreen", "codeview", "help"]] 10 | ] 11 | } -------------------------------------------------------------------------------- /src/Mail/TicketitNotification.php: -------------------------------------------------------------------------------- 1 | template = $template; 26 | $this->data = $data; 27 | $this->notification_owner = $notification_owner; 28 | $this->subject = $subject; 29 | } 30 | 31 | /** 32 | * Build the message. 33 | * 34 | * @return $this 35 | */ 36 | public function build() 37 | { 38 | return $this->subject($this->subject) 39 | ->replyTo($this->notification_owner->email, $this->notification_owner->name) 40 | ->view($this->template) 41 | ->with($this->data); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/Middleware/IsAdminMiddleware.php: -------------------------------------------------------------------------------- 1 | route(Setting::grab('main_route') . '.index') 26 | ->with('warning', trans('ticketit::lang.you-are-not-permitted-to-access')); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Middleware/IsAgentMiddleware.php: -------------------------------------------------------------------------------- 1 | route(Setting::grab('main_route'). '.index') 26 | ->with('warning', trans('ticketit::lang.you-are-not-permitted-to-access')); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Middleware/ResAccessMiddleware.php: -------------------------------------------------------------------------------- 1 | route()->getName() == Setting::grab('main_route').'.show') { 35 | if (LaravelVersion::lt('5.2.0')) { 36 | $ticket_id = $request->route(Setting::grab('main_route')); 37 | } else { 38 | $ticket_id = $request->route('ticket'); 39 | } 40 | } 41 | 42 | // if this is a new comment on a ticket 43 | if ($request->route()->getName() == Setting::grab('main_route').'-comment.store') { 44 | $ticket_id = $request->get('ticket_id'); 45 | } 46 | 47 | // Assigned Agent has access in the restricted mode enabled 48 | if (Agent::isAgent() && Agent::isAssignedAgent($ticket_id)) { 49 | return $next($request); 50 | } 51 | 52 | // Ticket Owner has access 53 | if (Agent::isTicketOwner($ticket_id)) { 54 | return $next($request); 55 | } 56 | 57 | return redirect()->route(Setting::grab('main_route') . '.index') 58 | ->with('warning', trans('ticketit::lang.you-are-not-permitted-to-access')); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/Migrations/2015_07_22_115516_create_ticketit_tables.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->string('name'); 18 | $table->string('color'); 19 | }); 20 | 21 | Schema::create('ticketit_priorities', function (Blueprint $table) { 22 | $table->increments('id'); 23 | $table->string('name'); 24 | $table->string('color'); 25 | }); 26 | 27 | Schema::create('ticketit_categories', function (Blueprint $table) { 28 | $table->increments('id'); 29 | $table->string('name'); 30 | $table->string('color'); 31 | }); 32 | 33 | Schema::create('ticketit_categories_users', function (Blueprint $table) { 34 | $table->integer('category_id')->unsigned(); 35 | $table->integer('user_id')->unsigned(); 36 | }); 37 | 38 | Schema::create('ticketit', function (Blueprint $table) { 39 | $table->increments('id'); 40 | $table->string('subject'); 41 | $table->longText('content'); 42 | $table->integer('status_id')->unsigned(); 43 | $table->integer('priority_id')->unsigned(); 44 | $table->integer('user_id')->unsigned(); 45 | $table->integer('agent_id')->unsigned(); 46 | $table->integer('category_id')->unsigned(); 47 | $table->timestamps(); 48 | }); 49 | 50 | Schema::create('ticketit_comments', function (Blueprint $table) { 51 | $table->increments('id'); 52 | $table->text('content'); 53 | $table->integer('user_id')->unsigned(); 54 | $table->integer('ticket_id')->unsigned(); 55 | $table->timestamps(); 56 | }); 57 | 58 | Schema::create('ticketit_audits', function (Blueprint $table) { 59 | $table->increments('id'); 60 | $table->text('operation'); 61 | $table->integer('user_id')->unsigned(); 62 | $table->integer('ticket_id')->unsigned(); 63 | $table->timestamps(); 64 | }); 65 | } 66 | 67 | /** 68 | * Reverse the migrations. 69 | * 70 | * @return void 71 | */ 72 | public function down() 73 | { 74 | Schema::drop('ticketit_audits'); 75 | Schema::drop('ticketit_comments'); 76 | Schema::drop('ticketit'); 77 | Schema::drop('ticketit_categories_users'); 78 | Schema::drop('ticketit_categories'); 79 | Schema::drop('ticketit_priorities'); 80 | Schema::drop('ticketit_statuses'); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/Migrations/2015_07_22_123254_alter_users_table.php: -------------------------------------------------------------------------------- 1 | boolean('ticketit_admin')->default(0); 17 | $table->boolean('ticketit_agent')->default(0); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | * 24 | * @return void 25 | */ 26 | public function down() 27 | { 28 | Schema::table('users', function (Blueprint $table) { 29 | $table->dropColumn(['ticketit_admin', 'ticketit_agent']); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Migrations/2015_09_29_123456_add_completed_at_column_to_ticketit_table.php: -------------------------------------------------------------------------------- 1 | timestamp('completed_at')->nullable(); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | * 23 | * @return void 24 | */ 25 | public function down() 26 | { 27 | Schema::table('ticketit', function (Blueprint $table) { 28 | $table->dropColumn('completed_at'); 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Migrations/2015_10_08_123457_create_settings_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->string('lang')->unique()->nullable(); 18 | $table->string('slug')->unique()->index(); 19 | $table->string('value'); 20 | $table->string('default'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::drop('ticketit_settings'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Migrations/2016_01_15_002617_add_htmlcontent_to_ticketit_and_comments.php: -------------------------------------------------------------------------------- 1 | longText('html')->nullable()->after('content'); 17 | }); 18 | 19 | Schema::table('ticketit_comments', function (Blueprint $table) { 20 | $table->longText('html')->nullable()->after('content'); 21 | $table->longText('content')->change(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::table('ticketit', function (Blueprint $table) { 33 | $table->dropColumn('html'); 34 | }); 35 | 36 | Schema::table('ticketit_comments', function (Blueprint $table) { 37 | $table->dropColumn('html'); 38 | $table->text('content')->change(); 39 | }); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Migrations/2016_01_15_040207_enlarge_settings_columns.php: -------------------------------------------------------------------------------- 1 | mediumText('value')->change(); 18 | $table->mediumText('default')->change(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::table('ticketit_settings', function (Blueprint $table) { 30 | $table->string('value')->change(); 31 | $table->string('default')->change(); 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Migrations/2016_01_15_120557_add_indexes.php: -------------------------------------------------------------------------------- 1 | index('subject'); 22 | $table->index('status_id'); 23 | $table->index('priority_id'); 24 | $table->index('user_id'); 25 | $table->index('agent_id'); 26 | $table->index('category_id'); 27 | $table->index('completed_at'); 28 | }); 29 | 30 | Schema::table('ticketit_comments', function (Blueprint $table) { 31 | $table->index('user_id'); 32 | $table->index('ticket_id'); 33 | }); 34 | 35 | Schema::table('ticketit_settings', function (Blueprint $table) { 36 | $table->index('lang'); 37 | $table->index('slug'); 38 | }); 39 | } 40 | 41 | /** 42 | * Reverse the migrations. 43 | * 44 | * @return void 45 | */ 46 | public function down() 47 | { 48 | Schema::table('ticketit', function (Blueprint $table) { 49 | $table->dropIndex('ticketit_subject_index'); 50 | $table->dropIndex('ticketit_status_id_index'); 51 | $table->dropIndex('ticketit_priority_id_index'); 52 | $table->dropIndex('ticketit_user_id_index'); 53 | $table->dropIndex('ticketit_agent_id_index'); 54 | $table->dropIndex('ticketit_category_id_index'); 55 | $table->dropIndex('ticketit_completed_at_index'); 56 | }); 57 | 58 | Schema::table('ticketit_comments', function (Blueprint $table) { 59 | $table->dropIndex('ticketit_comments_user_id_index'); 60 | $table->dropIndex('ticketit_comments_ticket_id_index'); 61 | }); 62 | 63 | Schema::table('ticketit_settings', function (Blueprint $table) { 64 | $table->dropIndex('ticketit_settings_lang_index'); 65 | $table->dropIndex('ticketit_settings_slug_index'); 66 | }); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/Models/Category.php: -------------------------------------------------------------------------------- 1 | hasMany('Kordy\Ticketit\Models\Ticket', 'category_id'); 28 | } 29 | 30 | /** 31 | * Get related agents. 32 | * 33 | * @return \Illuminate\Database\Eloquent\Relations\HasMany 34 | */ 35 | public function agents() 36 | { 37 | return $this->belongsToMany('\Kordy\Ticketit\Models\Agent', 'ticketit_categories_users', 'category_id', 'user_id'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/Models/Comment.php: -------------------------------------------------------------------------------- 1 | belongsTo('Kordy\Ticketit\Models\Ticket', 'ticket_id'); 24 | } 25 | 26 | /** 27 | * Get comment owner. 28 | * 29 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo 30 | */ 31 | public function user() 32 | { 33 | return $this->belongsTo('App\User', 'user_id'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Models/Configuration.php: -------------------------------------------------------------------------------- 1 | attributes['lang'] = trim($lang) !== '' ? $lang : null; 26 | } 27 | 28 | /** 29 | * The attributes that should be casted to native types. 30 | * 31 | * @var array 32 | */ 33 | protected $casts = [ 34 | 'id' => 'integer', 35 | 'lang' => 'string', 36 | 'slug' => 'string', 37 | 'value' => 'string', 38 | 'default' => 'string', 39 | ]; 40 | 41 | public static $rules = [ 42 | 43 | ]; 44 | } 45 | -------------------------------------------------------------------------------- /src/Models/Priority.php: -------------------------------------------------------------------------------- 1 | hasMany('Kordy\Ticketit\Models\Ticket', 'priority_id'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Models/Status.php: -------------------------------------------------------------------------------- 1 | hasMany('Kordy\Ticketit\Models\Ticket', 'status_id'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Public/css/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekordy/ticketit/ef458dfbab78029ac9ef798e089b43a87b7a15a9/src/Public/css/style.css -------------------------------------------------------------------------------- /src/Traits/ContentEllipse.php: -------------------------------------------------------------------------------- 1 | {$attr}; 17 | if (strlen($content) > $maxlength) { 18 | return substr($content, 0, $maxlength).'...'; 19 | } 20 | 21 | return $content; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Traits/Purifiable.php: -------------------------------------------------------------------------------- 1 | content = Purifier::clean($rawHtml, ['HTML.Allowed' => '']); 20 | $this->html = Purifier::clean($rawHtml, Setting::grab('purifier_config')); 21 | 22 | return $this; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Translations/ar/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name قام بفتح التذكرة :subject
7 | :status في :category, وتم تعيينه لك.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/ar/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name علق على التذكرة: :subject
7 | تصنيف التذكرة: :category - الحالة: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/ar/email/globals.php: -------------------------------------------------------------------------------- 1 | 'تعيين تذكرة', 6 | 'comment' => 'تعليق جديد', 7 | 'status' => 'الحالة تغيرت', 8 | 'transfer' => 'تذكرة منقولة', 9 | 'view-ticket' => 'اضغط هنا لعرض التذكرة.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/ar/email/status.php: -------------------------------------------------------------------------------- 1 | ':name قام بتغيير حالة التذكرة ":subject" من :old_status إلى :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/ar/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name قام بنقل التذكرة ":subject" من :agent في :old_category إليك في :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/ar/install.php: -------------------------------------------------------------------------------- 1 | 'بدء تثبيت التذاكر', 6 | 'master-template-file' => 'ملف القالب الرئيسي', 7 | 'master-template-other-path' => 'مسار آخر لملف القالب الرئيسية', 8 | 'master-template-other-path-ex' => 'ex. views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'سيتم تثبيت التالي:', 10 | 'all-tables-migrated' => 'تم تثبيت الجداول المطلوبة', 11 | 'proceed' => 'البدء', 12 | 'another-file' => 'ملف آخر', 13 | 'admin-select' => 'اختيار مدير', // New 14 | 'admin-select-help-block' => 'يمكنك اختيار مستخدمين آخرين لإضافتهم كمدراء لاحقاً', // New 15 | 'upgrade' => 'ترقية نسخة التذاكر', // New v0.2.3 16 | 'settings-to-be-installed' => 'سيتم تثبيت الإعدادات التالية:', // New v0.2.3 17 | 'all-settings-installed' => 'تم تثبيت الإعدادات المطلوبة', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/Translations/de/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name hat ein neues Ticket erstellt :subject
7 | :status in :category, welches Dir zugewiesen wurde.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/de/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name hat einen Kommentar hinterlassen: :subject
7 | Ticket Kategorie: :category - Status: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/de/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Ticket zugewiesen', 6 | 'comment' => 'Neuer Kommentar', 7 | 'status' => 'Status aktualisiert', 8 | 'transfer' => 'Ticket verschoben', 9 | 'view-ticket' => 'Hier klicken um das Ticket anzuzeigen.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/de/email/status.php: -------------------------------------------------------------------------------- 1 | ':name hat den Status für ":subject" von :old_status auf :new_status gesetzt
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/de/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name hat das Ticket ":subject" von :agent in :old_category zu Dir in :new_category verschoben
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/en/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name created new ticket :subject
7 | :status in :category, and it has been assigned to you.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/en/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name commented on ticket: :subject
7 | Ticket category: :category - status: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/en/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Ticket Assigned', 6 | 'comment' => 'New Comment', 7 | 'status' => 'Status Changed', 8 | 'transfer' => 'Ticket Transferred', 9 | 'view-ticket' => 'Click here to view your ticket.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/en/email/status.php: -------------------------------------------------------------------------------- 1 | ':name changed the status of ":subject" from :old_status to :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/en/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name has transferred the ticket ":subject" from :agent in :old_category to you in :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/en/install.php: -------------------------------------------------------------------------------- 1 | 'Ticketit Initial Setup', 6 | 'master-template-file' => 'Master template file', 7 | 'master-template-other-path' => 'Other path to the master template file', 8 | 'master-template-other-path-ex' => 'ex. views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'These migrations will be installed:', 10 | 'all-tables-migrated' => 'All needed tables are migrated', 11 | 'proceed' => 'Proceed', 12 | 'another-file' => 'another File', 13 | 'admin-select' => 'Select administrator', // New 14 | 'admin-select-help-block' => 'Later you can select more users for administration', // New 15 | 'upgrade' => 'Ticketit version upgrade', // New v0.2.3 16 | 'settings-to-be-installed' => 'These settings will be installed:', // New v0.2.3 17 | 'all-settings-installed' => 'All needed settings are installed', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/Translations/es/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name creó el tiquete nuevo :subject
7 | :status en :category, y te lo asignaron.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/es/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name comentó en el tiquete: :subject
7 | Categoría del tiquete: :category - estado: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/es/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Tiquete Asignado', 6 | 'comment' => 'Nuevo Comentario', 7 | 'status' => 'Estado Cambiado', 8 | 'transfer' => 'Tiquete Transferido', 9 | 'view-ticket' => 'Haz click aquí para ver su tiquete.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/es/email/status.php: -------------------------------------------------------------------------------- 1 | ':name cambió el estado de ":subject" de :old_status a :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/es/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name transfirió el tiquete ":subject" de :agent en :old_category a usted en :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/es/install.php: -------------------------------------------------------------------------------- 1 | 'Configuración Inicial de Ticketit', 6 | 'master-template-file' => 'Archivo de plantilla principal', 7 | 'master-template-other-path' => 'Otra ruta de archivo para el archivo de la plantilla principal', 8 | 'master-template-other-path-ex' => 'ej. views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'Las siguientes migraciones serán instaladas:', 10 | 'all-tables-migrated' => 'Todas las tablas necesarias fueron migradas', 11 | 'proceed' => 'Proceder', 12 | 'another-file' => 'otro Archivo', 13 | 'admin-select' => 'Seleccionar administrador', // New 14 | 'admin-select-help-block' => 'Más adelante podrá seleccionar más usuarios para ser administradores', // New 15 | 'upgrade' => 'Actualizar la versión de Ticketit', // New v0.2.3 16 | 'settings-to-be-installed' => 'Las siguientes configuraciones serán instaladas:', // New v0.2.3 17 | 'all-settings-installed' => 'Todas las configuraciones fueron instaladas', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/Translations/fa/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name یک تیکت با موضوع :subject ایجاد کرده است
7 | :status در :category, و این تیکت به شما ارجاع داده شده است.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/fa/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name به تیکت: :subject پاسخ داده است
7 | دسته تیکت: :category - وضعیت: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/fa/email/globals.php: -------------------------------------------------------------------------------- 1 | 'تیکت ارجاد داده شده', 6 | 'comment' => 'پاسخ جدید', 7 | 'status' => 'وضعیت تغییر یافت', 8 | 'transfer' => 'تیتکت انتقال یافت', 9 | 'view-ticket' => 'برای مشاهده تیکت اینجا را کلیک نمایید.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/fa/email/status.php: -------------------------------------------------------------------------------- 1 | ':name وضعیت تیکت ":subject" را از :old_status به :new_status تغییر داده است
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/fa/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name تیکت ":subject" را به :agent از دسته :old_category به شما در دسته in :new_category انتقال داده است
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/fa/install.php: -------------------------------------------------------------------------------- 1 | 'تنظیمات اولیه', 6 | 'master-template-file' => 'نام فایل قالب (master template file)', 7 | 'master-template-other-path' => 'مسیر دیگر', 8 | 'master-template-other-path-ex' => 'ex. views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'میگریشن های زیر نصب شدند:', 10 | 'all-tables-migrated' => 'تمامی جداول مورد نیاز بازسازی شدند', 11 | 'proceed' => 'Proceed', 12 | 'another-file' => 'فایل دیگر', 13 | 'admin-select' => 'انتخاب مدیر', // New 14 | 'admin-select-help-block' => 'شما بعدا میتوانید مدیر های دیگری نیز اضافه نمایید', // New 15 | 'upgrade' => 'Ticketit version upgrade', // New v0.2.3 16 | 'settings-to-be-installed' => 'تنظیمات زیر به جدول تنظیمات اضافه شدند:', // New v0.2.3 17 | 'all-settings-installed' => 'تمامی تنظیمات مورد نیاز برنامه اعمال گردید', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/Translations/fr/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name a créé un nouveau ticket concernant :subject
7 | Il est actuellement :status dans la catégorie :category, et il vous a été assigné.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/fr/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name a ajouté un commentaire à propos du ticket : :subject
7 | Categorie: :category - statut: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/fr/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Ticket pris en charge', 6 | 'comment' => 'Nouveau Commentaire', 7 | 'status' => 'Modification du Statut', 8 | 'transfer' => 'Ticket Transféré', 9 | 'view-ticket' => 'Cliquez ici pour suivre votre ticket.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/fr/email/status.php: -------------------------------------------------------------------------------- 1 | ':name a modifié le statut du ticket ":subject" de :old_status à :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/fr/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name a transféré le ticket ":subject" de :agent dans la catégorie :old_category vers vous dans la catégorie :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/fr/settings.php: -------------------------------------------------------------------------------- 1 | <<<'ENDHTML' 15 |

16 | notification sur le statut: envoyer des notifications par mel aux propriétaires et gestionnaires du ticket quand son statut change 17 |

18 | 19 |

20 | Par défaut, envoi de notifications: 1
21 | Ne pas envoyer de notifications: 0 22 |

23 | ENDHTML 24 | 25 | , 'comment_notification' => <<<'ENDHTML' 26 |

27 | notification sur le commentaire: Envoyer une notification quand un nouveau commentaire est publié 28 |

29 | 30 |

31 | Par défaut, envoi de notifications: 1
32 | Ne pas envoyer de notifications: 0 33 |

34 | ENDHTML 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /src/Translations/hu/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name új kérelmet hozott létre :subject tárggyal
7 | :status státusszal :category kategóriában, és ez önhöz lett rendelve.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/hu/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name hozzászólt a következő kérelemhez: :subject
7 | Kategória: :category - Státusz: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/hu/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Kérelem hozzárendelve', 6 | 'comment' => 'Új hozzászólás', 7 | 'status' => 'Státusz megváltozott', 8 | 'transfer' => 'Kérelem átmozgatva', 9 | 'view-ticket' => 'Kattintson ide kérelme megtekintéséhez.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/hu/email/status.php: -------------------------------------------------------------------------------- 1 | ':name megváltoztatta :subject kérelem státuszát: :old_status → :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/hu/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name átruházta :subject kérelmet :status státusszal :agent ügynöktől önre. Kategória :old_category → :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/it/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name ha creato un nuovo ticket di assistenza :subject
7 | :status in :category, ed è stato assegnato a te.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/it/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name ha risposto alla tua richiesta di supporto: :subject
7 | Categoria Ticket: :category - stato: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/it/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Ticket Assegnati', 6 | 'comment' => 'Nuovo Commento', 7 | 'status' => 'Stato Cambiato', 8 | 'transfer' => 'Ticket Trasferito', 9 | 'view-ticket' => 'Clicca qui per vedere il tuo ticket.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/it/email/status.php: -------------------------------------------------------------------------------- 1 | ':name ha cambiato lo stato di ":subject" da :old_status a :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/it/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name ha trasferito il ticket di assistenza ":subject" da :agent in :old_category a te in :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/it/install.php: -------------------------------------------------------------------------------- 1 | 'Setup Iniziale Ticketit', 6 | 'master-template-file' => 'File template originale', 7 | 'master-template-other-path' => 'Altro percorso per il file di template originale', 8 | 'master-template-other-path-ex' => 'ex. views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'Queste migrazioni verranno installate:', 10 | 'all-tables-migrated' => 'Tutte le tabelle richieste sono state migrate', 11 | 'proceed' => 'Procedi', 12 | 'another-file' => 'Altro File', 13 | 'admin-select' => 'Selezione Amministratore', // New 14 | 'admin-select-help-block' => 'Successivamente potrai selezionare altri utenti come amministratori', // New 15 | 'upgrade' => 'Aggiornamento Versione Ticketit', // New v0.2.3 16 | 'settings-to-be-installed' => 'Queste impostazioni verranno installate:', // New v0.2.3 17 | 'all-settings-installed' => 'Tutte le impostazioni richieste sono state installate', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/Translations/nl/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name heeft een ticket aangemaakt, getiteld :subject
7 | :status in :category, en is aan jou toegewezen.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/nl/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name heeft gereageerd op ticket: :subject
7 | Categorie: :category - Status: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/nl/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Ticket toegewezen', 6 | 'comment' => 'Nieuwe reactie', 7 | 'status' => 'Status veranderd', 8 | 'transfer' => 'Ticket verplaatst', 9 | 'view-ticket' => 'Klik hier om jouw ticket te bekijken.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/nl/email/status.php: -------------------------------------------------------------------------------- 1 | ':name veranderde de status van ":subject" van :old_status naar :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/nl/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name heeft ticket ":subject" verplaatst van :agent in :old_category naar jou in :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/nl/install.php: -------------------------------------------------------------------------------- 1 | 'Ticketit Installatie', 6 | 'master-template-file' => 'Master template file', 7 | 'master-template-other-path' => 'Other path to the master template file', 8 | 'master-template-other-path-ex' => 'ex. views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'These migrations will be installed:', 10 | 'all-tables-migrated' => 'All needed tables are migrated', 11 | 'proceed' => 'Doorgaan', 12 | 'another-file' => 'nog een bestand', 13 | 'admin-select' => 'Selecteer beheerder', // New 14 | 'admin-select-help-block' => 'Je kunt later meerdere beheerders toevoegen', // New 15 | 'upgrade' => 'Ticketit versie upgrade', // New v0.2.3 16 | 'settings-to-be-installed' => 'Deze settings zullen worden geinstalleerd:', // New v0.2.3 17 | 'all-settings-installed' => 'Alle benodigde instellingen zijn geinstalleerd', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/Translations/pt_BR/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name Criado Novo Chamado :subject
7 | :status na :category, foi atribuido a você.
8 | ', 9 | ]; 10 | -------------------------------------------------------------------------------- /src/Translations/pt_BR/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 5 | :name comentou sobre o chamado: :subject
6 | Categoria do chamado: :category - Status: :status
7 |
8 |
:comment

9 | ', 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/pt_BR/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Chamado Atribuido', 5 | 'comment' => 'Novo Comentário', 6 | 'status' => 'Status alterado', 7 | 'transfer' => 'Chamado Transferido', 8 | 'view-ticket' => 'Click aqui pra ver seu chamado.', 9 | ]; 10 | -------------------------------------------------------------------------------- /src/Translations/pt_BR/email/status.php: -------------------------------------------------------------------------------- 1 | ':name alterado o status de ":subject" para :old_status para :new_status
', 5 | ]; 6 | -------------------------------------------------------------------------------- /src/Translations/pt_BR/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name foi transferido de chamado ":subject" para :agent na :old_category para você na :new_category
', 5 | ]; 6 | -------------------------------------------------------------------------------- /src/Translations/pt_BR/install.php: -------------------------------------------------------------------------------- 1 | 'Configuração Inicial dos Chamados', 5 | 'master-template-file' => 'Arquivo de Modelo Principal', 6 | 'master-template-other-path' => 'Outro Caminho para o Arquivo de Modelo Principal', 7 | 'master-template-other-path-ex' => 'ex. views/layouts/app.blade.php', 8 | 'migrations-to-be-installed' => 'Esta Migração será Instalada:', 9 | 'all-tables-migrated' => 'Todas as Tabelas serão Migradas', 10 | 'proceed' => 'Continuar', 11 | 'another-file' => 'Outro Arquivo', 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/ru/email/assigned.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name добавил тикет :subject
7 | со статусом :status в категории :category, который был назначен вам.
8 | ', 9 | 10 | ]; 11 | -------------------------------------------------------------------------------- /src/Translations/ru/email/comment.php: -------------------------------------------------------------------------------- 1 | ' 6 | :name оставил комментарий к тикету: :subject
7 | Категория: :category - статус: :status
8 |
9 |
:comment

10 | ', 11 | 12 | ]; 13 | -------------------------------------------------------------------------------- /src/Translations/ru/email/globals.php: -------------------------------------------------------------------------------- 1 | 'Тикет назначен', 6 | 'comment' => 'Добавлен комментарий', 7 | 'status' => 'Статус изменен', 8 | 'transfer' => 'Тикет переназначен', 9 | 'view-ticket' => 'Перейти к просмотру тикета.', 10 | 11 | ]; 12 | -------------------------------------------------------------------------------- /src/Translations/ru/email/status.php: -------------------------------------------------------------------------------- 1 | ':name изменил статус тикета ":subject" с :old_status на :new_status
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/ru/email/transfer.php: -------------------------------------------------------------------------------- 1 | ':name перенес тикет ":subject" с агента :agent категории :old_category вам в категорию :new_category
', 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /src/Translations/ru/install.php: -------------------------------------------------------------------------------- 1 | 'Ticketit: первоначальная настройка', 6 | 'master-template-file' => 'Файл основного шаблона', 7 | 'master-template-other-path' => 'Путь к файлу основного шаблона', 8 | 'master-template-other-path-ex' => 'например views/layouts/app.blade.php', 9 | 'migrations-to-be-installed' => 'Будут выполнены следующие миграции:', 10 | 'all-tables-migrated' => 'Все требуемые таблицы установлены', 11 | 'proceed' => 'Продолжить', 12 | 'another-file' => 'другой Файл', 13 | 'admin-select' => 'Выберите администратора', // New 14 | 'admin-select-help-block' => 'Позже вы сможете выбрать и других пользователей на роль администраторов', // New 15 | 'upgrade' => 'Обновление версии Ticketit', // New v0.2.3 16 | 'settings-to-be-installed' => 'Следующие настройки будут установлены:', // New v0.2.3 17 | 'all-settings-installed' => 'Все требуемые настройки установлены', // New v0.2.3 18 | ]; 19 | -------------------------------------------------------------------------------- /src/ViewComposers/TicketItComposer.php: -------------------------------------------------------------------------------- 1 | composer('ticketit::*', function ($view) use (&$u) { 15 | if (auth()->check()) { 16 | if ($u === null) { 17 | $u = Agent::find(auth()->user()->id); 18 | } 19 | $view->with('u', $u); 20 | } 21 | $setting = new Setting(); 22 | $view->with('setting', $setting); 23 | }); 24 | } 25 | 26 | public static function general() 27 | { 28 | // Passing to views the master view value from the setting file 29 | view()->composer('ticketit::*', function ($view) { 30 | $tools = new ToolsController(); 31 | $master = Setting::grab('master_template'); 32 | $email = Setting::grab('email.template'); 33 | $view->with(compact('master', 'email', 'tools')); 34 | }); 35 | } 36 | 37 | public static function codeMirror() 38 | { 39 | // Passing to views the master view value from the setting file 40 | view()->composer('ticketit::*', function ($view) { 41 | $editor_enabled = Setting::grab('editor_enabled'); 42 | $codemirror_enabled = Setting::grab('editor_html_highlighter'); 43 | $codemirror_theme = Setting::grab('codemirror_theme'); 44 | $view->with(compact('editor_enabled', 'codemirror_enabled', 'codemirror_theme')); 45 | }); 46 | } 47 | 48 | public static function summerNotes() 49 | { 50 | view()->composer('ticketit::tickets.partials.summernote', function ($view) { 51 | 52 | $editor_locale = EditorLocale::getEditorLocale(); 53 | $editor_options = file_get_contents(base_path(Setting::grab('summernote_options_json_file'))); 54 | 55 | $view->with(compact('editor_locale', 'editor_options')); 56 | }); 57 | } 58 | 59 | public static function sharedAssets() 60 | { 61 | //inlude font awesome css or not 62 | view()->composer('ticketit::shared.assets', function ($view) { 63 | $include_font_awesome = Setting::grab('include_font_awesome'); 64 | $view->with(compact('include_font_awesome')); 65 | }); 66 | } 67 | } -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/administrator/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.administrator-create-title')) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 |
8 |

{{ trans('ticketit::admin.administrator-create-title') }}

9 |
10 | @if ($users->isEmpty()) 11 |

{{ trans('ticketit::admin.administrator-create-no-users') }}

12 | @else 13 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.administrator.store', 'method' => 'POST', 'class' => 'form-horizontal']) !!} 14 |
15 | {{ trans('ticketit::admin.administrator-create-select-user') }} 16 |
17 | 18 | 19 | 20 | 24 | 25 | 26 | @foreach($users as $user) 27 | 28 | 35 | 36 | @endforeach 37 | 38 |
21 | {!! link_to_route($setting->grab('admin_route').'.administrator.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-default']) !!} 22 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 23 |
29 |
30 | 33 |
34 |
39 | {!! CollectiveForm::close() !!} 40 | @endif 41 |
42 | {!! $users->render() !!} 43 | @stop 44 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/administrator/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | 3 | @section('page') 4 | {{ trans('ticketit::admin.administrator-index-title') }} 5 | @stop 6 | 7 | @section('content') 8 | @include('ticketit::shared.header') 9 |
10 |
11 |

{{ trans('ticketit::admin.administrator-index-title') }} 12 | {!! link_to_route( 13 | $setting->grab('admin_route').'.administrator.create', 14 | trans('ticketit::admin.btn-create-new-administrator'), null, 15 | ['class' => 'btn btn-primary pull-right']) 16 | !!} 17 |

18 |
19 | 20 | @if ($administrators->isEmpty()) 21 |

{{ trans('ticketit::admin.administrator-index-no-administrators') }} 22 | {!! link_to_route($setting->grab('admin_route').'.administrator.create', trans('ticketit::admin.administrator-index-create-new')) !!} 23 |

24 | @else 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | @foreach($administrators as $administrator) 36 | 37 | 40 | 43 | 55 | 56 | @endforeach 57 | 58 |
{{ trans('ticketit::admin.table-id') }}{{ trans('ticketit::admin.table-name') }}{{ trans('ticketit::admin.table-remove-administrator') }}
38 | {{ $administrator->id }} 39 | 41 | {{ $administrator->name }} 42 | 44 | {!! CollectiveForm::open([ 45 | 'method' => 'DELETE', 46 | 'route' => [ 47 | $setting->grab('admin_route').'.administrator.destroy', 48 | $administrator->id 49 | ], 50 | 'id' => "delete-$administrator->id" 51 | ]) !!} 52 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-remove'), ['class' => 'btn btn-danger']) !!} 53 | {!! CollectiveForm::close() !!} 54 |
59 | 60 | @endif 61 |
62 | @stop 63 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/agent/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.agent-create-title')) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 |
8 |

{{ trans('ticketit::admin.agent-create-title') }}

9 |
10 | @if ($users->isEmpty()) 11 |

{{ trans('ticketit::admin.agent-create-no-users') }}

12 | @else 13 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.agent.store', 'method' => 'POST', 'class' => 'form-horizontal']) !!} 14 |
15 | {{ trans('ticketit::admin.agent-create-select-user') }} 16 |
17 | 18 | 19 | 20 | 24 | 25 | 26 | @foreach($users as $user) 27 | 28 | 35 | 36 | @endforeach 37 | 38 |
21 | {!! link_to_route($setting->grab('admin_route').'.agent.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-default']) !!} 22 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 23 |
29 |
30 | 33 |
34 |
39 | {!! CollectiveForm::close() !!} 40 | @endif 41 |
42 | {!! $users->render() !!} 43 | @stop 44 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/category/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.category-create-title')) 3 | 4 | @section('content') 5 |
6 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.category.store', 'method' => 'POST', 'class' => 'form-horizontal']) !!} 7 | {{ trans('ticketit::admin.category-create-title') }} 8 | @include('ticketit::admin.category.form') 9 | {!! CollectiveForm::close() !!} 10 |
11 | @stop 12 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/category/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.category-edit-title', ['name' => ucwords($category->name)])) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 | {!! CollectiveForm::model($category, [ 8 | 'route' => [$setting->grab('admin_route').'.category.update', $category->id], 9 | 'method' => 'PATCH', 10 | 'class' => 'form-horizontal' 11 | ]) !!} 12 | {{ trans('ticketit::admin.category-edit-title', ['name' => ucwords($category->name)]) }} 13 | @include('ticketit::admin.category.form', ['update', true]) 14 | {!! CollectiveForm::close() !!} 15 |
16 | @stop 17 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/category/form.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! CollectiveForm::label('name', trans('ticketit::admin.category-create-name') . trans('ticketit::admin.colon'), ['class' => 'col-lg-2 control-label']) !!} 3 |
4 | {!! CollectiveForm::text('name', isset($category->name) ? $category->name : null, ['class' => 'form-control']) !!} 5 |
6 |
7 |
8 | {!! CollectiveForm::label('color', trans('ticketit::admin.category-create-color') . trans('ticketit::admin.colon'), ['class' => 'col-lg-2 control-label']) !!} 9 |
10 | {!! CollectiveForm::custom('color', 'color', isset($category->color) ? $category->color : "#000000", ['class' => 'form-control']) !!} 11 |
12 |
13 |
14 |
15 | {!! link_to_route($setting->grab('admin_route').'.category.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-default']) !!} 16 | @if(isset($category)) 17 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-update'), ['class' => 'btn btn-primary']) !!} 18 | @else 19 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 20 | @endif 21 |
22 |
23 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/common/paginate.blade.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | 3 | @section('page') 4 | {{ trans('ticketit::admin.config-create-subtitle') }} 5 | @stop 6 | 7 | @section('content') 8 | @include('ticketit::shared.header') 9 |
10 |
11 |

{{ trans('ticketit::admin.config-create-title') }} 12 |
13 | {!! link_to_route( 14 | $setting->grab('admin_route').'.configuration.index', 15 | trans('ticketit::admin.btn-back'), null, 16 | ['class' => 'btn btn-default']) 17 | !!} 18 |
19 |

20 |
21 |
22 |
23 | {!! CollectiveForm::open(['route' => $setting->grab('admin_route').'.configuration.store']) !!} 24 | 25 | 26 |
27 | {!! CollectiveForm::label('slug', trans('ticketit::admin.config-edit-slug') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} 28 |
29 | {!! CollectiveForm::text('slug', null, ['class' => 'form-control']) !!} 30 |
31 |
32 | 33 | 34 |
35 | {!! CollectiveForm::label('default', trans('ticketit::admin.config-edit-default') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} 36 |
37 | {!! CollectiveForm::text('default', null, ['class' => 'form-control']) !!} 38 |
39 |
40 | 41 | 42 |
43 | {!! CollectiveForm::label('value', trans('ticketit::admin.config-edit-value') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} 44 |
45 | {!! CollectiveForm::text('value', null, ['class' => 'form-control']) !!} 46 |
47 |
48 | 49 | 50 |
51 | {!! CollectiveForm::label('lang', trans('ticketit::admin.config-edit-language') . trans('ticketit::admin.colon'), ['class' => 'col-sm-2 control-label']) !!} 52 |
53 | {!! CollectiveForm::text('lang', null, ['class' => 'form-control']) !!} 54 | 55 |
56 |
57 | 58 | 59 |
60 |
61 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 62 |
63 |
64 | 65 | {!! CollectiveForm::close() !!} 66 |
67 |
68 | 70 |
71 | 72 | 88 | 89 | @stop 90 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | 3 | @section('page') 4 | {{ trans('ticketit::admin.config-index-title') }} 5 | @stop 6 | 7 | @section('content') 8 | @include('ticketit::shared.header') 9 | 10 |
11 |
12 |

{{ trans('ticketit::admin.config-index-title') }} 13 |
14 | {!! link_to_route( 15 | $setting->grab('admin_route').'.configuration.index', 16 | trans('ticketit::admin.btn-back'), null, 17 | ['class' => 'btn btn-default']) 18 | !!} 19 | {!! link_to_route( 20 | $setting->grab('admin_route').'.configuration.create', 21 | trans('ticketit::admin.btn-create-new-config'), null, 22 | ['class' => 'btn btn-primary']) 23 | !!} 24 |
25 |

26 |
27 | @if($configurations->isEmpty()) 28 |
{{ trans('ticketit::admin.config-index-no-settings') }}
29 | @else 30 | 38 |
39 |
40 |
41 | @include('ticketit::admin.configuration.tables.init_table') 42 |
43 |
44 | @include('ticketit::admin.configuration.tables.ticket_table') 45 |
46 |
47 | @include('ticketit::admin.configuration.tables.email_table') 48 |
49 |
50 | @include('ticketit::admin.configuration.tables.perms_table') 51 |
52 |
53 | @include('ticketit::admin.configuration.tables.editor_table') 54 |
55 |
56 | @include('ticketit::admin.configuration.tables.other_table') 57 |
58 |
59 | @endif 60 | {{--@include('ticketit::admin.configuration.common.paginate', ['records' => $configurations])--}} 61 |
62 | 63 | 64 | @endsection 65 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/tables/editor_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['editor'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/tables/email_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['email'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/tables/init_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['init'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/tables/other_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['other'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/tables/perms_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['perms'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/configuration/tables/ticket_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['tickets'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/priority/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.priority-create-title')) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.priority.store', 'method' => 'POST', 'class' => 'form-horizontal']) !!} 8 | {{ trans('ticketit::admin.priority-create-title') }} 9 | @include('ticketit::admin.priority.form') 10 | {!! CollectiveForm::close() !!} 11 |
12 | @stop 13 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/priority/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.priority-edit-title', ['name' => ucwords($priority->name)])) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 | {!! CollectiveForm::model($priority, [ 8 | 'route' => [$setting->grab('admin_route').'.priority.update', $priority->id], 9 | 'method' => 'PATCH', 10 | 'class' => 'form-horizontal' 11 | ]) !!} 12 | {{ trans('ticketit::admin.priority-edit-title', ['name' => ucwords($priority->name)]) }} 13 | @include('ticketit::admin.priority.form', ['update', true]) 14 | {!! CollectiveForm::close() !!} 15 |
16 | @stop 17 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/priority/form.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! CollectiveForm::label('name', trans('ticketit::admin.priority-create-name') . trans('ticketit::admin.colon'), ['class' => 'col-lg-2 control-label']) !!} 3 |
4 | {!! CollectiveForm::text('name', isset($priority->name) ? $priority->name : null, ['class' => 'form-control']) !!} 5 |
6 |
7 |
8 | {!! CollectiveForm::label('color', trans('ticketit::admin.priority-create-color') . trans('ticketit::admin.colon'), ['class' => 'col-lg-2 control-label']) !!} 9 |
10 | {!! CollectiveForm::custom('color', 'color', isset($priority->color) ? $priority->color : "#000000", ['class' => 'form-control']) !!} 11 |
12 |
13 |
14 |
15 | {!! link_to_route($setting->grab('admin_route').'.priority.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-default']) !!} 16 | @if(isset($priority)) 17 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-update'), ['class' => 'btn btn-primary']) !!} 18 | @else 19 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 20 | @endif 21 |
22 |
23 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/status/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.status-create-title')) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.status.store', 'method' => 'POST', 'class' => 'form-horizontal']) !!} 8 | {{ trans('ticketit::admin.status-create-title') }} 9 | @include('ticketit::admin.status.form') 10 | {!! CollectiveForm::close() !!} 11 |
12 | @stop 13 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/status/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::admin.status-edit-title', ['name' => ucwords($status->name)])) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 | {!! CollectiveForm::model($status, [ 8 | 'route' => [$setting->grab('admin_route').'.status.update', $status->id], 9 | 'method' => 'PATCH', 10 | 'class' => 'form-horizontal' 11 | ]) !!} 12 | {{ trans('ticketit::admin.status-edit-title', ['name' => ucwords($status->name)]) }} 13 | @include('ticketit::admin.status.form', ['update', true]) 14 | {!! CollectiveForm::close() !!} 15 |
16 | @stop 17 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/admin/status/form.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! CollectiveForm::label('name', trans('ticketit::admin.status-create-name') . trans('ticketit::admin.colon'), ['class' => 'col-lg-2 control-label']) !!} 3 |
4 | {!! CollectiveForm::text('name', isset($status->name) ? $status->name : null, ['class' => 'form-control']) !!} 5 |
6 |
7 |
8 | {!! CollectiveForm::label('color', trans('ticketit::admin.status-create-color') . trans('ticketit::admin.colon'), ['class' => 'col-lg-2 control-label']) !!} 9 |
10 | {!! CollectiveForm::custom('color', 'color', isset($status->color) ? $status->color : "#000000", ['class' => 'form-control']) !!} 11 |
12 |
13 |
14 |
15 | {!! link_to_route($setting->grab('admin_route').'.status.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-default']) !!} 16 | @if(isset($status)) 17 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-update'), ['class' => 'btn btn-primary']) !!} 18 | @else 19 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 20 | @endif 21 |
22 |
23 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/emails/assigned.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @extends($email) 5 | 6 | @section('subject') 7 | {{ trans('ticketit::email/globals.assigned') }} 8 | @stop 9 | 10 | @section('link') 11 | 12 | {{ trans('ticketit::email/globals.view-ticket') }} 13 | 14 | @stop 15 | 16 | @section('content') 17 | {!! trans('ticketit::email/assigned.data', [ 18 | 'name' => $notification_owner->name, 19 | 'subject' => $ticket->subject, 20 | 'status' => $ticket->status->name, 21 | 'category' => $ticket->category->name 22 | ]) !!} 23 | @stop 24 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/emails/comment.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @extends($email) 5 | 6 | @section('subject') 7 | {{ trans('ticketit::email/globals.comment') }} 8 | @stop 9 | 10 | @section('link') 11 | 12 | {{ trans('ticketit::email/globals.view-ticket') }} 13 | 14 | @stop 15 | 16 | @section('content') 17 | {!! trans('ticketit::email/comment.data', [ 18 | 'name' => $comment->user->name, 19 | 'subject' => $ticket->subject, 20 | 'status' => $ticket->status->name, 21 | 'category' => $ticket->category->name, 22 | 'comment' => $comment->getShortContent() 23 | ]) !!} 24 | @stop 25 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/emails/status.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @extends($email) 6 | 7 | @section('subject') 8 | {{ trans('ticketit::email/globals.status') }} 9 | @stop 10 | 11 | @section('link') 12 | 13 | {{ trans('ticketit::email/globals.view-ticket') }} 14 | 15 | @stop 16 | 17 | @section('content') 18 | {!! trans('ticketit::email/status.data', [ 19 | 'name' => $notification_owner->name, 20 | 'subject' => $ticket->subject, 21 | 'old_status' => $original_ticket->status->name, 22 | 'new_status' => $ticket->status->name 23 | ]) !!} 24 | @stop 25 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/emails/transfer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @extends($email) 6 | 7 | @section('subject') 8 | {{ trans('ticketit::email/globals.transfer') }} 9 | @stop 10 | 11 | @section('link') 12 | 13 | {{ trans('ticketit::email/globals.view-ticket') }} 14 | 15 | @stop 16 | 17 | @section('content') 18 | {!! trans('ticketit::email/transfer.data', [ 19 | 'name' => $notification_owner->name, 20 | 'subject' => $ticket->subject, 21 | 'status' => $ticket->status->name, 22 | 'agent' => $original_ticket->agent->name, 23 | 'old_category' => $original_ticket->category->name, 24 | 'new_category' => $ticket->category->name 25 | ]) !!} 26 | @stop 27 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | 3 | @section('page') 4 | {{ trans('ticketit::lang.index-title') }} 5 | @stop 6 | 7 | @section('content') 8 | @include('ticketit::shared.header') 9 | @include('ticketit::tickets.index') 10 | @stop 11 | 12 | @section('footer') 13 | 14 | 60 | @append 61 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/install/index.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Ticketit Installation 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24 | 25 | 26 |
27 |

{{ trans('ticketit::install.initial-setup') }}

28 |
29 | 30 | 31 | 36 |
37 | 44 | 45 | 46 | 51 | 52 | {{ trans('ticketit::install.admin-select-help-block') }} 53 | 54 |
55 | 56 |
57 | @if(!empty($inactive_migrations)) 58 | {{ trans('ticketit::install.migrations-to-be-installed') }} 59 |
    60 | @foreach($inactive_migrations as $mig) 61 |
  • {{ $mig }}
  • 62 | @endforeach 63 |
64 | @else 65 | {{ trans('ticketit::install.all-tables-migrated') }} 66 | @endif 67 |
68 |
69 | 72 |
73 | 74 |
75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/install/upgrade.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Ticketit Upgrade 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24 | 25 | 26 |
27 |

{{ trans('ticketit::install.upgrade') }}

28 |
29 |
30 | @if(!empty($inactive_migrations)) 31 | {{ trans('ticketit::install.migrations-to-be-installed') }} 32 | 37 | @else 38 | {{ trans('ticketit::install.all-tables-migrated') }} 39 | @endif 40 |
41 |
42 |
43 | @if(!empty($inactive_settings)) 44 | {{ trans('ticketit::install.settings-to-be-installed') }} 45 | 50 | @else 51 | {{ trans('ticketit::install.all-settings-installed') }} 52 | @endif 53 |
54 |
55 | 56 | {{ trans('ticketit::install.proceed') }} 57 | 58 | 59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/shared/assets.blade.php: -------------------------------------------------------------------------------- 1 | {{-- Load the css file to the header --}} 2 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/shared/errors.blade.php: -------------------------------------------------------------------------------- 1 | @if($errors->first() != '') 2 |
3 | 4 | 9 |
10 | @endif 11 | @if(Session::has('warning')) 12 |
13 | 14 | {{ session('warning') }} 15 |
16 | @endif 17 | @if(Session::has('status')) 18 |
19 | 20 | {{ session('status') }} 21 |
22 | @endif 23 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/shared/header.blade.php: -------------------------------------------------------------------------------- 1 | @include('ticketit::shared.assets') 2 | @include('ticketit::shared.nav') 3 | @include('ticketit::shared.errors') -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::lang.create-ticket-title')) 3 | 4 | @section('content') 5 | @include('ticketit::shared.header') 6 |
7 | {!! CollectiveForm::open([ 8 | 'route'=>$setting->grab('main_route').'.store', 9 | 'method' => 'POST', 10 | 'class' => 'form-horizontal' 11 | ]) !!} 12 | {!! trans('ticketit::lang.create-new-ticket') !!} 13 |
14 | {!! CollectiveForm::label('subject', trans('ticketit::lang.subject') . trans('ticketit::lang.colon'), ['class' => 'col-lg-2 control-label']) !!} 15 |
16 | {!! CollectiveForm::text('subject', null, ['class' => 'form-control', 'required' => 'required']) !!} 17 | {!! trans('ticketit::lang.create-ticket-brief-issue') !!} 18 |
19 |
20 |
21 | {!! CollectiveForm::label('content', trans('ticketit::lang.description') . trans('ticketit::lang.colon'), ['class' => 'col-lg-2 control-label']) !!} 22 |
23 | {!! CollectiveForm::textarea('content', null, ['class' => 'form-control summernote-editor', 'rows' => '5', 'required' => 'required']) !!} 24 | {!! trans('ticketit::lang.create-ticket-describe-issue') !!} 25 |
26 |
27 |
28 |
29 | {!! CollectiveForm::label('priority', trans('ticketit::lang.priority') . trans('ticketit::lang.colon'), ['class' => 'col-lg-6 control-label']) !!} 30 |
31 | {!! CollectiveForm::select('priority_id', $priorities, null, ['class' => 'form-control', 'required' => 'required']) !!} 32 |
33 |
34 |
35 | {!! CollectiveForm::label('category', trans('ticketit::lang.category') . trans('ticketit::lang.colon'), ['class' => 'col-lg-6 control-label']) !!} 36 |
37 | {!! CollectiveForm::select('category_id', $categories, null, ['class' => 'form-control', 'required' => 'required']) !!} 38 |
39 |
40 | {!! CollectiveForm::hidden('agent_id', 'auto') !!} 41 |
42 |
43 |
44 |
45 | {!! link_to_route($setting->grab('main_route').'.index', trans('ticketit::lang.btn-back'), null, ['class' => 'btn btn-default']) !!} 46 | {!! CollectiveForm::submit(trans('ticketit::lang.btn-submit'), ['class' => 'btn btn-primary']) !!} 47 |
48 |
49 | {!! CollectiveForm::close() !!} 50 |
51 | @endsection 52 | 53 | @section('footer') 54 | @include('ticketit::tickets.partials.summernote') 55 | @append -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/index.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 |

{{ trans('ticketit::lang.index-my-tickets') }} 5 | {!! link_to_route($setting->grab('main_route').'.create', trans('ticketit::lang.btn-create-new-ticket'), null, ['class' => 'btn btn-primary pull-right']) !!} 6 |

7 |
8 | 9 |
10 |
11 | 12 | @include('ticketit::tickets.partials.datatable') 13 |
14 | 15 |
16 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/partials/comment_form.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | {!! CollectiveForm::open(['method' => 'POST', 'route' => $setting->grab('main_route').'-comment.store', 'class' => 'form-horizontal']) !!} 4 | 5 | 6 | {!! CollectiveForm::hidden('ticket_id', $ticket->id ) !!} 7 | 8 |
9 | {!! trans('ticketit::lang.reply') !!} 10 |
11 |
12 | {!! CollectiveForm::textarea('content', null, ['class' => 'form-control summernote-editor', 'rows' => "3"]) !!} 13 |
14 |
15 | 16 |
17 | {!! CollectiveForm::submit( trans('ticketit::lang.btn-submit'), ['class' => 'btn btn-primary']) !!} 18 |
19 | 20 |
21 | {!! CollectiveForm::close() !!} 22 |
23 |
24 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/partials/comments.blade.php: -------------------------------------------------------------------------------- 1 | @if(!$comments->isEmpty()) 2 | @foreach($comments as $comment) 3 |
4 |
5 |

6 | {!! $comment->user->name !!} 7 | {!! $comment->created_at->diffForHumans() !!} 8 |

9 |
10 |
11 |
12 |

{!! $comment->html !!}

13 |
14 |
15 |
16 | @endforeach 17 | @endif -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/partials/datatable.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @if( $u->isAgent() || $u->isAdmin() ) 10 | 11 | 12 | 13 | @endif 14 | 15 | 16 |
{{ trans('ticketit::lang.table-id') }}{{ trans('ticketit::lang.table-subject') }}{{ trans('ticketit::lang.table-status') }}{{ trans('ticketit::lang.table-last-updated') }}{{ trans('ticketit::lang.table-agent') }}{{ trans('ticketit::lang.table-priority') }}{{ trans('ticketit::lang.table-owner') }}{{ trans('ticketit::lang.table-category') }}
-------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/partials/modal-delete-confirm.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 19 | -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/partials/summernote.blade.php: -------------------------------------------------------------------------------- 1 | @if($editor_enabled) 2 | 3 | @if($codemirror_enabled) 4 | 5 | 6 | @endif 7 | 8 | 9 | @if($editor_locale) 10 | 11 | @endif 12 | 28 | @endif -------------------------------------------------------------------------------- /src/Views/bootstrap3/tickets/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | @section('page', trans('ticketit::lang.show-ticket-title') . trans('ticketit::lang.colon') . $ticket->subject) 3 | @section('content') 4 | @include('ticketit::shared.header') 5 | @include('ticketit::tickets.partials.ticket_body') 6 |
7 |

{{ trans('ticketit::lang.comments') }}

8 | @include('ticketit::tickets.partials.comments') 9 | {{-- pagination --}} 10 | {!! $comments->render() !!} 11 | @include('ticketit::tickets.partials.comment_form') 12 | @endsection 13 | 14 | @section('footer') 15 | 47 | @include('ticketit::tickets.partials.summernote') 48 | @append 49 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/administrator/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.administrator-create-title')) 3 | 4 | @section('ticketit_content') 5 | @if ($users->isEmpty()) 6 |

{{ trans('ticketit::admin.administrator-create-no-users') }}

7 | @else 8 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.administrator.store', 'method' => 'POST', 'class' => '']) !!} 9 |

{{ trans('ticketit::admin.administrator-create-select-user') }}

10 | 11 | 12 | @foreach($users as $user) 13 | 14 | 20 | 21 | @endforeach 22 | 23 |
15 |
16 | ticketit_admin ? "checked" : "" !!}> 17 | 18 |
19 |
24 | {!! link_to_route($setting->grab('admin_route').'.administrator.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-link']) !!} 25 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 26 | {!! CollectiveForm::close() !!} 27 | @endif 28 | {!! $users->render("pagination::bootstrap-4") !!} 29 | @stop 30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/administrator/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::admin.administrator-index-title')) 4 | 5 | @section('ticketit_header') 6 | {!! link_to_route( 7 | $setting->grab('admin_route').'.administrator.create', 8 | trans('ticketit::admin.btn-create-new-administrator'), null, 9 | ['class' => 'btn btn-primary']) 10 | !!} 11 | @stop 12 | 13 | @section('ticketit_content_parent_class', 'p-0') 14 | 15 | @section('ticketit_content') 16 | @if ($administrators->isEmpty()) 17 |

{{ trans('ticketit::admin.administrator-index-no-administrators') }} 18 | {!! link_to_route($setting->grab('admin_route').'.administrator.create', trans('ticketit::admin.administrator-index-create-new')) !!} 19 |

20 | @else 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | @foreach($administrators as $administrator) 32 | 33 | 36 | 39 | 51 | 52 | @endforeach 53 | 54 |
{{ trans('ticketit::admin.table-id') }}{{ trans('ticketit::admin.table-name') }}{{ trans('ticketit::admin.table-remove-administrator') }}
34 | {{ $administrator->id }} 35 | 37 | {{ $administrator->name }} 38 | 40 | {!! CollectiveForm::open([ 41 | 'method' => 'DELETE', 42 | 'route' => [ 43 | $setting->grab('admin_route').'.administrator.destroy', 44 | $administrator->id 45 | ], 46 | 'id' => "delete-$administrator->id" 47 | ]) !!} 48 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-remove'), ['class' => 'btn btn-danger']) !!} 49 | {!! CollectiveForm::close() !!} 50 |
55 | 56 | @endif 57 | 58 | @stop 59 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/agent/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.agent-create-title')) 3 | 4 | @section('ticketit_content') 5 | @if ($users->isEmpty()) 6 |

{{ trans('ticketit::admin.agent-create-no-users') }}

7 | @else 8 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.agent.store', 'method' => 'POST', 'class' => '']) !!} 9 |

{{ trans('ticketit::admin.agent-create-select-user') }}

10 | 11 | 12 | @foreach($users as $user) 13 | 14 | 20 | 21 | @endforeach 22 | 23 |
15 |
16 | ticketit_agent ? "checked" : "" !!}> 17 | 18 |
19 |
24 | {!! link_to_route($setting->grab('admin_route').'.agent.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-link']) !!} 25 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 26 | {!! CollectiveForm::close() !!} 27 | @endif 28 | 29 | {!! $users->render("pagination::bootstrap-4") !!} 30 | @stop 31 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/agent/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::admin.agent-index-title')) 4 | 5 | @section('ticketit_header') 6 | {!! link_to_route( 7 | $setting->grab('admin_route').'.agent.create', 8 | trans('ticketit::admin.btn-create-new-agent'), null, 9 | ['class' => 'btn btn-primary']) 10 | !!} 11 | @stop 12 | 13 | @section('ticketit_content_parent_class', 'p-0') 14 | 15 | @section('ticketit_content') 16 | @if ($agents->isEmpty()) 17 |

{{ trans('ticketit::admin.agent-index-no-agents') }} 18 | {!! link_to_route($setting->grab('admin_route').'.agent.create', trans('ticketit::admin.agent-index-create-new')) !!} 19 |

20 | @else 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | @foreach($agents as $agent) 34 | 35 | 38 | 41 | 48 | 67 | 79 | 80 | @endforeach 81 | 82 |
{{ trans('ticketit::admin.table-id') }}{{ trans('ticketit::admin.table-name') }}{{ trans('ticketit::admin.table-categories') }}{{ trans('ticketit::admin.table-join-category') }}{{ trans('ticketit::admin.table-remove-agent') }}
36 | {{ $agent->id }} 37 | 39 | {{ $agent->name }} 40 | 42 | @foreach($agent->categories as $category) 43 | 44 | {{ $category->name }} 45 | 46 | @endforeach 47 | 49 | {!! CollectiveForm::open([ 50 | 'method' => 'PATCH', 51 | 'route' => [ 52 | $setting->grab('admin_route').'.agent.update', 53 | $agent->id 54 | ], 55 | ]) !!} 56 | @foreach(\Kordy\Ticketit\Models\Category::all() as $agent_cat) 57 | agents()->where("id", $agent->id)->count() > 0) ? "checked" : "" !!} 62 | > {{ $agent_cat->name }} 63 | @endforeach 64 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-join'), ['class' => 'btn btn-info btn-sm']) !!} 65 | {!! CollectiveForm::close() !!} 66 | 68 | {!! CollectiveForm::open([ 69 | 'method' => 'DELETE', 70 | 'route' => [ 71 | $setting->grab('admin_route').'.agent.destroy', 72 | $agent->id 73 | ], 74 | 'id' => "delete-$agent->id" 75 | ]) !!} 76 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-remove'), ['class' => 'btn btn-danger']) !!} 77 | {!! CollectiveForm::close() !!} 78 |
83 | 84 | @endif 85 | @stop 86 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/category/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.category-create-title')) 3 | 4 | @section('ticketit_content') 5 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.category.store', 'method' => 'POST', 'class' => '']) !!} 6 | @include('ticketit::admin.category.form') 7 | {!! CollectiveForm::close() !!} 8 | @stop 9 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/category/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.category-edit-title', ['name' => ucwords($category->name)])) 3 | 4 | @section('ticketit_content') 5 | {!! CollectiveForm::model($category, [ 6 | 'route' => [$setting->grab('admin_route').'.category.update', $category->id], 7 | 'method' => 'PATCH', 8 | 'class' => '' 9 | ]) !!} 10 | @include('ticketit::admin.category.form', ['update', true]) 11 | {!! CollectiveForm::close() !!} 12 | @stop 13 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/category/form.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! CollectiveForm::label('name', trans('ticketit::admin.category-create-name') . trans('ticketit::admin.colon'), ['class' => '']) !!} 3 | {!! CollectiveForm::text('name', isset($category->name) ? $category->name : null, ['class' => 'form-control']) !!} 4 |
5 |
6 | {!! CollectiveForm::label('color', trans('ticketit::admin.category-create-color') . trans('ticketit::admin.colon'), ['class' => '']) !!} 7 | {!! CollectiveForm::custom('color', 'color', isset($category->color) ? $category->color : "#000000", ['class' => 'form-control']) !!} 8 |
9 | 10 | {!! link_to_route($setting->grab('admin_route').'.category.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-link']) !!} 11 | @if(isset($category)) 12 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-update'), ['class' => 'btn btn-primary']) !!} 13 | @else 14 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 15 | @endif 16 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/category/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::admin.category-index-title')) 4 | 5 | @section('ticketit_header') 6 | {!! link_to_route( 7 | $setting->grab('admin_route').'.category.create', 8 | trans('ticketit::admin.btn-create-new-category'), null, 9 | ['class' => 'btn btn-primary']) 10 | !!} 11 | @stop 12 | 13 | @section('ticketit_content_parent_class', 'p-0') 14 | 15 | @section('ticketit_content') 16 | @if ($categories->isEmpty()) 17 |

{{ trans('ticketit::admin.category-index-no-categories') }} 18 | {!! link_to_route($setting->grab('admin_route').'.category.create', trans('ticketit::admin.category-index-create-new')) !!} 19 |

20 | @else 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | @foreach($categories as $category) 32 | 33 | 36 | 39 | 64 | 65 | @endforeach 66 | 67 |
{{ trans('ticketit::admin.table-id') }}{{ trans('ticketit::admin.table-name') }}{{ trans('ticketit::admin.table-action') }}
34 | {{ $category->id }} 35 | 37 | {{ $category->name }} 38 | 40 | {!! link_to_route( 41 | $setting->grab('admin_route').'.category.edit', trans('ticketit::admin.btn-edit'), $category->id, 42 | ['class' => 'btn btn-info'] ) 43 | !!} 44 | 45 | {!! link_to_route( 46 | $setting->grab('admin_route').'.category.destroy', trans('ticketit::admin.btn-delete'), $category->id, 47 | [ 48 | 'class' => 'btn btn-danger deleteit', 49 | 'form' => "delete-$category->id", 50 | "node" => $category->name 51 | ]) 52 | !!} 53 | {!! CollectiveForm::open([ 54 | 'method' => 'DELETE', 55 | 'route' => [ 56 | $setting->grab('admin_route').'.category.destroy', 57 | $category->id 58 | ], 59 | 'id' => "delete-$category->id" 60 | ]) 61 | !!} 62 | {!! CollectiveForm::close() !!} 63 |
68 | @endif 69 | 70 | @stop 71 | @section('footer') 72 | 83 | @append 84 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/common/paginate.blade.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.config-create-subtitle')) 3 | 4 | @section('ticketit_header') 5 | {!! link_to_route( 6 | $setting->grab('admin_route').'.configuration.index', 7 | trans('ticketit::admin.btn-back'), null, 8 | ['class' => 'btn btn-secondary']) 9 | !!} 10 | @stop 11 | 12 | @section('ticketit_content') 13 | {!! CollectiveForm::open(['route' => $setting->grab('admin_route').'.configuration.store']) !!} 14 | 15 | 16 |
17 | {!! CollectiveForm::label('slug', trans('ticketit::admin.config-edit-slug') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} 18 |
19 | {!! CollectiveForm::text('slug', null, ['class' => 'form-control']) !!} 20 |
21 |
22 | 23 | 24 |
25 | {!! CollectiveForm::label('default', trans('ticketit::admin.config-edit-default') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} 26 |
27 | {!! CollectiveForm::text('default', null, ['class' => 'form-control']) !!} 28 |
29 |
30 | 31 | 32 |
33 | {!! CollectiveForm::label('value', trans('ticketit::admin.config-edit-value') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} 34 |
35 | {!! CollectiveForm::text('value', null, ['class' => 'form-control']) !!} 36 |
37 |
38 | 39 | 40 |
41 | {!! CollectiveForm::label('lang', trans('ticketit::admin.config-edit-language') . trans('ticketit::admin.colon'), ['class' => 'col-sm-3 col-form-label']) !!} 42 |
43 | {!! CollectiveForm::text('lang', null, ['class' => 'form-control']) !!} 44 | 45 |
46 |
47 | 48 | 49 |
50 |
51 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 52 |
53 |
54 | 55 | {!! CollectiveForm::close() !!} 56 | @stop 57 | 58 | @section('footer') 59 | 75 | @append -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::admin.config-index-title')) 4 | 5 | @section('ticketit_header') 6 | {!! link_to_route( 7 | $setting->grab('admin_route').'.configuration.create', 8 | trans('ticketit::admin.btn-create-new-config'), null, 9 | ['class' => 'btn btn-primary']) 10 | !!} 11 | @stop 12 | 13 | @section('ticketit_content_parent_class', 'pl-0 pr-0 pb-0') 14 | 15 | @section('ticketit_content') 16 | 17 | @if($configurations->isEmpty()) 18 |
{{ trans('ticketit::admin.config-index-no-settings') }}
19 | @else 20 | 28 | 29 |
30 |
31 | @include('ticketit::admin.configuration.tables.init_table') 32 |
33 |
34 | @include('ticketit::admin.configuration.tables.ticket_table') 35 |
36 |
37 | @include('ticketit::admin.configuration.tables.email_table') 38 |
39 |
40 | @include('ticketit::admin.configuration.tables.perms_table') 41 |
42 |
43 | @include('ticketit::admin.configuration.tables.editor_table') 44 |
45 |
46 | @include('ticketit::admin.configuration.tables.other_table') 47 |
48 |
49 | @endif 50 | 51 | @endsection 52 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/tables/editor_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['editor'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/tables/email_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['email'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/tables/init_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['init'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/tables/other_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['other'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/tables/perms_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['perms'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/configuration/tables/ticket_table.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | @foreach($configurations_by_sections['tickets'] as $configuration) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | @endforeach 27 | 28 |
{{ trans('ticketit::admin.table-hash') }}{{ trans('ticketit::admin.table-slug') }}{{ trans('ticketit::admin.table-default') }}{{ trans('ticketit::admin.table-value') }}{{ trans('ticketit::admin.table-lang') }}{{ trans('ticketit::admin.table-edit') }}
{!! $configuration->id !!}{!! $configuration->slug !!}{!! $configuration->default !!}{!! $configuration->value !!}{!! $configuration->lang !!} 20 | {!! link_to_route( 21 | $setting->grab('admin_route').'.configuration.edit', trans('ticketit::admin.btn-edit'), [$configuration->id], 22 | ['class' => 'btn btn-info', 'title' => trans('ticketit::admin.table-edit').' '.$configuration->slug, 'data-toggle' => 'tooltip'] ) 23 | !!} 24 |
29 |
30 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/priority/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.priority-create-title')) 3 | 4 | @section('ticketit_content') 5 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.priority.store', 'method' => 'POST', 'class' => '']) !!} 6 | @include('ticketit::admin.priority.form') 7 | {!! CollectiveForm::close() !!} 8 | @stop 9 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/priority/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.priority-edit-title', ['name' => ucwords($priority->name)])) 3 | 4 | @section('ticketit_content') 5 | {!! CollectiveForm::model($priority, [ 6 | 'route' => [$setting->grab('admin_route').'.priority.update', $priority->id], 7 | 'method' => 'PATCH' 8 | ]) !!} 9 | @include('ticketit::admin.priority.form', ['update', true]) 10 | {!! CollectiveForm::close() !!} 11 | @stop 12 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/priority/form.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! CollectiveForm::label('name', trans('ticketit::admin.priority-create-name') . trans('ticketit::admin.colon'), ['class' => '']) !!} 3 | {!! CollectiveForm::text('name', isset($priority->name) ? $priority->name : null, ['class' => 'form-control']) !!} 4 |
5 |
6 | {!! CollectiveForm::label('color', trans('ticketit::admin.priority-create-color') . trans('ticketit::admin.colon'), ['class' => '']) !!} 7 | 8 | {!! CollectiveForm::custom('color', 'color', isset($priority->color) ? $priority->color : "#000000", ['class' => 'form-control']) !!} 9 |
10 | 11 | {!! link_to_route($setting->grab('admin_route').'.priority.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-link']) !!} 12 | @if(isset($priority)) 13 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-update'), ['class' => 'btn btn-primary']) !!} 14 | @else 15 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 16 | @endif -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/priority/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::admin.priority-index-title')) 4 | 5 | @section('ticketit_header') 6 | {!! link_to_route( 7 | $setting->grab('admin_route').'.priority.create', 8 | trans('ticketit::admin.btn-create-new-priority'), null, 9 | ['class' => 'btn btn-primary']) 10 | !!} 11 | @stop 12 | 13 | @section('ticketit_content_parent_class', 'p-0') 14 | 15 | @section('ticketit_content') 16 | @if ($priorities->isEmpty()) 17 |

{{ trans('ticketit::admin.priority-index-no-priorities') }} 18 | {!! link_to_route($setting->grab('admin_route').'.priority.create', trans('ticketit::admin.priority-index-create-new')) !!} 19 |

20 | @else 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | @foreach($priorities as $priority) 32 | 33 | 36 | 39 | 64 | 65 | @endforeach 66 | 67 |
{{ trans('ticketit::admin.table-id') }}{{ trans('ticketit::admin.table-name') }}{{ trans('ticketit::admin.table-action') }}
34 | {{ $priority->id }} 35 | 37 | {{ $priority->name }} 38 | 40 | {!! link_to_route( 41 | $setting->grab('admin_route').'.priority.edit', trans('ticketit::admin.btn-edit'), $priority->id, 42 | ['class' => 'btn btn-info'] ) 43 | !!} 44 | 45 | {!! link_to_route( 46 | $setting->grab('admin_route').'.priority.destroy', trans('ticketit::admin.btn-delete'), $priority->id, 47 | [ 48 | 'class' => 'btn btn-danger deleteit', 49 | 'form' => "delete-$priority->id", 50 | "node" => $priority->name 51 | ]) 52 | !!} 53 | {!! CollectiveForm::open([ 54 | 'method' => 'DELETE', 55 | 'route' => [ 56 | $setting->grab('admin_route').'.priority.destroy', 57 | $priority->id 58 | ], 59 | 'id' => "delete-$priority->id" 60 | ]) 61 | !!} 62 | {!! CollectiveForm::close() !!} 63 |
68 | @endif 69 | 70 | @stop 71 | @section('footer') 72 | 83 | @append 84 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/status/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.status-create-title')) 3 | 4 | @section('ticketit_content') 5 | {!! CollectiveForm::open(['route'=> $setting->grab('admin_route').'.status.store', 'method' => 'POST', 'class' => '']) !!} 6 | @include('ticketit::admin.status.form') 7 | {!! CollectiveForm::close() !!} 8 | @stop 9 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/status/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::admin.status-edit-title', ['name' => ucwords($status->name)])) 3 | 4 | @section('ticketit_content') 5 | {!! CollectiveForm::model($status, [ 6 | 'route' => [$setting->grab('admin_route').'.status.update', $status->id], 7 | 'method' => 'PATCH' 8 | ]) !!} 9 | @include('ticketit::admin.status.form', ['update', true]) 10 | {!! CollectiveForm::close() !!} 11 | @stop 12 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/status/form.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {!! CollectiveForm::label('name', trans('ticketit::admin.status-create-name') . trans('ticketit::admin.colon'), ['class' => '']) !!} 3 | {!! CollectiveForm::text('name', isset($status->name) ? $status->name : null, ['class' => 'form-control']) !!} 4 |
5 |
6 | {!! CollectiveForm::label('color', trans('ticketit::admin.status-create-color') . trans('ticketit::admin.colon'), ['class' => '']) !!} 7 | {!! CollectiveForm::custom('color', 'color', isset($status->color) ? $status->color : "#000000", ['class' => 'form-control']) !!} 8 |
9 | 10 | {!! link_to_route($setting->grab('admin_route').'.status.index', trans('ticketit::admin.btn-back'), null, ['class' => 'btn btn-link']) !!} 11 | @if(isset($status)) 12 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-update'), ['class' => 'btn btn-primary']) !!} 13 | @else 14 | {!! CollectiveForm::submit(trans('ticketit::admin.btn-submit'), ['class' => 'btn btn-primary']) !!} 15 | @endif 16 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/admin/status/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::admin.status-index-title')) 4 | 5 | @section('ticketit_header') 6 | {!! link_to_route( 7 | $setting->grab('admin_route').'.status.create', 8 | trans('ticketit::admin.btn-create-new-status'), null, 9 | ['class' => 'btn btn-primary']) 10 | !!} 11 | @stop 12 | 13 | @section('ticketit_content_parent_class', 'p-0') 14 | 15 | @section('ticketit_content') 16 | @if ($statuses->isEmpty()) 17 |

{{ trans('ticketit::admin.status-index-no-statuses') }} 18 | {!! link_to_route($setting->grab('admin_route').'.status.create', trans('ticketit::admin.status-index-create-new')) !!} 19 |

20 | @else 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | @foreach($statuses as $status) 32 | 33 | 36 | 39 | 64 | 65 | @endforeach 66 | 67 |
{{ trans('ticketit::admin.table-id') }}{{ trans('ticketit::admin.table-name') }}{{ trans('ticketit::admin.table-action') }}
34 | {{ $status->id }} 35 | 37 | {{ $status->name }} 38 | 40 | {!! link_to_route( 41 | $setting->grab('admin_route').'.status.edit', trans('ticketit::admin.btn-edit'), $status->id, 42 | ['class' => 'btn btn-info'] ) 43 | !!} 44 | 45 | {!! link_to_route( 46 | $setting->grab('admin_route').'.status.destroy', trans('ticketit::admin.btn-delete'), $status->id, 47 | [ 48 | 'class' => 'btn btn-danger deleteit', 49 | 'form' => "delete-$status->id", 50 | "node" => $status->name 51 | ]) 52 | !!} 53 | {!! CollectiveForm::open([ 54 | 'method' => 'DELETE', 55 | 'route' => [ 56 | $setting->grab('admin_route').'.status.destroy', 57 | $status->id 58 | ], 59 | 'id' => "delete-$status->id" 60 | ]) 61 | !!} 62 | {!! CollectiveForm::close() !!} 63 |
68 | @endif 69 | 70 | @stop 71 | 72 | @section('footer') 73 | 84 | @append 85 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/emails/assigned.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @extends($email) 5 | 6 | @section('subject') 7 | {{ trans('ticketit::email/globals.assigned') }} 8 | @stop 9 | 10 | @section('link') 11 | 12 | {{ trans('ticketit::email/globals.view-ticket') }} 13 | 14 | @stop 15 | 16 | @section('content') 17 | {!! trans('ticketit::email/assigned.data', [ 18 | 'name' => $notification_owner->name, 19 | 'subject' => $ticket->subject, 20 | 'status' => $ticket->status->name, 21 | 'category' => $ticket->category->name 22 | ]) !!} 23 | @stop 24 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/emails/comment.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @extends($email) 5 | 6 | @section('subject') 7 | {{ trans('ticketit::email/globals.comment') }} 8 | @stop 9 | 10 | @section('link') 11 | 12 | {{ trans('ticketit::email/globals.view-ticket') }} 13 | 14 | @stop 15 | 16 | @section('content') 17 | {!! trans('ticketit::email/comment.data', [ 18 | 'name' => $comment->user->name, 19 | 'subject' => $ticket->subject, 20 | 'status' => $ticket->status->name, 21 | 'category' => $ticket->category->name, 22 | 'comment' => $comment->getShortContent() 23 | ]) !!} 24 | @stop 25 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/emails/status.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @extends($email) 6 | 7 | @section('subject') 8 | {{ trans('ticketit::email/globals.status') }} 9 | @stop 10 | 11 | @section('link') 12 | 13 | {{ trans('ticketit::email/globals.view-ticket') }} 14 | 15 | @stop 16 | 17 | @section('content') 18 | {!! trans('ticketit::email/status.data', [ 19 | 'name' => $notification_owner->name, 20 | 'subject' => $ticket->subject, 21 | 'old_status' => $original_ticket->status->name, 22 | 'new_status' => $ticket->status->name 23 | ]) !!} 24 | @stop 25 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/emails/transfer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @extends($email) 6 | 7 | @section('subject') 8 | {{ trans('ticketit::email/globals.transfer') }} 9 | @stop 10 | 11 | @section('link') 12 | 13 | {{ trans('ticketit::email/globals.view-ticket') }} 14 | 15 | @stop 16 | 17 | @section('content') 18 | {!! trans('ticketit::email/transfer.data', [ 19 | 'name' => $notification_owner->name, 20 | 'subject' => $ticket->subject, 21 | 'status' => $ticket->status->name, 22 | 'agent' => $original_ticket->agent->name, 23 | 'old_category' => $original_ticket->category->name, 24 | 'new_category' => $ticket->category->name 25 | ]) !!} 26 | @stop 27 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | 3 | @section('page', trans('ticketit::lang.index-title')) 4 | @section('page_title', trans('ticketit::lang.index-my-tickets')) 5 | 6 | 7 | @section('ticketit_header') 8 | {!! link_to_route($setting->grab('main_route').'.create', trans('ticketit::lang.btn-create-new-ticket'), null, ['class' => 'btn btn-primary']) !!} 9 | @stop 10 | 11 | @section('ticketit_content_parent_class', 'pl-0 pr-0') 12 | 13 | @section('ticketit_content') 14 |
15 | @include('ticketit::tickets.partials.datatable') 16 | @stop 17 | 18 | @section('footer') 19 | 20 | 66 | @append 67 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/install/upgrade.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Ticketit Upgrade 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | 23 | 24 | 25 | 26 |
27 |

{{ trans('ticketit::install.upgrade') }}

28 |
29 |
30 | @if(!empty($inactive_migrations)) 31 | {{ trans('ticketit::install.migrations-to-be-installed') }} 32 | 37 | @else 38 | {{ trans('ticketit::install.all-tables-migrated') }} 39 | @endif 40 |
41 |
42 |
43 | @if(!empty($inactive_settings)) 44 | {{ trans('ticketit::install.settings-to-be-installed') }} 45 | 50 | @else 51 | {{ trans('ticketit::install.all-settings-installed') }} 52 | @endif 53 |
54 |
55 | 56 | {{ trans('ticketit::install.proceed') }} 57 | 58 | 59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/layouts/master.blade.php: -------------------------------------------------------------------------------- 1 | @extends($master) 2 | 3 | @section('content') 4 | @include('ticketit::shared.header') 5 | 6 |
7 |
8 |
9 | @include('ticketit::shared.nav') 10 |
11 |
12 | @if(View::hasSection('ticketit_content')) 13 |
14 |
15 | @if(View::hasSection('page_title')) 16 | @yield('page_title') 17 | @else 18 | @yield('page') 19 | @endif 20 | 21 | @yield('ticketit_header') 22 |
23 |
24 | @yield('ticketit_content') 25 |
26 |
27 | @endif 28 | @yield('ticketit_extra_content') 29 |
30 | @stop 31 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/shared/assets.blade.php: -------------------------------------------------------------------------------- 1 | {{-- Load the css file to the header --}} 2 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/shared/errors.blade.php: -------------------------------------------------------------------------------- 1 | @if($errors->first() != '') 2 |
3 |
4 | 5 | 10 |
11 |
12 | @endif 13 | @if(Session::has('warning')) 14 |
15 |
16 | 17 | {{ session('warning') }} 18 |
19 |
20 | @endif 21 | @if(Session::has('status')) 22 |
23 |
24 | 25 | {{ session('status') }} 26 |
27 |
28 | @endif 29 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/shared/header.blade.php: -------------------------------------------------------------------------------- 1 | @include('ticketit::shared.assets') 2 | @include('ticketit::shared.errors') -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('ticketit::layouts.master') 2 | @section('page', trans('ticketit::lang.create-ticket-title')) 3 | @section('page_title', trans('ticketit::lang.create-new-ticket')) 4 | 5 | @section('ticketit_content') 6 | {!! CollectiveForm::open([ 7 | 'route'=>$setting->grab('main_route').'.store', 8 | 'method' => 'POST' 9 | ]) !!} 10 |
11 | {!! CollectiveForm::label('subject', trans('ticketit::lang.subject') . trans('ticketit::lang.colon'), ['class' => 'col-lg-2 col-form-label']) !!} 12 |
13 | {!! CollectiveForm::text('subject', null, ['class' => 'form-control', 'required' => 'required']) !!} 14 | {!! trans('ticketit::lang.create-ticket-brief-issue') !!} 15 |
16 |
17 |
18 | {!! CollectiveForm::label('content', trans('ticketit::lang.description') . trans('ticketit::lang.colon'), ['class' => 'col-lg-2 col-form-label']) !!} 19 |
20 | {!! CollectiveForm::textarea('content', null, ['class' => 'form-control summernote-editor', 'rows' => '5', 'required' => 'required']) !!} 21 | {!! trans('ticketit::lang.create-ticket-describe-issue') !!} 22 |
23 |
24 |
25 |
26 | {!! CollectiveForm::label('priority', trans('ticketit::lang.priority') . trans('ticketit::lang.colon'), ['class' => 'col-lg-6 col-form-label']) !!} 27 |
28 | {!! CollectiveForm::select('priority_id', $priorities, null, ['class' => 'form-control', 'required' => 'required']) !!} 29 |
30 |
31 |
32 | {!! CollectiveForm::label('category', trans('ticketit::lang.category') . trans('ticketit::lang.colon'), ['class' => 'col-lg-6 col-form-label']) !!} 33 |
34 | {!! CollectiveForm::select('category_id', $categories, null, ['class' => 'form-control', 'required' => 'required']) !!} 35 |
36 |
37 | {!! CollectiveForm::hidden('agent_id', 'auto') !!} 38 |
39 |
40 |
41 |
42 | {!! link_to_route($setting->grab('main_route').'.index', trans('ticketit::lang.btn-back'), null, ['class' => 'btn btn-link']) !!} 43 | {!! CollectiveForm::submit(trans('ticketit::lang.btn-submit'), ['class' => 'btn btn-primary']) !!} 44 |
45 |
46 | {!! CollectiveForm::close() !!} 47 | @endsection 48 | 49 | @section('footer') 50 | @include('ticketit::tickets.partials.summernote') 51 | @append -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/edit.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/index.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thekordy/ticketit/ef458dfbab78029ac9ef798e089b43a87b7a15a9/src/Views/bootstrap4/tickets/index.blade.php -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/partials/comment_form.blade.php: -------------------------------------------------------------------------------- 1 | {!! CollectiveForm::open(['method' => 'POST', 'route' => $setting->grab('main_route').'-comment.store', 'class' => '']) !!} 2 | 3 | 4 | {!! CollectiveForm::hidden('ticket_id', $ticket->id ) !!} 5 | 6 | 7 | {!! CollectiveForm::textarea('content', null, ['class' => 'form-control summernote-editor', 'rows' => "3"]) !!} 8 | 9 | {!! CollectiveForm::submit( trans('ticketit::lang.reply'), ['class' => 'btn btn-outline-primary pull-right mt-3 mb-3']) !!} 10 | 11 | {!! CollectiveForm::close() !!} 12 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/partials/comments.blade.php: -------------------------------------------------------------------------------- 1 | @if(!$comments->isEmpty()) 2 | @foreach($comments as $comment) 3 |
4 |
5 |
{!! $comment->user->name !!}
6 |
{!! $comment->created_at->diffForHumans() !!}
7 |
8 |
9 | {!! $comment->html !!} 10 |
11 |
12 | @endforeach 13 | @endif -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/partials/datatable.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @if( $u->isAgent() || $u->isAdmin() ) 10 | 11 | 12 | 13 | @endif 14 | 15 | 16 |
{{ trans('ticketit::lang.table-id') }}{{ trans('ticketit::lang.table-subject') }}{{ trans('ticketit::lang.table-status') }}{{ trans('ticketit::lang.table-last-updated') }}{{ trans('ticketit::lang.table-agent') }}{{ trans('ticketit::lang.table-priority') }}{{ trans('ticketit::lang.table-owner') }}{{ trans('ticketit::lang.table-category') }}
-------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/partials/modal-delete-confirm.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 19 | -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/partials/summernote.blade.php: -------------------------------------------------------------------------------- 1 | @if($editor_enabled) 2 | 3 | @if($codemirror_enabled) 4 | 5 | 6 | @endif 7 | 8 | 9 | @if($editor_locale) 10 | 11 | @endif 12 | 28 | @endif -------------------------------------------------------------------------------- /src/Views/bootstrap4/tickets/partials/ticket_body.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

{{ trans('ticketit::lang.owner') }}{{ trans('ticketit::lang.colon') }}{{ $ticket->user_id == $u->id ? $u->name : $ticket->user->name }}

5 |

6 | {{ trans('ticketit::lang.status') }}{{ trans('ticketit::lang.colon') }} 7 | @if( $ticket->isComplete() && ! $setting->grab('default_close_status_id') ) 8 | Complete 9 | @else 10 | {{ $ticket->status->name }} 11 | @endif 12 | 13 |

14 |

15 | {{ trans('ticketit::lang.priority') }}{{ trans('ticketit::lang.colon') }} 16 | 17 | {{ $ticket->priority->name }} 18 | 19 |

20 |
21 |
22 |

{{ trans('ticketit::lang.responsible') }}{{ trans('ticketit::lang.colon') }}{{ $ticket->agent_id == $u->id ? $u->name : $ticket->agent->name }}

23 |

24 | {{ trans('ticketit::lang.category') }}{{ trans('ticketit::lang.colon') }} 25 | 26 | {{ $ticket->category->name }} 27 | 28 |

29 |

{{ trans('ticketit::lang.created') }}{{ trans('ticketit::lang.colon') }}{{ $ticket->created_at->diffForHumans() }}

30 |

{{ trans('ticketit::lang.last-update') }}{{ trans('ticketit::lang.colon') }}{{ $ticket->updated_at->diffForHumans() }}

31 |
32 |
33 |
34 | 35 | {!! $ticket->html !!} 36 | 37 | {!! CollectiveForm::open([ 38 | 'method' => 'DELETE', 39 | 'route' => [ 40 | $setting->grab('main_route').'.destroy', 41 | $ticket->id 42 | ], 43 | 'id' => "delete-ticket-$ticket->id" 44 | ]) 45 | !!} 46 | {!! CollectiveForm::close() !!} 47 | 48 | 49 | @if($u->isAgent() || $u->isAdmin()) 50 | @include('ticketit::tickets.edit') 51 | @endif 52 | 53 | {{-- // OR; Modal Window: 2/2 --}} 54 | @if($u->isAdmin()) 55 | @include('ticketit::tickets.partials.modal-delete-confirm') 56 | @endif 57 | {{-- // END Modal Window: 2/2 --}} 58 | --------------------------------------------------------------------------------