# fluent-support/2.4.5/app/Services/Tickets/TicketStats.php

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version 2.4.5. 59 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/2.4.5/code/app/Services/Tickets/TicketStats.php
- Raw: https://pluginprobe.com/plugins/fluent-support/2.4.5/raw/app/Services/Tickets/TicketStats.php
- Modified: 2026-10-09T15:31:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-support/2.4.5/code/app/Services/Tickets/TicketStats.php#L10-L20`.

```php
<?php

namespace FluentSupport\App\Services\Tickets;

use FluentSupport\App\Modules\StatModule;
use FluentSupport\App\Services\TicketHelper;

class TicketStats
{
    public function getQuickLinks()
    {
        $urlBase = apply_filters(
            'fst_menu_url_base',
            admin_url('admin.php?page=fluent-support#/')
        );

        $counts = TicketHelper::getStatusCounts();

        return apply_filters('fst_quick_links', [
            [
                'title' => __('Total Tickets', 'fluent-support'),
                'url'   => esc_url_raw( $urlBase . 'tickets' ),
                'number'=> $counts['total'],
                'icon'  => 'el-icon-user'
            ],
            [
                'title' => __('Active Tickets', 'fluent-support'),
                'url'   => esc_url_raw( $urlBase . 'tickets?filter_type=simple&status_type=active' ),
                'number'=> $counts['active'],
                'icon'  => 'el-icon-message'
            ],
            [
                'title' => __('New Tickets', 'fluent-support'),
                'url'   => esc_url_raw( $urlBase . 'tickets?filter_type=simple&status_type=new' ),
                'number'=> $counts['new'],
                'icon'  => 'el-icon-folder'
            ],
            [
                'title' => __('Un-Assigned Tickets', 'fluent-support'),
                'url'   => esc_url_raw( $urlBase . 'tickets?agent_id=unassigned' ),
                'number'=> $counts['unassigned'],
                'icon'  => 'el-icon-folder'
            ],
            [
                'title' => __('Closed Tickets', 'fluent-support'),
                'url'   => esc_url_raw( $urlBase . 'tickets?filter_type=simple&status_type=closed' ),
                'number'=> $counts['closed'],
                'icon'  => 'el-icon-message'
            ],
            [
                'title' => __('Awaiting Replies', 'fluent-support'),
                'url'   => esc_url_raw( $urlBase . 'tickets?status_type=open&waiting_for_reply=yes' ),
                'number'=> StatModule::countAwaitingTickets(),
                'icon'  => 'el-icon-message'
            ]
        ]);
    }
}

```
