<?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">
                        <h4 class="m-0 text-dark">مشاهده متخصص : <?php echo e($user->name ?? $user->mobile); ?></h4>
                    </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 p-0 card-primary col-md-8 mx-auto">
                <div class="card-header">
                    <h3 class="card-title">مشخصات متخصص</h3>
                </div>
                <!-- /.card-header -->
                <!-- form start -->
                <form class="mt-3 p-2">
                    <?php echo csrf_field(); ?>
                    <div class="form-group">
                        <label>مناطق فعالیت :</label>
                        <?php $__currentLoopData = $user->regions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $region): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span><?php echo e($region->name); ?>,</span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="form-group">
                        <label>تخصص های کاربر :</label>
                        <?php $__currentLoopData = $user->services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span><?php echo e($service->name); ?>,</span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="form-group">
                        <p>موبایل</p>
                        <input type="text" name='mobile' class="form-control" id="mobile"
                               placeholder="موبایل *" value="<?php echo e(old('mobile',$user->mobile)); ?>" disabled>
                    </div>
                    <div class="form-group">
                        <p>نام</p>
                        <input type="text" name='name' class="form-control" id="name"
                               placeholder="نام" value="<?php echo e(old('name',$user->name)); ?>" disabled>
                    </div>
                    <div class="form-group">
                        <p>نام خانوادگی</p>
                        <input type="text" name='lname' class="form-control" id="lname"
                               placeholder="نام خانوادگی" value="<?php echo e(old('lname',$user->lname)); ?>" disabled>
                    </div>
                    <div class="form-group">
                        <p>ایمیل</p>
                        <input type="email" name='email' class="form-control" id="email"
                               placeholder="ایمیل" value="<?php echo e(old('email',$user->email)); ?>" disabled>
                    </div>
                    <div class="form-group">
                        <p>موجودی</p>
                        <input type="text" name='amount' class="form-control" id="amount"
                               placeholder="موجودی کیف پول پیشفرض 0" value="<?php echo e(old('amount',$user->amount)); ?>" disabled>
                    </div>
                    <div class="form-group">
                        <p>سهم</p>
                        <input type="text" name='mobile' class="form-control" id="mobile"
                               placeholder="سهم" value="<?php echo e(old('mobile',$user->percent)); ?>" disabled>
                    </div>
                    <?php if($user->address): ?>
                        <?php $__currentLoopData = $user->address; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $address): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <p>ادرس <?php echo e(++$loop->index); ?></p>
                            <div class="form-group">
                                <input type="number" name='<?php echo e('zip_code['.$loop->index.']'); ?>' class="form-control"
                                       id="zip_code"
                                       placeholder="کد پستی <?php echo e($loop->index); ?>"
                                       value="<?php echo e(old('zip_code',$address['zip_code'])); ?>" disabled>
                            </div>
                            <div class="form-group">
                                 <textarea disabled name='<?php echo e('address['.$loop->index.']'); ?>' class="form-control"
                                           id="address"
                                           placeholder="آدرس کد پستی <?php echo e($loop->index); ?>"><?php echo e(old('address',$address['address'])); ?></textarea>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                    <div class="form-group mx-auto my-2 d-flex justify-content-center">
                        <label>تصویر پروفایل</label>
                        <?php if($user->profile_pic): ?>
                            <img src="<?php echo e($user->profile_pic->thump()); ?>" class="mx-auto" style="width: 6rem;height: 6rem">
                        <?php else: ?>
                            بدون تصویر پروفایل
                        <?php endif; ?>
                    </div>
                </form>
            </div>
        </section>
     <?php $__env->endSlot(); ?>
 <?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/experts/show_expert.blade.php ENDPATH**/ ?>