<?php $__env->startSection('title', 'All Clients | ' . Options::get('title') ); ?>

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

                <div class="content">
                    <div class="row content-body">
                        

                        <!--  CLIENT BOX -->
                        <div class="ticket-box-row-first">
                            <div class="col-md-12  ticket-big-box-col">
                                <div class="staffs-p">
                                    <div class="box-title">
                                        <div class="title-text pull-left">
                                            <h3>Clients</h3>
                                        </div>
                                        
                                    </div>
                                    <div class="table-responsive">
                                        <table class="table table-hover responsive-table">
                                            <thead>
                                                <tr>
                                                    <th>Name</th>
                                                    <th>Email</th>
                                                    <th class="text-center">Client Image</th>
                                                    <th>Registered at</th>
                                                    <th class=" text-center">Action</th>
                                                </tr>
                                            </thead>

                                            <?php if( count($clients) ): ?>

                                            	<?php foreach($clients as $client): ?>

		                                            <tr class="client_row">
		                                                <td><?php echo e($client->fullName()); ?></td>
		                                                <td><a href="mailto:<?php echo e($client->email); ?>"><?php echo e($client->email); ?></a></td>
		                                                <td class="text-center tbl-img">
		                                                    <img src="<?php echo e($client->profileImg(50)); ?>" alt="">
		                                                </td>
		                                                <td class=""><?php echo e($client->created_at->diffForHumans()); ?></td>
		                                                <td class="text-center tbl-btn">
                                                            <button class="client_remove remove-btn" type="submit" value="<?php echo e($client->id); ?>"><i class="fa fa-times"></i></button>
		                                                </td>
		                                            </tr>

	                                            <?php endforeach; ?>

                                            <?php else: ?>
                                            	<tr>
                                            		<td colspan="6" align="center"> No clients to show. </td>
                                            	</tr>
                                            <?php endif; ?>

                                        </table>                              
                                    </div>

                                </div>

                                <!-- Pagination -->
                                <?php echo e($clients->render()); ?>

                            </div>
                        </div>

                    </div>
                </div>

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

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