<?php $__env->startSection('content'); ?>
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-users"></i> <?php echo e(trans('application.clients')); ?></h1>
</div>
<section class="content">
<div class="row">
    <div class="col-md-12">
        <div class="box box-primary">
            <?php if(hasPermission('add_client')): ?>
                <div class="box-header with-border">
                    <h3 class="box-title pull-right">
                    <div class="box-tools">
                            <a href="<?php echo e(route('clients.create')); ?>" class="btn btn-primary btn-sm" data-toggle="ajax-modal"> <i class="fa fa-user-plus"></i> <?php echo e(trans('application.new_client')); ?></a>
                    </div>
                    </h3>
                </div>
            <?php endif; ?>
            <div class="box-body">
                <table class="table table-hover table-bordered table-striped datatable">
                    <thead>
                    <tr>
                        <th></th>
                        <th><?php echo e(trans('application.reference')); ?></th>
                        <th><?php echo e(trans('application.name')); ?></th>
                        <th><?php echo e(trans('application.email')); ?></th>
                        <th><?php echo e(trans('application.phone')); ?></th>
                        <th><?php echo e(trans('application.country')); ?></th>
                        <th><?php echo e(trans('application.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->uuid); ?>
                            <?php if(hasPermission('edit_client')): ?> <?php echo edit_btn('clients.edit', $client->uuid); ?> <?php endif; ?>
                            <?php if(hasPermission('delete_client')): ?> <?php echo delete_btn('clients.destroy', $client->uuid); ?> <?php endif; ?>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</section>
<?php $__env->stopSection(); ?>


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