<?php $__env->startSection('title'); ?>
    Management Dashboard
<?php $__env->stopSection(); ?>

<?php $__env->startSection('styles'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

<?php echo $__env->make('partials.dashboard-menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<h1>Management Dashboard</h1>

<div class="row">
<p style="text-align:center;">To search by user name, company or product name then press enter</p>
    <form action="/dashboard-search" method="GET" style="margin-bottom: -1rem !important;">
        <input class="adminSearch" style="width:50%;font-family: 'Lato', sans-serif;margin-left: auto;margin-right: auto;display: block;border-radius: 13px;" placeholder="Search..." type="text" value="" name="search" id="search">
    </form>
</div>

<div class="comapanyTable">
    <table>
        <thead>
            <tr>
                <th width="10%">User Name</th>
                <th width="10%">Company</th>
                <th width="10%">Product</th>
                <th width="10%">Created At</th>
                <th width="10%">Status</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($transactions as $transaction): ?>
                <tr>
                    <td><?php echo $transaction->user; ?></td>
                    <td><?php echo $transaction->company; ?></td>
                    <td><?php echo $transaction->product; ?></td>
                    <td><?php echo $transaction->created_at; ?></td>
                    <td>Complete</td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>






<?php echo $__env->make('partials.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>