<?php $__env->startSection('title'); ?>
    User Transactions
<?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> <strong><?php echo $user->name; ?></strong> from <?php echo $user->companyName; ?></h1>
<a class="myButton" style="width:5% ;text-align: center;" href="/view-users/<?php echo $user->companyName; ?>"><i class="fa fa-chevron-left" aria-hidden="true"></i> Back</a>
<?php if($transactions!==NULL): ?>
    <div class="transactionTable">
            <table>
                <thead>
                    <tr>
                        <th width="50%">Report</th>
                        <th width="50%">Created At</th></tr>
                </thead>
                <tbody>
                    <?php foreach($transactions as $transaction): ?>
                        <tr>
                            <td><?php echo $transaction->product; ?></td>
                            <td><?php echo $transaction->created_at; ?></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <div class="row">
                <div class="large-12 columns">
                    <div class="pagination"> <?php echo $transactions->links(); ?> </div>
                </div>
            </div>
    </div>
<?php else: ?>
<h2>No transactions found</h2>
<?php endif; ?>
<hr>
<?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(); ?>