<?php
include_once "global.php";

$pageTitle = "Search History - ";
include_once 'header.php';
$SearchtotalRecords = $crm->getsearchTotalRecords();
?>

<!--breadcrumb-->
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
    <div class="breadcrumb-title pe-3">Search History</div>
    <div class="ps-3">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb mb-0 p-0">
                <li class="breadcrumb-item"><a href="javascript:;"></a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">Search History</li>
            </ol>
        </nav>
    </div>
</div>
<!--end breadcrumb-->
<h6 class="mb-0 text-uppercase">View Search History</h6>
<hr>
<!-- TOP STATS -->
<div class="row  g-3 mb-3">
    <div class="col-12 col-md-6 col-xl-3">
  <div class="card ui-card">
    <div class="card-body">
      <div class="stat-label">Total Searches</div>
      <p class="stat-value"><?php echo $SearchtotalRecords; ?></p>
    </div>
  </div>
</div>
</div>

<div class="card">
    <div class="card-body p-4">
        <div class="table-responsive">
            <?php $crm->searchHistoryView(); ?>
        </div>
    </div>
</div>
<?php
include_once 'footer.php';
?>