

<?php $__env->startSection('title', getSetting('APPLICATION_NAME') . ' | ' . $page); ?>

<?php $__env->startSection('profile-content'); ?>
    <?php echo $__env->make('include.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="card">
        <div class="card-body">
            <div class="row mb-3">
                <div class="col-sm-12">
                    <a href="<?php echo e(route('profile.createContactForm')); ?>"><button class="btn btn-primary btn-sm"
                            id="createContact" title="<?php echo e(__('Create Contact')); ?>"><?php echo e(__('Create')); ?></button></a>
                    <a href="<?php echo e(route('profile.importContactForm')); ?>" style="margin-left:5px;"><button
                            class="btn btn-success btn-sm" id="createContact"
                            title="<?php echo e(__('Create Contact')); ?>"><?php echo e(__('Import')); ?></button></a>
                </div>
            </div>
            <?php if(count($contacts)): ?>
                <table class="table table-bordered table-striped table-hover">
                    <thead>
                        <tr>
                            <th><?php echo e(__('ID')); ?></th>
                            <th><?php echo e(__('Name')); ?></th>
                            <th><?php echo e(__('Email')); ?></th>
                            <th><?php echo e(__('Created')); ?></th>
                            <th><?php echo e(__('Updated')); ?></th>
                            <th><?php echo e(__('Edit')); ?></th>
                            <th><?php echo e(__('Delete')); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $contacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($value->id); ?></td>
                                <td><?php echo e($value->name); ?></td>
                                <td><?php echo e($value->email); ?></td>
                                <td><?php echo e($value->created_at->diffForHumans()); ?></td>
                                <td><?php echo e($value->updated_at->diffForHumans()); ?></td>
                                <td>
                                    <a href="<?php echo e(route('profile.editContactForm', $value->id)); ?>">
                                        <button class="btn btn-primary btn-sm edit-contact"
                                            data-id="<?php echo e($value->id); ?>" title="<?php echo e(__('Edit')); ?>">
                                            <i class="fa fa-edit"></i>
                                        </button>
                                    </a>
                                </td>
                                <td>
                                    <button class="btn btn-danger btn-sm delete-contact"
                                        data-url="<?php echo e(route('profile.deleteContact')); ?>" data-id="<?php echo e($value->id); ?>"
                                        title="<?php echo e(__('Delete')); ?>">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                    <tfoot>
                        <tr>
                            <th><?php echo e(__('ID')); ?></th>
                            <th><?php echo e(__('Name')); ?></th>
                            <th><?php echo e(__('Email')); ?></th>
                            <th><?php echo e(__('Created')); ?></th>
                            <th><?php echo e(__('Updated')); ?></th>
                            <th><?php echo e(__('Edit')); ?></th>
                            <th><?php echo e(__('Delete')); ?></th>
                        </tr>
                    </tfoot>
                </table>
                <div class="card-footer">
                    <div class="float-right">
                        <?php echo e($contacts->links()); ?>

                    </div>
                </div>
            <?php else: ?>
                <p><?php echo e(__('Your contacts will appear here')); ?></p>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('profile.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/originsuiteai/webinar.originsuiteai.com/resources/views/profile/contacts/index.blade.php ENDPATH**/ ?>