PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / trunk
Fluent Support – Helpdesk & Customer Support Ticket System vtrunk
2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 68 releases
fluent-support / app / Services / Tickets / TicketStats.php

TicketStats.php in Fluent Support – Helpdesk & Customer Support Ticket System trunk, at app/Services/Tickets/TicketStats.php

57 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentSupport\App\Services\Tickets;
4
5 use FluentSupport\App\Modules\StatModule;
6 use FluentSupport\App\Services\TicketHelper;
7
8 class TicketStats
9 {
10 public function getQuickLinks()
11 {
12 $urlBase = apply_filters(
13 'fst_menu_url_base',
14 admin_url('admin.php?page=fluent-support#/')
15 );
16
17 return apply_filters('fst_quick_links', [
18 [
19 'title' => __('Total Tickets', 'fluent-support'),
20 'url' => esc_url_raw( $urlBase . 'tickets' ),
21 'number'=> TicketHelper::countAllTickets(),
22 'icon' => 'el-icon-user'
23 ],
24 [
25 'title' => __('Active Tickets', 'fluent-support'),
26 'url' => esc_url_raw( $urlBase . 'tickets?filter_type=simple&status_type=active' ),
27 'number'=> TicketHelper::countActiveTickets(),
28 'icon' => 'el-icon-message'
29 ],
30 [
31 'title' => __('New Tickets', 'fluent-support'),
32 'url' => esc_url_raw( $urlBase . 'tickets?filter_type=simple&status_type=new' ),
33 'number'=> TicketHelper::countNewTickets(),
34 'icon' => 'el-icon-folder'
35 ],
36 [
37 'title' => __('Un-Assigned Tickets', 'fluent-support'),
38 'url' => esc_url_raw( $urlBase . 'tickets?agent_id=unassigned' ),
39 'number'=> TicketHelper::countUnassignedTickets(),
40 'icon' => 'el-icon-folder'
41 ],
42 [
43 'title' => __('Closed Tickets', 'fluent-support'),
44 'url' => esc_url_raw( $urlBase . 'tickets?filter_type=simple&status_type=closed' ),
45 'number'=> TicketHelper::countClosedTickets(),
46 'icon' => 'el-icon-message'
47 ],
48 [
49 'title' => __('Awaiting Replies', 'fluent-support'),
50 'url' => esc_url_raw( $urlBase . 'tickets?status_type=open&waiting_for_reply=yes' ),
51 'number'=> StatModule::countAwaitingTickets(),
52 'icon' => 'el-icon-message'
53 ]
54 ]);
55 }
56 }
57