<div class="table-responsive">
    <table class="table table-list">
        <thead>
            <tr>
                <?php echo tableHeader('validation.attributes.name'); ?>

                <?php echo tableHeader('front.show_widget'); ?>

                <?php echo tableHeader('front.ftp_username'); ?>

                <?php echo tableHeader('front.ftp_password'); ?>

                <th></th>
            </tr>
        </thead>
        <tbody>
        <?php if(count($device_cameras)): ?>
            <?php foreach($device_cameras as $camera): ?>
                <tr>
                    <td>
                        <?php echo e($camera->name); ?>

                    </td>
                    <td>
                        <?php echo e($camera->show_widget); ?>

                    </td>
                    <td>
                        <?php if($camera->ftp_username): ?>
                            <?php echo e($camera->ftp_username); ?>

                        <?php else: ?>
                            <?php echo e(trans('front.loading')); ?>

                        <?php endif; ?>
                    </td>
                    <td>
                        <?php if($camera->ftp_password): ?>
                            <?php echo e($camera->ftp_password); ?>

                        <?php else: ?>
                            <?php echo e(trans('front.loading')); ?>

                        <?php endif; ?>
                    </td>
                    <td class="actions">
                        <a href="javascript:" class="btn icon edit" data-url="<?php echo route('device_camera.edit', $camera->id); ?>" data-modal="device_camera_edit"></a>
                        <a href="javascript:" class="btn icon delete" data-url="<?php echo route('device_camera.do_destroy', $camera->id); ?>" data-modal="device_camera_destroy"></a>
                    </td>
                </tr>
            <?php endforeach; ?>
        <?php else: ?>
            <tr>
                <td colspan="3"><?php echo trans('front.no_cameras'); ?></td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
</div>

<div class="nav-pagination">
    <?php echo $device_cameras->setPath(route('device_camera.index', $device_id))->render(); ?>

</div>
