<?php $__env->startSection('content'); ?>
    <div class="row">


        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <form action="<?php echo e(route('admin.searchuser')); ?>" method="get">
                        

                        <div id="accordion">
                            <div class="card mb-1 shadow-none">
                                <div class="card-header" id="headingOne">
                                    <h6 class="m-0">
                                        <a href="#collapseOne" class="text-dark collapsed" data-toggle="collapse"
                                            aria-expanded="false" aria-controls="collapseOne">
                                            جست و جو
                                        </a>
                                    </h6>
                                </div>

                                <div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordion"
                                    style="">
                                    <div class="card-body line-height-p">
                                        <div class="form-group row">
                                            <label class="col-md-2 col-form-label">بر اساس</label>
                                            <div class="col-md-10">
                                                <select name="type" class="form-control">
                                                    <option value="1">نام</option>
                                                    <option value="2">شماره تلفن</option>
                                                    <option value="3">کدپرسنلی</option>
                                                </select>
                                            </div>
                                        </div>


                                        <div class="form-group row">
                                            <label for="example-text-input" class="col-md-2 col-form-label">متن</label>
                                            <div class="col-md-10">
                                                <input name="inp" class="form-control" type="text" id="example-text-input">
                                            </div>
                                        </div>



                                        <button type="submit" class="col-12 btn btn-primary waves-effect waves-light">جست و
                                            جو</button>

                                    </div>
                                </div>
                            </div>


                        </div>

                    </form>




                    <br><br>
                    <div class="table-responsive">
                        <table class="table table-striped mb-0">

                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>شماره</th>
                                    <th>نام</th>
                                    <th>شماره تلفن</th>
                                    <th>کدپرسنلی</th>
                                    <th>تغییرات</th>
                                </tr>
                            </thead>
                            <tbody>

                                <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <th><input class="" type="checkbox" value="" id="defaultCheck1">
                                        </th>
                                        <th scope="row"><?php echo e($loop->index + 1); ?></th>
                                        <td><?php echo e($user->name); ?></td>
                                        <td><?php echo e($user->phone); ?></td>
                                        <td><?php echo e($user->usercode); ?></td>
                                        <td>
                                            <a href="" data-toggle="modal" data-target=".bs-example-modal-lg">حذف</a>

                                            <!--  Modal content for the above example -->
                                            <div class="modal
                                                fade bs-example-modal-lg"
                                                tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
                                                aria-hidden="true">
                                                <div class="modal-dialog modal-lg">
                                                    <div class="modal-content">
                                                        <div class="modal-header">
                                                            <h5 class="modal-title mt-0" id="myLargeModalLabel">شما درحال
                                                                حذف کاربر <?php echo e($user->name); ?> هستید</h5>
                                                            <button type="button" class="close" data-dismiss="modal"
                                                                aria-label="Close">
                                                                <span aria-hidden="true">×</span>
                                                            </button>
                                                        </div>
                                                        <div class="modal-body">
                                                            <p>آیا از حذف کاربر اطمینان دارید؟</p>
                                                            <a href="<?php echo e(route('admin.deleteuser', ['id' => $user->id])); ?>"
                                                                type="button"
                                                                class="btn btn-danger waves-effect waves-light">حذف
                                                                کاربر</a>
                                                        </div>
                                                    </div>
                                                    <!-- /.modal-content -->
                                                </div>
                                                <!-- /.modal-dialog -->
                                            </div>
                                            <!-- /.modal -->
                    </div>
                    </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </tbody>
                    </table>

                </div>

            </div>
        </div>
    </div>
    </div>
    <?php echo e($users->render('pagination::bootstrap-4')); ?>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/ali/pakanbakhtar/pakanbakhtar/resources/views/admin/searchresult.blade.php ENDPATH**/ ?>