<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="widget" id="widget-<?php echo create_widget_id(); ?>" data-name="<?php echo _l('home_tickets_report'); ?>">
<?php if (is_admin()) { ?>
<div class="row" id="tickets_report">
<div class="col-md-12">
<div class="panel_s">
<div class="panel-body padding-10">
<div class="widget-dragger"></div>
<div class="tw-flex tw-justify-between tw-items-center tw-p-1.5">
<p class="tw-font-semibold tw-flex tw-items-center tw-mb-0 tw-space-x-1.5 rtl:tw-space-x-reverse">
<i class="fa-regular fa-life-ring fa-lg tw-text-neutral-500"></i>
<span class="tw-text-neutral-700">
<?php echo _l('home_tickets_report'); ?>
</span>
</p>
<div>
<div class="dropdown">
<a href="#" id="tickets-report-mode" class="dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<span id="tickets-report-mode-name"> <?php echo _l('this_month') ?> </span>
<i class="fa fa-caret-down" aria-hidden="true"></i>
</a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="tickets-report-mode">
<li>
<a href="#" data-type="this_week"
onclick="update_tickets_report_table(this); return false;"><?php echo _l('this_week') ?></a>
</li>
<li>
<a href="#" data-type="last_week"
onclick="update_tickets_report_table(this); return false;"><?php echo _l('last_week') ?></a>
</li>
<li>
<a href="#" data-type="this_month"
onclick="update_tickets_report_table(this); return false;"><?php echo _l('this_month') ?></a>
</li>
<li>
<a href="#" data-type="last_month"
onclick="update_tickets_report_table(this); return false;"><?php echo _l('last_month') ?></a>
</li>
<li>
<a href="#" data-type="this_year"
onclick="update_tickets_report_table(this); return false;"><?php echo _l('this_year') ?></a>
</li>
<li>
<a href="#" data-type="last_year"
onclick="update_tickets_report_table(this); return false;"><?php echo _l('last_year') ?></a>
</li>
</ul>
</div>
<div class="_filters _hidden_inputs">
<?php echo form_hidden('display_mode', 'this_month') ?>
</div>
</div>
</div>
<hr class="-tw-mx-3 tw-mt-2 tw-mb-4">
<div id="tickets-report-table-wrapper" class="tw-p-2">
<?php $this->load->view('admin/dashboard/widgets/tickets_report_table'); ?>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>