<?php $__env->startSection('content'); ?>
    <h1>Business Cards List</h1>
    <div id="business-cards">
        <?php if($canInsert): ?>
            <button type="button" data-toggle="tooltip" data-placement="right" class="btn btn-default command-add list-add-btn" title="<?php echo e(Lang::get('backend.new_business_card')); ?>">
                <span class="icon glyphicon glyphicon-plus"></span>
            </button>
        <?php endif; ?>

        <table id="grid" class="table table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th data-column-id="id" data-type="numeric" data-identifier="true">ID</th>
                    <th data-column-id="name" data-order="asc">Name</th>
                    <th data-column-id="role" data-sortable="false">Role</th>
                    <th data-column-id="phone" data-sortable="false">Phone</th>
                    <th data-column-id="email" data-sortable="false">Email</th>
                    <th data-column-id="commands" data-formatter="commands" data-sortable="false"><?php echo e(trans('backend.actions')); ?></th>
                </tr>
            </thead>
        </table>
    </div>
    <script>
        $(function() {
            var manageBusinessCardView = new Eae.View.BackendBusinessCardList({
                el : $('#business-cards'),
                userId : <?php echo e($loggedUser->id); ?>,
                canInsert: 'true'
            });
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.main', [
    'scripts' => [
        path_asset('path.backoffice.js_path') . '/view/business/business-list.js'
    ]
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/admin/pages/business_cards/business_cards.blade.php ENDPATH**/ ?>