<?php $__env->startSection('content'); ?>
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-users"></i> Clients</h1>
</div>

<section class="content">
<div class="row">
    <div class="col-md-12">
        <!--    Hover Rows  -->
        <a href="<?php echo e(route('clients.create')); ?>" class="btn btn-primary btn-sm pull-right" data-toggle="ajax-modal"> <i class="fa fa-user-plus"></i> New Client</a> <br/><br/>
        <?php if(Session::has('flash_notification.message')): ?>
        <?php echo message(); ?>

        <?php endif; ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                Clients
            </div>
            <div class="panel-body">
                <table class="table table-hover table-bordered table-striped datatable">
                    <thead>
                    <tr>
                        <th></th>
                        <th>Reference </th>
                        <th>Name </th>
                        <th>Email </th>
                        <th>Phone </th>
                        <th>Country </th>
                        <th>Action </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($clients as $client): ?>
                    <tr>
                        <td></td>
                        <td><?php echo e($client->client_no); ?></td>
                        <td><?php echo e($client->name); ?> </td>
                        <td><?php echo e($client->email); ?> </td>
                        <td><?php echo e($client->phone); ?> </td>
                        <td><?php echo e($client->country); ?> </td>
                        <td>
                            <?php echo show_btn('clients.show', $client->id); ?>

                            <?php echo edit_btn('clients.edit', $client->id); ?>

                            <?php echo delete_btn('clients.destroy', $client->id); ?>

                        </td>
                    </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- End  Hover Rows  -->
    </div>
</div>
</section>
<?php $__env->stopSection(); ?>

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