<?php if (isset($component)) { $__componentOriginalfcbcb094a4e25784fc05a845b0fe2686439b0eb5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\AdminPanelLayout::class, []); ?>
<?php $component->withName('admin-panel-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title'); ?>
        لیست سر تیم ها
     <?php $__env->endSlot(); ?>
     <?php $__env->slot('main'); ?>
        <!-- Checked checkbox -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0 text-dark">لیست سر تیم ها</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-left">

                            <li class="breadcrumb-item">مدیریت کاربران</li>
                            <li class="breadcrumb-item active">لیست سر تیم ها</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <section class="content mt-sm-3">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">سر تیم ها</h3>
                </div>
                <!-- /.card-header -->
                <div class="card-body p-0">
                    <div class="alert alert-success col-md-11 mx-auto mt-2 d-none" role="alert" id="alertDelUser">
                        سر تیم با موفقیت حذف گردید
                    </div>

                    <div class="mx-auto my-3 d-flex">
                        <button type="button" class="btn btn-primary mx-auto btn-sm" data-toggle="modal"
                                data-target="#exampleModalCenter">
                            جست و جو
                        </button>
                    </div>

                    <div class="tableSection bg-light smSmall p-0 pr-sm-4 pl-sm-4 pt-sm-4 pb-0 table-responsive">
                        <table class="table table-striped text-center small">
                            <thead>
                            <tr>
                                <th scope="col">شناسه</th>
                                <th scope="col">آواتار</th>
                                <th scope="col">نام</th>
                                <th scope="col">موبایل</th>
                                <th scope="col">شهرها</th>
                                <th scope="col">وضعیت</th>
                                <th scope="col">عملیات</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr id="tr<?php echo e($user->id); ?>">
                                    <th scope="row"><?php echo e($user->id); ?></th>
                                    <th scope="row">
                                        <?php if($user->profile_pic): ?>
                                            <img src="<?php echo e($user->thumb()); ?>"
                                                 style="width: 3rem;height: 2.5rem">
                                        <?php else: ?>
                                            -
                                        <?php endif; ?>
                                    </th>
                                    <td><?php echo e($user->name); ?>,<?php echo e($user->lname); ?></td>
                                    <td><?php echo e($user->mobile); ?></td>
                                    <td>
                                        <?php $__currentLoopData = $user->regions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <span ><?php echo e($reg->name); ?></span>,
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </td>
                                    <td class="<?php echo e($user->status == Mehrab\User\Models\User::ACTIVE ? 'text-success' : 'text-danger'); ?>">
                                        <?php if($user->status == Mehrab\User\Models\User::ACTIVE): ?>
                                            در دسترس
                                        <?php elseif($user->status == Mehrab\User\Models\User::BAN): ?>
                                            مسدود
                                        <?php else: ?>
                                            در دسترس نیست
                                        <?php endif; ?>
                                    </td>
                                    <td class="d-flex justify-content-center">

                                        <a class="btn btn-sm btn-success ml-3"
                                           href="<?php echo e(route('team_leaders.show',$user->id)); ?>" title="مشاهده">
                                            <i class="fa fa-eye text-light" aria-hidden="true"></i>
                                        </a>
                                        <a class="btn btn-sm btn-danger ml-3"
                                           href="<?php echo e(route('team_leaders.team_leaders_regions',$user->id)); ?>" title="مناطق ارائه">
                                            <i class="fa fa-map-marker text-light" aria-hidden="true"></i>
                                        </a>
                                        <a class="btn btn-sm btn-primary ml-3"
                                           href="<?php echo e(route('team_leaders.team_leaders_services',$user->id)); ?>"
                                           title="مدیریت تخصص ها">
                                            <i class="fa fa-wrench text-light" aria-hidden="true"></i>
                                        </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                    <?php echo e($users->appends(request()->query())->links()); ?>

                </div>
                <!-- /.card-body -->
            </div>


            <div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog"
                 aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
                <div class="modal-dialog modal-dialog-centered" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h5 class="modal-title" id="exampleModalLongTitle"></h5>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <div class="modal-body">
                            <form>
                                <div class="form-group row">
                                    <label for="inputEmail3"  class="col-sm-2 col-form-label">موبایل</label>
                                    <div class="col-sm-10">
                                        <input  name="mobile" value="<?php echo e(request()->mobile); ?>" class="form-control" id="inputEmail3">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="inputPassword3" class="col-sm-2 col-form-label">نام</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="name" value="<?php echo e(request()->name); ?>" class="form-control" id="inputPassword3">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="inputPassword3" class="col-sm-2 col-form-label">وضعیت</label>
                                    <div class="col-sm-10">
                                        <select class="form-control" name="status">
                                            <option selected value="">انتخاب</option>
                                            <option <?php echo e(request()->status == Mehrab\User\Models\User::BAN ? 'selected' : ''); ?> value="<?php echo e(Mehrab\User\Models\User::BAN); ?>">مسدود</option>
                                            <option <?php echo e(request()->status == Mehrab\User\Models\User::ACTIVE ? 'selected' : ''); ?> value="<?php echo e(Mehrab\User\Models\User::ACTIVE); ?>">فعال</option>
                                            <option <?php echo e(request()->status == Mehrab\User\Models\User::NOT_AVAILABLE ? 'selected' : ''); ?> value="<?php echo e(Mehrab\User\Models\User::NOT_AVAILABLE); ?>">خارج از دسترس
                                            </option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="inputPassword3" class="col-sm-2 col-form-label">کد ملی</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="national_code" value="<?php echo e(request()->national_code); ?>" class="form-control" id="inputPassword3">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="inputPassword3" class="col-sm-2 col-form-label">ایمیل</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="email" value="<?php echo e(request()->email); ?>" class="form-control" id="inputPassword3">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="region" class="col-sm-2 col-form-label">نام منطقه</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="region" value="<?php echo e(request()->region); ?>" class="form-control" id="region">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="service" class="col-sm-2 col-form-label">نام خدمت</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="service" value="<?php echo e(request()->service); ?>" class="form-control" id="service">
                                    </div>
                                </div>
                                <div class="form-group row float-left">
                                    <div class="col-sm-10 ">
                                        <button type="submit" class="btn btn-primary mx-auto">جست و جو</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>


        </section>
     <?php $__env->endSlot(); ?>
    <?php if(session()->get('status') == 'updated'): ?>
         <?php $__env->slot('linkScript'); ?>
            <script>
                Swal.fire({
                    icon: 'success',
                    text: 'ویرایش متخصص با موفقیت انجام شد',
                })
            </script>
         <?php $__env->endSlot(); ?>
    <?php endif; ?>
 <?php if (isset($__componentOriginalfcbcb094a4e25784fc05a845b0fe2686439b0eb5)): ?>
<?php $component = $__componentOriginalfcbcb094a4e25784fc05a845b0fe2686439b0eb5; ?>
<?php unset($__componentOriginalfcbcb094a4e25784fc05a845b0fe2686439b0eb5); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\newer\Modules\Mehrab\User\Providers/../Resources/Views//Admin/team_leaders/list_team_leaders.blade.php ENDPATH**/ ?>
