
<?php $__env->startSection('title', 'کاربران'); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <!-- start page title -->
    <div class="row">
        <div class="col-12">
            <div class="page-title-box">
                <div class="page-title-right">
                    <ol class="breadcrumb m-0">
                        <li class="breadcrumb-item"><a href="javascript: void(0);">پنل کاربری</a></li>
                        <li class="breadcrumb-item active">کاربران</li>
                    </ol>
                </div>
                <h4 class="page-title">کاربران</h4>
            </div>
        </div>
    </div>
    <!-- end page title -->
<?php $__env->stopSection(); ?>

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

    <div class="row">
        <div class="col">
            <div class="card-box">
                <div class="clearfix">
                    <div class="clearfix">
                        <div class="float-left">
                            <h4 class="header-title">لیست کاربران</h4>
                            <p class="sub-header">لیست تمامی کاربران به همراه اطلاعات</p>
                        </div>
                        <a href="<?php echo e(route('panel.users.create')); ?>" class="btn btn-primary waves-effect waves-light float-right mb-3"><i class="fe-user-plus mr-2"></i>افزودن کاربر جدید</a>
                    </div>
                </div>
                <?php if(session('success')): ?>
                    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
                <?php endif; ?>
                <div class="table-responsive">
                    <table class="table table-hover text-center">
                        <thead class="thead-light">
                            <tr>
                                <th>#</th>
                                <th>نام و نام خانوادگی</th>
                                <th>وضعیت</th>
                                <th>ایمیل</th>
                                <th>شماره همراه</th>
                                <th>گزینه ها</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td><?php echo e($user->id); ?></td>
                                    <td><?php echo e($user->name); ?></td>
                                    <td><?php echo user_status_label($user->status); ?></td>
                                    <td><?php echo e($user->email); ?></td>
                                    <td><?php echo e($user->mobile); ?></td>
                                    <td>
                                        <a href="<?php echo e(route('panel.users.edit', $user)); ?>" class="btn btn-secondary btn-xs">
                                            <span class="remixicon-user-settings-line"></span>
                                        </a>
                                        <a href="javascript:void(0)" class="btn btn-danger btn-xs" data-delete-url="<?php echo e(route('panel.users.destroy', $user)); ?>">
                                            <span class="remixicon-user-unfollow-line"></span>
                                        </a>
                                        <div class="btn-group dropdown">
                                            <a href="javascript: void(0);" class="dropdown-toggle arrow-none btn btn-light btn-sm" data-toggle="dropdown" aria-expanded="false"><i class="mdi mdi-dots-horizontal"></i></a>
                                            <div class="dropdown-menu dropdown-menu-right" x-placement="bottom-end" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(39px, 29px, 0px);">
                                                <a class="dropdown-item" href="#">ارسال تیکت<i class="mdi mdi-message-text-outline mr-2 text-muted font-18 vertical-middle"></i></a>
                                                <a class="dropdown-item" href="#">ارسال پیامک<i class="mdi mdi-cellphone-message mr-2 font-18 text-muted vertical-middle"></i></a>
                                                <a class="dropdown-item" href="#">مسدود کردن<i class="mdi mdi-minus-circle-outline  mr-2 font-18 text-muted vertical-middle"></i></a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <td colspan="6" class="bg-light text-muted text-center">داده ای یافت نشد</td>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <?php echo e($users->links()); ?>

            </div>
        </div><!-- end col -->
    </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/panel/users/list.blade.php ENDPATH**/ ?>