<?php $__env->startSection('title', 'Social login data - List'); ?>

<?php $__env->startSection('content_header', 'Social login data <small>login data list</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Social login data</h3>
                    <div class="box-tools">
                        <form class="form-horizontal" method="GET" action="<?php echo e(route('admin.social.index')); ?>">
                            <div class="input-group">
                                <input type="text" name="query" class="form-control input-sm pull-right" style="width: 180px;" placeholder="Search by name, email, provider..." value="<?php echo e($query); ?>">
                                <div class="input-group-btn">
                                    <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <?php if(count($social) > 0): ?>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tr>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'id', '_title' => '#'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'name', '_title' => 'Name'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'email', '_title' => 'Email'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'user_id', '_title' => 'User'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'provider', '_title' => 'Provider'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'created_at', '_title' => 'Created at'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th><?php echo $__env->make('admin._partials.sort_snippet', ['_field' => 'updated_at', '_title' => 'Updated at'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></th>
                                <th>&nbsp;</th>
                            </tr>
                            <?php foreach($social as $socialProfile): ?>
                                <tr>
                                    <td><?php echo e($socialProfile->id); ?></td>
                                    <td>
                                        <?php if(strlen($socialProfile->name) > 0): ?>
                                            <a href="<?php echo e(route('admin.social.show', $socialProfile->id)); ?>"><?php echo e($socialProfile->name); ?></a>
                                        <?php else: ?>
                                            -
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <?php if(strlen($socialProfile->email) > 0): ?>
                                            <a href="<?php echo e(route('admin.social.show', $socialProfile->id)); ?>"><?php echo e($socialProfile->email); ?></a>
                                        <?php else: ?>
                                            -
                                        <?php endif; ?>
                                    </td>
                                    <td><a href="<?php echo e(route('admin.users.show', $socialProfile->user->id)); ?>"><?php echo e($socialProfile->user->name); ?></a></td>
                                    <td><?php echo e($socialProfile->provider); ?></td>
                                    <td><?php echo e($socialProfile->created_at); ?></td>
                                    <td><?php echo e($socialProfile->updated_at); ?></td>
                                    <td class="text-right">
                                        <a href="<?php echo e(route('admin.social.delete', $socialProfile->id)); ?>" class="btn btn-danger btn-xs confirm-action">delete</a>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                        </table>
                    </div>
                    <?php if($social->hasPages()): ?>
                        <div class="box-footer">
                            <?php echo $social->render(); ?>

                        </div>
                    <?php endif; ?>
                <?php else: ?>
                    <div class="box-body">
                        <div class="alert alert-info">Social login data list is empty.</div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>