/*
 * BusyRack development team.
 * LICENSE: This source file is subject to BusyRack Development license
 * that is available through the world-wide-web at the following URI:
 * http://www.busyrack.com/license.txt  If you did not receive a copy of
 * the License and are unable to obtain it through the web, please send
 * a note to license@busyrack.com so we can mail you a copy immediately.
 */

Enhanced Support System brings you a better support experience with clearer
department layout and ticket counts for each ticket status in every department

1. Features
  - Better department tree layout on the left sidebar
  - Support WHMCS v5
  - Easy to install

2. Requirements
  - PHP 5.1 or later
  - WHMCS v5 or later

3. Installation
  - Unpack the module and place it into WHMCS addons directory. The directory
    should look like this: modules/addons/br_enhanced_support
  - Edit your template file <WHMCS-Admin>/templates/<your-template>/sidebar.tpl
    to look like this:
    
{elseif $sidebar eq "support"}

<span class="header"><img src="images/icons/support.png" alt="Support Center" width="16" height="16" class="absmiddle" /> {$_ADMINLANG.support.title}</span>
<ul class="menu">
    <li><a href="supportannouncements.php">{$_ADMINLANG.support.announcements}</a></li>
    <li><a href="supportdownloads.php">{$_ADMINLANG.support.downloads}</a></li>
    <li><a href="supportkb.php">{$_ADMINLANG.support.knowledgebase}</a></li>
    <li><a href="supporttickets.php?action=open">{$_ADMINLANG.support.opennewticket}</a></li>
    <li><a href="supportticketpredefinedreplies.php">{$_ADMINLANG.support.predefreplies}</a></li>
</ul>

<!-- BEGIN: Added by BusyRack.com -->
<span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets"
width="16" height="16" class="absmiddle" /> Support Tickets</span>
<ul class="menu">
    <li><a href="?view=flagged">My Tickets ({$ticketsflagged})</a></li>
    <li><a href="?">Awaiting Tickets ({$ticketsawaitingreply})</a></li>
    <li><a href="?view=active">Active Tickets ({$ticketsallactive})</a></li>
{foreach from=$ticketdepts item=dept}
    <li><a href="?deptid={$dept.id}&view=any">{$dept.name}</a></li>
    {foreach from=$ticketstatuses item=status}
        <li>&nbsp;-&nbsp;<a href="?deptid={$dept.id}&view={$status.title}">
        {$status.title} ({$bz_ticketcounts[$dept.id][$status.title]})</a></li>
    {/foreach}
{/foreach}
</ul>
<!-- END: Added by BusyRack.com -->

<span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> {$_ADMINLANG.support.filtertickets}</span>

  - Activate the addon in Setup >> Addon Modules
  - Benefit
