<div class="row">
    <div class="col-lg-12 text-center">
        <h3 class="mt-5"><?= $viewBag['heading'] ?></h3>
    </div>
</div>
<div class="row">
    <form class="form-inline" action="" method="GET">
        <div class="form-group">
            <input type="text" name="search" id="search" />
            <input type="submit" value="Search">
        </div>
    </form>
</div>


<table class="table table-striped">
    <thead>
        <tr>

            <th>Reference Number</th>
            <th>Customer name</th>
            <th>Date of Purchase</th>
            <th>Physical CONDITION</th>
            <th>Date of Diagnosed</th>
        </tr>
    </thead>
    <?php foreach ($model as $item) : ?>
        <tr>

            <td><?= $item['ref_no'] ?></td>
            <td><?= $item['customer_name'] ?></td>
            <td><?= $item['date_purchase'] ?></td>
            <td><?= $item['phys_condition'] ?></td>
            <td><?= $item['date_diagnosed'] ?></td>
        </tr>
    <?php endforeach; ?>

    <div class="pagination"><?php Data::get_records_prev(10); ?> </div>