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


 <section class="inner_header">
        <div class="container">
            <div class="top">
                <a href="<?php echo e(url(getCurrentLocale().'/')); ?>"><?php echo e(__('web.home')); ?> </a>
                <span><?php echo e(__('web.profile')); ?></span>
            </div>
            <h2><?php echo e(__('web.profile')); ?></h2>
        </div>
    </section>
    <main class="profile_pg ">
        <!-- Modal أنهاء الطلب  -->
        <div class="modal fade end_req" id="exampleModalCenter1" 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-body">
                        <h5><?php echo e(__('web.paid_question')); ?> </h5>
                        <div class="checks mb-5">
                            <div class="custom-control custom-checkbox">
                                <input type="radio" class="custom-control-input" id="check4" name="example1">
                                <label class="custom-control-label" for="check4"><?php echo e(__('web.yes')); ?>  </label>
                            </div>
                            <div class="custom-control custom-checkbox">
                                <input type="radio" class="custom-control-input" id="check5" name="example1">
                                <label class="custom-control-label" for="check5"> <?php echo e(__('web.no')); ?> </label>
                            </div>
                        </div>
                        <h5><?php echo e(__('web.paid_hanqr')); ?> </h5>
                        <div class="checks mb-5">
                            <div class="custom-control custom-checkbox">
                                <input type="radio" class="custom-control-input" id="check6" name="example2">
                                <label class="custom-control-label" for="check6"><?php echo e(__('web.yes')); ?>  </label>
                            </div>
                            <div class="custom-control custom-checkbox">
                                <input type="radio" class="custom-control-input" id="check7" name="example2">
                                <label class="custom-control-label" for="check7"> <?php echo e(__('web.no')); ?> </label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- --------- modal أضافه تعليق  -------- -->
        <div class="modal fade" id="exampleModalCenter2" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" style="display: none;">
            <div class="modal-dialog modal-dialog-centered" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title" id="exampleModalLongTitle"> <?php echo e(__('web.writecomment')); ?></h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
          </button>
                    </div>
                    <div class="modal-body">
                        <form>
                            <div class="form-group">
                                <textarea class="form-control" rows="6" placeholder="<?php echo e(__('web.comment')); ?>"></textarea>
                            </div>
                            <div class="form-group">
                                <div class="stars">
                                    <input type="radio" name="star" value="5">
                                    <input type="radio" name="star" value="4">
                                    <input type="radio" name="star" value="3">
                                    <input type="radio" name="star" value="2">
                                    <input type="radio" name="star" value="1">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="butn main_bg"><span><?php echo e(__('web.save')); ?></span></button>
                    </div>
                </div>
            </div>
        </div>
        <!-- -------------- profile_pg --------------- -->
        <section class="section-padding">
            <div class="container">
                 <?php if(Session::has('success')): ?>
<p class="alert <?php echo e(Session::get('alert-class', 'alert-success')); ?>"><?php echo e(Session::get('success')); ?></p>
<?php endif; ?>
  <?php if(issetpack()): ?>
<p class="alert <?php echo e(Session::get('alert-class', 'alert-primary')); ?>"><?php echo e(__('web.waitforaccept')); ?></p>
<?php endif; ?>
<?php if(packageexpired()): ?>
<p class="alert <?php echo e(Session::get('alert-class', 'alert-primary')); ?>"><?php echo e(__('web.packagepay')); ?></p>
<?php endif; ?>
    <?php if($errors->any()): ?>
      <div class="alert alert-danger">
          <ul>
              <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <li><?php echo e($error); ?></li>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </ul>
      </div>
  <?php endif; ?>
                <div class="row">
                    <div class="col-md-4">
                        <div class="side_menu">
                            <div class="user_info">
                                <div class="img">
                                    <img id="img-profile" src="<?php echo e(asset($user->photo)); ?>" alt="">
                                    <a href="#"><i class="fas fa-camera"></i></a>
                                    <form method="post" action="<?php echo e(url(getCurrentLocale().'/picreplace')); ?>" id="formpic"  enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                    <input type="file" name="photo" class="custom-file-input" onchange="picreplace(this)" id="input-profile" onchange="readURL(this);" required />
                                    </form>
                                   <?php if(!is_null($user->hanqr)): ?> <span class="h_num"> <?php echo e($user->hanqr); ?> </span> <?php endif; ?>
                                </div>
                                <div class="info text-center">
                                    <h4> <a id="v-pills-tab6-tab" data-toggle="pill" onclick="shownotifi(this)" href="#v-pills-tab6" role="tab" aria-controls="v-pills-tab6" aria-selected="false"><i class="far fa-bell"></i></a> <?php echo e($user->name); ?> </h4>
                                    
                                    <div class="fllw">
                                        <div class="items">
                                           <p><?php echo e(__('web.following')); ?> </p>
                                            <h5><?php echo e($follows); ?></h5>
                                        </div>
                                        <div class="items">
                                            <p><?php echo e(__('web.followers')); ?> </p>
                                            <h5><?php echo e($followers); ?></h5>
                                        </div>
                                    </div>
                                </div>
                                <div class="cont">
                                    <ul>
                                          <?php if(!is_null($user->country_id)): ?>  <li>
                                           <a href="#"><i class="fas fa-phone"></i> +<?php echo e($user->country->key); ?>-<?php echo e($user->phone); ?></a>
                                        </li>
                                        <?php endif; ?>
                                        <li>
                                            <a href="#"><i class="far fa-envelope"></i> <?php echo e($user->email); ?></a>
                                        </li>
                                    </ul>
                                    <div class="social">
                                       <a target="_blank" href="<?php echo e($user->facebook); ?>"><i class="fab fa-facebook-f"></i></a>
                                        <a target="_blank" href="<?php echo e($user->instagram); ?>"><i class="fab fa-instagram"></i></a>
                                        <a target="_blank" href="<?php echo e($user->twitter); ?>"><i class="fab fa-twitter"></i></a>
                                        <a target="_blank" href="<?php echo e($user->snapchat); ?>"><i class="fab fa-snapchat-ghost"></i></a>
                                    </div>
                                    <div class="wallet">
                                        <h6><?php echo e(__('web.pocket')); ?> </h6>
                                        <h2> <?php echo e($user->wallet); ?> <?php echo e(__('web.sar')); ?> </h2>
                                        <button class="butn main_bg" data-toggle="modal" data-target="#modal_pay1"><span><?php echo e(__('web.putpocket')); ?> </span></button>
                                    </div>
                                </div>
                            </div>
                            <div class="side_links">
                                <ul class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                                    <li>
                                        <a class="active" id="v-pills-tab1-tab" data-toggle="pill" href="#v-pills-tab1" role="tab" aria-controls="v-pills-tab1" aria-selected="true"><?php echo e(__('web.info')); ?></a>
                                    </li>
                                    <li>
                                        
                                        <a id="v-pills-tab2-tab" data-toggle="pill" onclick="messagemembers(this)" href="#v-pills-tab2" role="tab" aria-controls="v-pills-tab2" aria-selected="false"><?php echo e(__('web.msgs')); ?></a>
                                    </li>
                                    <li>
                                        <a id="v-pills-tab3-tab" data-toggle="pill" href="#v-pills-tab3" role="tab" aria-controls="v-pills-tab3" aria-selected="false"><?php echo e(__('web.ads')); ?></a>
                                    </li>
                                    <?php if(lastsubscribe(\Auth::user()->id) == 3): ?>
                                    <li>
                                        <a id="v-pills-tab10-tab" data-toggle="pill" href="#v-pills-tab10" role="tab" aria-controls="v-pills-tab10" aria-selected="false"><?php echo e(__('web.auctions')); ?>  </a>
                                    </li>
                                    <?php endif; ?>
                                    <li>
                                        <a id="v-pills-tab9-tab" data-toggle="pill" href="#v-pills-tab9" role="tab" aria-controls="v-pills-tab9" aria-selected="false"><?php echo e(__('web.auctionssubs')); ?>   </a>
                                    </li>
                                    <li>
                                        <a id="v-pills-tab4-tab" data-toggle="pill" href="#v-pills-tab4" role="tab" aria-controls="v-pills-tab4" aria-selected="false"><?php echo e(__('web.fav')); ?></a>
                                    </li>
                                    <li>
                                        <a id="v-pills-tab5-tab" data-toggle="pill" href="#v-pills-tab5" role="tab" aria-controls="v-pills-tab5" aria-selected="false"><?php echo e(__('web.rating')); ?></a>
                                    </li>
                                    <li>
                                        <?php if($numnotifi > 0): ?>
                                        <span class="m_num" id="numnotifi">
                                            <?php echo e($numnotifi); ?>

                                        </span>
                                        <?php endif; ?>
                                        <a id="v-pills-tab6-tab" data-toggle="pill" onclick="shownotifi(this)" href="#v-pills-tab6" role="tab" aria-controls="v-pills-tab6" aria-selected="false"><?php echo e(__('web.notifications')); ?></a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-8">
                        
                        <div class="content">
                            <div class="tab-content" id="v-pills-tabContent">
                                <div class="tab-pane fade show active" id="v-pills-tab1" role="tabpanel" aria-labelledby="v-pills-tab1-tab">
                                    <div class="user_info tab-pane fade show active" id="v-pills-tab11" role="tabpanel" aria-labelledby="v-pills-tab11-tab">
                                        <div id="informations">
                                        <div class="form-group">
                                            <label><?php echo e(__('web.name')); ?> </label>
                                            <input type="text" value="<?php echo e(\Auth::user()->name); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.email')); ?></label>
                                            <input type="text" value="<?php echo e(\Auth::user()->email); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label> <?php echo e(__('web.phone')); ?></label>
                                            <input type="text" value="<?php echo e(\Auth::user()->phone); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.facebook')); ?></label>
                                            <input type="text" value="<?php echo e(\Auth::user()->facebook); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.instagram')); ?></label>
                                            <input type="text" value="<?php echo e(\Auth::user()->instagram); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.twitter')); ?> </label>
                                            <input type="text" value="<?php echo e(\Auth::user()->twitter); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.city')); ?></label>
                                            <input type="text" value="<?php echo e(cityname(\Auth::user()->city_id)); ?>" readonly>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.country')); ?></label>
                                            <input type="text" value="<?php echo e(countryname(\Auth::user()->country_id)); ?>" readonly>
                                        </div>
                                        </div>
                                        <div class="shad_btn text-center">
                                            <button class="butn main_bg show_btn w-50 mt-5" id="v-pills-tab12-tab" data-toggle="pill" href="#v-pills-tab12" role="tab" aria-controls="v-pills-tab12" aria-selected="false"><span> <i class="fas fa-pencil-alt ml-2"></i><?php echo e(__('web.editinfo')); ?></span></button>
                                        </div>
                                    </div>
                                    <!-- ------------------ -->
                                    
                                    <div class="user_info info_edit tab-pane fade" id="v-pills-tab12" role="tabpanel" aria-labelledby="v-pills-tab12-tab">
                                        <form onsubmit="savechange(this)" method="post" action="<?php echo e(url(getCurrentLocale().'/editprofile')); ?>">
                                            <?php echo csrf_field(); ?>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.name')); ?></label>
                                            <input type="text" name="name" value="<?php echo e($user->name); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.email')); ?></label>
                                            <input type="text" name="email" value="<?php echo e($user->email); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.phone')); ?></label>
                                            <input type="text" name="phone" value="<?php echo e($user->phone); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.facebook')); ?></label>
                                            <input type="text" name="facebook" value="<?php echo e($user->facebook); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.instagram')); ?> </label>
                                            <input type="text" name="instagram" value="<?php echo e($user->instagram); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.twitter')); ?> </label>
                                            <input type="text" name="twitter" value="<?php echo e($user->twitter); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.snapchat')); ?> </label>
                                            <input type="text" name="snapchat" value="<?php echo e($user->snapchat); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.date_of_birth')); ?> </label>
                                            <input type="date" name="date_of_birth" value="<?php echo e($user->date_of_birth); ?>">
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.gender')); ?></label>
                                            
                                            <select class="form-control"  name="gender">
                                               
                                                <option <?php if($user->gender == '1'): ?> selected <?php endif; ?> value="1"> <?php echo e(__('web.male')); ?></option>
                                                <option <?php if($user->gender == '0'): ?> selected <?php endif; ?> value="0"> <?php echo e(__('web.female')); ?></option>
                                                
                                            </select>
                                        </div>
                                        
                                        <div class="form-group">
                                            <label><?php echo e(__('web.country')); ?></label>
                                            
                                            <select class="form-control"  name="country_id">
                                                <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option <?php if($user->country_id == $row->id): ?> selected <?php endif; ?> value="<?php echo e($row->id); ?>"> <?php echo e(countryname($row->id)); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.city')); ?></label>
                                            <select class="form-control" name="city_id">
                                                <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option <?php if($user->city_id == $row->id): ?> selected <?php endif; ?> value="<?php echo e($row->id); ?>"> <?php echo e(cityname($row->id)); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                        
                                        <div class="form-group">
                                            <label><?php echo e(__('web.password')); ?></label>
                                            <input type="password" name="password" value="">
                                            <span class="show_pass"><i class="far fa-eye"></i></span>
                                        </div>
                                        <div class="form-group">
                                            <label><?php echo e(__('web.repeat')); ?></label>
                                            <input type="password"  name="repeatpassword">
                                            <span class="show_pass"><i class="far fa-eye"></i></span>
                                        </div>
                                        <div class="shad_btn text-center">
                                            <button class="butn main_bg show_btn w-50 mt-5"><span> <i class="far fa-save ml-2"></i> <?php echo e(__('web.save')); ?> </span></button>
                                        </div>
                                       </form>
                                    </div>
                                     
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab2" role="tabpanel" aria-labelledby="v-pills-tab2-tab">
                                    <div class="chat_tab">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <h5><?php echo e(__('web.chats')); ?> </h5>
                                                <ul class="nav nav-pills msg_navs" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                                                     <?php $__currentLoopData = chat(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$chat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <li onclick="messagemember(this)" data-id="<?php echo e(userid($chat->id)); ?>" data-name="<?php echo e(username($chat->id)); ?>" >
                                                        <a class="active" id="v-pills-tab21-tab" data-toggle="pill" href="#v-pills-tab21" role="tab" aria-controls="v-pills-tab21" aria-selected="true">
                                                            <img src="<?php echo e(asset(userphoto($chat->id))); ?>" alt="">
                                                            <p><?php echo e(username($chat->id)); ?></p>
                                                            <span  class="sts <?php if(Cache::has('is_online' . userid($chat->id))): ?> active <?php endif; ?>">
                                                                <i class="fas fa-circle"></i>
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    
                                                </ul>
                                            </div>
                                            
                                        </div>
                                        <div class="msg_cont mt-5" id="chatting" style="display:none">
                                            <div class="msg_name d-flex justify-content-between mb-3">
                                                <h3>
                                                   <div  id="name">  </div>
                                                </h3>
                                                <!-- Button trigger modal أنهاء الطلب  -->
                                                
                                            </div>
                                            <div class="messages_content" id="messages_scroll">
                                                <div class="day text-center">
                                                    <span>أمس</span>
                                                </div>
                                                <div class="l_msg">
                                                    <div class="msg_cnt">
                                                        مرحبا
                                                    </div>
                                                    <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                </div>
                                                <div class="r_msg">
                                                    <div class="msg_cnt">
                                                        شكرا سامي كنت أريد معرفةا لمزيد عن الإعلان وبكن وجدتها في فيديو الوصف
                                                    </div>
                                                </div>
                                                <div class="l_msg">
                                                    <div class="msg_cnt">
                                                        هل يوجد معلومات أكثر
                                                    </div>
                                                    <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                </div>
                                                <div class="l_msg">
                                                    <div class="msg_cnt">
                                                        لو يوجد ملف لحالة السيارة
                                                    </div>
                                                    <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                </div>
                                                <div class="day text-center">
                                                    <span>اليوم</span>
                                                </div>
                                                <div class="l_msg">
                                                    <div class="msg_cnt">
                                                        السلام عليكم
                                                    </div>
                                                    <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                </div>
                                                <div class="r_msg">
                                                    <div class="msg_cnt">
                                                        وعليكم السلام ورحمه الله وبركاته
                                                    </div>
                                                </div>
                                            </div>
                                            <form id="sendmsg" enctype="multipart/form-data" method="POST" class="form-row mt-5" onsubmit="sendmessage()">
                                                <?php echo csrf_field(); ?>
                                                <div class="form-group w-100">
                                                    <input type="text" id="message"  name="message" placeholder="<?php echo e(__('web.writemsg')); ?>">
                                                    <button type="submit"><i class="far fa-paper-plane"></i></button>
                                                     <input type="hidden" id="sender_id" name="sender_id" value="<?php echo e(\Auth::user()->id); ?>">
                                                     <input type="hidden" id="reciever_id" name="reciever_id" value="<?php echo e($user->id); ?>">
                                                    <div class="add_img">
                                                        <p> <i class="fas fa-file-upload"></i> <span><?php echo e(__('web.image')); ?> </span> </p>
                                                        <input type="file" name="image" id="image">
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab3" role="tabpanel" aria-labelledby="v-pills-tab3-tab">
                                    <div class="fav_tab">
                                        <div class="row">
                                            <div class="col-md-6">
                                                
                                            </div>
                                        </div>
                                        <section class="products">
                                            <div class="prod_cont">
                                                <?php if(count($ads)>0): ?>
                                               <?php $__currentLoopData = $ads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                               
                                                <div class="prod_items">
                                                     
                                                    <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                        <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                        <?php if(is_null($row->sold_id) && is_null($row->deleted_at)): ?>
                                                        <div class="fav-btn">
                                                         <input data-id="<?php echo e($row->id); ?>" action-id="<?php echo e(url(getCurrentLocale().'/togglefav')); ?>" onclick="togglefav(this)" <?php if(favorited($row->id)): ?> checked <?php endif; ?> type="checkbox">
                                                         </div>
                                                          <?php endif; ?>
                                                    </a>
                                                   
                                                    <div class="another_btns">
                                                       <!-- <a href="<?php echo e(url(getCurrentLocale().'/item/edit/'.$row->id)); ?>" class="bg-warning">
                                                            <i class="fas fa-pencil-alt"></i>
                                                        </a>-->
                                                        <?php if(is_null($row->sold_id) && is_null($row->deleted_at)): ?>
                                                        <a  data-id="<?php echo e($row->id); ?>" onclick="deletead(this)"  data-toggle="modal" data-target="#exampleModalCenterrem<?php echo e($row->id); ?>" class="bg-danger text-light">
                                                            <i class="far fa-trash-alt"></i>
                                                        </a>
                                                        <?php endif; ?>
                                                    </div>
                                                    <div class="info">
                                                        <h6>
                                                            <?php echo e(productname($row->id)); ?>

                                                        </h6>
                                                        <p>
                                                            <i class="fas fa-map-marker-alt"></i>  <?php echo e(cityname($row->city_id)); ?>

                                                        </p>
                                                        <div class="by d-flex">
                                                            <div class="imgg">
                                                                <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                            </div>
                                                            <span>
                                                                        <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?>

                                                                    </span>
                                                        </div>
                                                    </div>
                                                       <div class="modal fade end_req" id="exampleModalCenterrem<?php echo e($row->id); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
            <div class="modal-dialog modal-dialog-centered" role="document">
                <div class="modal-content">
                    <form method="post" action="<?php echo e(url(getCurrentLocale().'/remove/item')); ?>">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="product_id" value="<?php echo e($row->id); ?>">
                    <div class="modal-body">
                        <h5><?php echo e(__('web.paid_question')); ?> </h5>
                        <div class="checks mb-5">
                            <div class="custom-control custom-checkbox">
                                <input type="radio" onclick="paiding(this)" data-id="<?php echo e($row->id); ?>" class="custom-control-input" id="check<?php echo e($row->id); ?>0" value="paid" name="paids">
                                <label class="custom-control-label" for="check<?php echo e($row->id); ?>0"><?php echo e(__('web.yes')); ?>  </label>
                            </div>
                            <div class="custom-control custom-checkbox">
                                <input type="radio" onclick="paiding(this)" data-id="<?php echo e($row->id); ?>"  class="custom-control-input" id="check<?php echo e($row->id); ?>1" value="notpaid" name="paids">
                                <label class="custom-control-label" for="check<?php echo e($row->id); ?>1"> <?php echo e(__('web.no')); ?> </label>
                            </div>
                        </div>
                        <div id="paiding<?php echo e($row->id); ?>" style="display:none">
                        <h5><?php echo e(__('web.paid_hanqr')); ?> </h5>
                        <div class="checks mb-5">
                            <div class="custom-control custom-checkbox">
                                <input type="radio" onclick="deleting(this)" data-id="<?php echo e($row->id); ?>" class="custom-control-input" id="check<?php echo e($row->id); ?>2" value="hanqr" name="paid">
                                <label class="custom-control-label" for="check<?php echo e($row->id); ?>2"><?php echo e(__('web.yes')); ?>  </label>
                            </div>
                            <div class="custom-control custom-checkbox">
                                <input type="radio"onclick="deleting(this)" data-id="<?php echo e($row->id); ?>" class="custom-control-input" id="check<?php echo e($row->id); ?>3" value="nothanqr" name="paid">
                                <label class="custom-control-label" for="check<?php echo e($row->id); ?>3"> <?php echo e(__('web.no')); ?> </label>
                            </div>
                        </div>
                        </div>
                        <div id="deleting<?php echo e($row->id); ?>" style="display:none">
                        <h5><?php echo e(__('web.deleteproduct')); ?> </h5>
                        <div class="checks mb-5">
                            <div class="custom-control custom-checkbox">
                                <input type="radio" class="custom-control-input" id="check<?php echo e($row->id); ?>4" value="deleted" name="deleted">
                                <label class="custom-control-label" for="check<?php echo e($row->id); ?>4"><?php echo e(__('web.yes')); ?>  </label>
                            </div>
                            <div class="custom-control custom-checkbox">
                                <input type="radio" class="custom-control-input" id="check<?php echo e($row->id); ?>5" value="notdeleted" name="deleted">
                                <label class="custom-control-label" for="check<?php echo e($row->id); ?>5"> <?php echo e(__('web.no')); ?> </label>
                            </div>
                        </div>
                        </div>
                        <div class="checks mb-5">
                             <div class="custom-control custom-checkbox">
                            <button  class="btn btn-primary" type="submit"><?php echo e(__('web.save')); ?></button>
                            </div>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
        
                                                </div>
                                              
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                <?php else: ?>
                                                <h6 class="text-center"> <?php echo e(__('web.noads')); ?>  </h6>
                                                <?php endif; ?>
                                            </div>
                                        </section>
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab4" role="tabpanel" aria-labelledby="v-pills-tab4-tab">
                                    <div class="fav_tab">
                                       
                                        <section class="products">
                                            <div class="prod_cont">
                                                <?php if(count($fav)>0): ?>
                                                <?php $__currentLoopData = $fav; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <div class="prod_items">
                                                    <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                        <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                        <div class="fav-btn">
                                                            <input data-id="<?php echo e($row->id); ?>" action-id="<?php echo e(url(getCurrentLocale().'/togglefav')); ?>" onclick="favtoggle(this)" <?php if(favorited($row->id)): ?> checked <?php endif; ?> type="checkbox">
                                                        </div>
                                                    </a>
                                                    <div class="another_btns">
                                                        
                                                        
                                                    </div>
                                                    <div class="info">
                                                        <h6>
                                                            <?php echo e(productname($row->id)); ?>

                                                        </h6>
                                                        <p>
                                                            <i class="fas fa-map-marker-alt"></i>  <?php echo e(cityname($row->city_id)); ?>

                                                        </p>
                                                        <div class="by d-flex">
                                                            <div class="imgg">
                                                                <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                            </div>
                                                            <span>
                                                                        <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?>

                                                                    </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                <?php else: ?>
                                                <h6 class="text-center"> <?php echo e(__('web.noadsinfav')); ?> </h6>
                                                <?php endif; ?>
                                            </div>
                                        </section>
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab5" role="tabpanel" aria-labelledby="v-pills-tab5-tab">
                                    <div class="rate_tab">
                                        <div class="row">
                                            
                                        </div>
                                        <?php if(count($comments)>0): ?>
                                        <?php $__currentLoopData = $comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="items_rate">
                                            <div class="img">
                                                <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                            </div>
                                            <div class="info">
                                                <h6><?php echo e($row->user->name); ?>

                                                    <span class="star_rate">
                                                        <?php for($i=0;$i< rating($row->user_id,\Auth::user()->id);$i++): ?>
                                                            <i class="fas fa-star main_color"></i>
                                                            <?php endfor; ?>
                                                            <?php for($i=0;$i< (5-rating($row->user_id,\Auth::user()->id));$i++): ?>
                                                            <i class="fas fa-star"></i>
                                                            <?php endfor; ?>
                                                           
                                                        </span>
                                                </h6>
                                                <p><?php echo e($row->comment); ?></p>
                                                
                                            </div>
                                            <div class="time">
                                                <span><?php echo e(date('g:i a',strtotime($row->created_at))); ?></span>
                                            </div>
                                        </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php else: ?>
                                        <h6 class="text-center"> <?php echo e(__('web.nocomments')); ?>  </h6>
                                        <?php endif; ?>
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab6" role="tabpanel" aria-labelledby="v-pills-tab6-tab">
                                    <div class="noti_tab" id="notifis">
                                        
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab10" role="tabpanel" aria-labelledby="v-pills-tab10-tab">
                                    <div class="mazad_tab">
                                        <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                            <li class="nav-item">
                                                <a class="active" id="pills-mazad4-tab" data-toggle="pill" href="#pills-mazad4" role="tab" aria-controls="pills-mazad4" aria-selected="true">
                                                     <?php echo e(__('web.acceptauction')); ?> 
                                                </a>
                                            </li>
                                            <li class="nav-item">
                                                <a id="pills-mazad5-tab" data-toggle="pill" href="#pills-mazad5" role="tab" aria-controls="pills-mazad5" aria-selected="false">
                                                    <?php echo e(__('web.refuseauction')); ?> 
                                                </a>
                                            </li>
                                            <li class="nav-item">
                                                <a id="pills-mazad7-tab" data-toggle="pill" href="#pills-mazad7" role="tab" aria-controls="pills-mazad7" aria-selected="false">
                                                    <?php echo e(__('web.holdauction')); ?> 
                                                </a>
                                            </li>
                                             <li class="nav-item">
                                                <a id="pills-mazad6-tab" data-toggle="pill" href="#pills-mazad6" role="tab" aria-controls="pills-mazad6" aria-selected="false">
                                                    <?php echo e(__('web.endauction')); ?> 
                                                </a>
                                            </li>
                                        </ul>
                                        <div class="tab-content" id="pills-tabContent">
                                            <div class="tab-pane fade show active" id="pills-mazad4" role="tabpanel" aria-labelledby="pills-mazad4-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                       <?php $__currentLoopData = $accept; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            <div class="another_btns" style="margin-right:-2pc">
                                                                
                                                               <!-- <a onclick="deleteauction(this)" data-id="<?php echo e($row->id); ?>" class="bg-danger text-light">
                                                                    <i class="far fa-trash-alt"></i>
                                                                </a>-->
                                                            </div>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad5" role="tabpanel" aria-labelledby="pills-mazad5-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                           <?php $__currentLoopData = $refuse; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                                <?php if(!is_null($row->deleted_at)): ?>
                                                                <a href="<?php echo e(url(getCurrentLocale().'/resend/'.$row->id)); ?>" class="butn main_bg mt-3"><span>أعاده الطلب </span></a>
                                                                <?php endif; ?>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad6" role="tabpanel" aria-labelledby="pills-mazad6-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                           <?php $__currentLoopData = $end; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                                <?php if(!is_null($row->deleted_at)): ?>
                                                                <a href="<?php echo e(url(getCurrentLocale().'/resend/'.$row->id)); ?>" class="butn main_bg mt-3"><span>أعاده الطلب </span></a>
                                                                <?php endif; ?>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad3" role="tabpanel" aria-labelledby="pills-mazad3-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                        
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade show active" id="pills-mazad7" role="tabpanel" aria-labelledby="pills-mazad7-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                       <?php $__currentLoopData = $hold; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            <div class="another_btns" style="margin-right:-2pc">
                                                                
                                                                <a onclick="deleteauction(this)" data-id="<?php echo e($row->id); ?>" class="bg-danger text-light">
                                                                    <i class="far fa-trash-alt"></i>
                                                                </a>
                                                            </div>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                        </div>
                                        
                                        
                                        
                                        <div class="tab-content" id="pills-tabContent">
                                            <div class="tab-pane fade" id="pills-mazad5" role="tabpanel" aria-labelledby="pills-mazad5-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                           <?php $__currentLoopData = $refuse; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                                <?php if(!is_null($row->deleted_at)): ?>
                                                                <a href="<?php echo e(url(getCurrentLocale().'/resend/'.$row->id)); ?>" class="butn main_bg mt-3"><span>أعاده الطلب </span></a>
                                                                <?php endif; ?>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad6" role="tabpanel" aria-labelledby="pills-mazad6-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                           <?php $__currentLoopData = $end; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                                <?php if(!is_null($row->deleted_at)): ?>
                                                                <a href="<?php echo e(url(getCurrentLocale().'/resend/'.$row->id)); ?>" class="butn main_bg mt-3"><span>أعاده الطلب </span></a>
                                                                <?php endif; ?>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad3" role="tabpanel" aria-labelledby="pills-mazad3-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                        
                                                    </div>
                                                </section>
                                            </div>
                                        </div>
                                        
                                        
                                        
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="v-pills-tab9" role="tabpanel" aria-labelledby="v-pills-tab9-tab">
                                    <div class="mazad_tab">
                                        <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                            <li class="nav-item">
                                                <a class="active" id="pills-mazad9-tab" data-toggle="pill" href="#pills-mazad9" role="tab" aria-controls="pills-mazad9" aria-selected="true">
                                                     <?php echo e(__('web.subauction')); ?>

                                                </a>
                                            </li>
                                            <li class="nav-item">
                                                <a id="pills-mazad8-tab" data-toggle="pill" href="#pills-mazad8" role="tab" aria-controls="pills-mazad8" aria-selected="false">
                                                    <?php echo e(__('web.winauction')); ?> 
                                                </a>
                                            </li>
                                        </ul>
                                        <div class="tab-content" id="pills-tabContent">
                                            <div class="tab-pane fade show active" id="pills-mazad9" role="tabpanel" aria-labelledby="pills-mazad9-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                        <?php $__currentLoopData = $subs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            
                                                            <div class="info">
                                                                <h1>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h1>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad8" role="tabpanel" aria-labelledby="pills-mazad8-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                        <?php $__currentLoopData = $win; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <div class="prod_items">
                                                            <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                                                                <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                                                
                                                            </a>
                                                            
                                                            <div class="info">
                                                                <h6>
                                                                   <?php echo e(productname($row->id)); ?>

                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : <?php echo e($row->user->name); ?> 
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </div>
                                                </section>
                                            </div>
                                            <div class="tab-pane fade" id="pills-mazad3" role="tabpanel" aria-labelledby="pills-mazad3-tab">
                                                <section class="products">
                                                    <div class="prod_cont list">
                                                        <div class="prod_items">
                                                            <a href="#" class="img">
                                                                <img src="<?php echo e(url('')); ?>/assets/web/images/prod/1.png" alt="">
                                                                <div class="fav-btn">
                                                                    <input type="checkbox">
                                                                </div>
                                                            </a>
                                                            <div class="another_btns">
                                                                <a href="#" class="bg-warning">
                                                                    <i class="fas fa-pencil-alt"></i>
                                                                </a>
                                                                <a href="#" class="bg-danger text-light">
                                                                    <i class="far fa-trash-alt"></i>
                                                                </a>
                                                            </div>
                                                            <div class="info">
                                                                <h6>
                                                                    سيارة سوداء
                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> المدينة المنورة
                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : محمد احمد
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="prod_items">
                                                            <a href="#" class="img">
                                                                <img src="<?php echo e(url('')); ?>/assets/web/images/prod/1.png" alt="">
                                                                <div class="fav-btn">
                                                                    <input type="checkbox">
                                                                </div>
                                                            </a>
                                                            <div class="another_btns">
                                                                <a href="#" class="bg-warning">
                                                                    <i class="fas fa-pencil-alt"></i>
                                                                </a>
                                                                <a href="#" class="bg-danger text-light">
                                                                    <i class="far fa-trash-alt"></i>
                                                                </a>
                                                            </div>
                                                            <div class="info">
                                                                <h6>
                                                                    سيارة سوداء
                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> المدينة المنورة
                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : محمد احمد
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="prod_items">
                                                            <a href="#" class="img">
                                                                <img src="<?php echo e(url('')); ?>/assets/web/images/prod/1.png" alt="">
                                                                <div class="fav-btn">
                                                                    <input type="checkbox">
                                                                </div>
                                                            </a>
                                                            <div class="another_btns">
                                                                <a href="#" class="bg-warning">
                                                                    <i class="fas fa-pencil-alt"></i>
                                                                </a>
                                                                <a href="#" class="bg-danger text-light">
                                                                    <i class="far fa-trash-alt"></i>
                                                                </a>
                                                            </div>
                                                            <div class="info">
                                                                <h6>
                                                                    سيارة سوداء
                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> المدينة المنورة
                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : محمد احمد
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="prod_items">
                                                            <a href="#" class="img">
                                                                <img src="<?php echo e(url('')); ?>/assets/web/images/prod/1.png" alt="">
                                                                <div class="fav-btn">
                                                                    <input type="checkbox">
                                                                </div>
                                                            </a>
                                                            <div class="another_btns">
                                                                <a href="#" class="bg-warning">
                                                                    <i class="fas fa-pencil-alt"></i>
                                                                </a>
                                                                <a href="#" class="bg-danger text-light">
                                                                    <i class="far fa-trash-alt"></i>
                                                                </a>
                                                            </div>
                                                            <div class="info">
                                                                <h6>
                                                                    سيارة سوداء
                                                                </h6>
                                                                <p>
                                                                    <i class="fas fa-map-marker-alt"></i> المدينة المنورة
                                                                </p>
                                                                <div class="by d-flex">
                                                                    <div class="imgg">
                                                                        <img src="<?php echo e(url('')); ?>/assets/web/images/user.png" alt="">
                                                                    </div>
                                                                    <span>
                                                                                <?php echo e(__('web.by')); ?> : محمد احمد
                                                                            </span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </section>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Modal pay -->
        <div class="modal modal_pay fade" id="modal_pay1" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-dialog-centered modal-xl">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title" id="exampleModalLabel"><?php echo e(__('web.pay')); ?></h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                    </div>
                     <form onsubmit="paypackage(this)" data-id="2" action="<?php echo e(url(getCurrentLocale().'/walletpay')); ?>" method="post">
                                            <?php echo csrf_field(); ?>
                           
                    <div class="modal-body">
                             <div class="pay-selection">
                                 <?php $__currentLoopData = $ways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                      <label>
                                <input type="radio" name="pay_type" value="<?php echo e($row['PaymentMethodId']); ?>" class="time-input-element" />
                                  <div class="panel panel-default time-input">
                                    <div class="panel-heading">
                                        <img src="<?php echo e($row['ImageUrl']); ?>">
                                    </div>
                                  </div>
                            </label>
                                       
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </div>
                        <!--   <div class="credit_info">-->
                        <!--        <div class="credit-card">-->
                        <!--            <div class="checkout">-->
                        <!--                    <div id="successpay2" style="display : none" class="alert alert-success">-->

                        <!--</div>-->
                        <!--<div id="errorpay2" style="display : none" class="alert alert-danger">-->

                        <!--</div>-->

                                       
                        <!--                 <div class="row">-->
                        <!--                    <div class="col-lg-6">-->
                        <!--                        <div class="form-group">-->
                        <!--                            <label> <?php echo e(__('web.credit')); ?>  </label>-->
                        <!--                            <input type="text"  name="credit" placeholder="<?php echo e(__('web.credit')); ?> ">-->
                        <!--                        </div>-->
                        <!--                    </div>-->
                        <!--                    <div class="col-lg-6">-->
                        <!--                        <div class="form-group">-->
                        <!--                            <label> <?php echo e(__('web.cvv')); ?>  </label>-->
                        <!--                            <input type="text"  name="cvv" placeholder="<?php echo e(__('web.cvv')); ?>  ">-->
                        <!--                        </div>-->
                        <!--                    </div>-->
                        <!--                      <div class="col-lg-6">-->
                        <!--                        <div class="form-group">-->
                        <!--                            <label> <?php echo e(__('web.name')); ?>  </label>-->
                        <!--                            <input type="text" name="fullname" placeholder="<?php echo e(__('web.name')); ?>  ">-->
                        <!--                        </div>-->
                        <!--                    </div>-->
                        <!--                    <div class="col-lg-6">-->
                        <!--                        <div class="form-group">-->
                        <!--                            <label> <?php echo e(__('web.amout')); ?>   </label>-->
                        <!--                            <input type="number"  name="amount" placeholder="<?php echo e(__('web.amount')); ?>  ">-->
                        <!--                        </div>-->
                        <!--                    </div>-->
                        <!--                    <div class="col-lg-6">-->
                        <!--                        <div class="form-group">-->
                        <!--                            <label> <?php echo e(__('web.month')); ?>   </label>-->
                        <!--                            <input type="number"  name="month" placeholder="<?php echo e(__('web.month')); ?>  ">-->
                        <!--                        </div>-->
                        <!--                    </div>-->
                        <!--                    <div class="col-lg-6">-->
                        <!--                        <div class="form-group">-->
                        <!--                            <label> <?php echo e(__('web.year')); ?>  </label>-->
                        <!--                            <input type="number"  name="year" placeholder="<?php echo e(__('web.year')); ?>  ">-->
                        <!--                        </div>-->
                        <!--                    </div>-->
                        <!--                </div>-->
                        <!--            </div>-->
                        <!--        </div>-->
                        <!--    </div>-->
                        <div class="credit_info">
                       
                        <!------------- new ------------>
                        <div class="pay_check">
                                    <div class="copon">
                                         <div id="successpay2" style="display : none" class="alert alert-success">

                        </div>
                        <div id="errorpay2" style="display : none" class="alert alert-danger">

                        </div>

                                        <!-- <h5>تفاصيل الكارت </h5> -->
                                        <div class="row">
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label> <?php echo e(__('web.credit')); ?>  </label>
                                                    <input type="text"  name="credit" placeholder="<?php echo e(__('web.credit')); ?> ">
                                                </div>
                                            </div>
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label> <?php echo e(__('web.cvv')); ?>  </label>
                                                    <input type="text"  name="cvv" placeholder="<?php echo e(__('web.cvv')); ?>  ">
                                                </div>
                                            </div>
                                              <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label> <?php echo e(__('web.name')); ?>  </label>
                                                    <input type="text" name="fullname" placeholder="<?php echo e(__('web.name')); ?>  ">
                                                </div>
                                            </div>
                                             <div class="col-lg-6">
                                              <div class="form-group">
                                               <label> <?php echo e(__('web.amout')); ?>   </label>
                                               <input type="number"  name="amount" placeholder="<?php echo e(__('web.amount')); ?>  ">
                                           </div>
                                         </div>
                                           
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label> <?php echo e(__('web.month')); ?>   </label>
                                                    <input type="number"  name="month" placeholder=" <?php echo e(__('web.month')); ?> ">
                                                </div>
                                            </div>
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label> <?php echo e(__('web.year')); ?>  </label>
                                                    <input type="number"  name="year" placeholder=" <?php echo e(__('web.year')); ?> ">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                      
                        </div>
                        <div class="modal-footer justify-content-center">
                            <button type="submit" class="butn main_bg"><span><?php echo e(__('web.pay')); ?> </span> </button>
                        </div>
                        </form>
                    </div>
                   
                </div>
            </div>
        </div>

        <!-- -------------- inner_subscribe --------------- -->
        <section class="inner_subscribe">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="r_side">
                            <div class="icons">
                                <i class="fas fa-location-arrow"></i>
                            </div>
                            <div class="info">
                                <h6><?php echo e(__('web.sub_mail')); ?></h6>
                                <p><?php echo e(__('web.sub_mail_desc')); ?>ا </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="l_side">
                            <form onsubmit="subscribedata(this)" method="post" action="<?php echo e(url(getCurrentLocale().'/subcribe')); ?>" class="form-row">
                                <?php echo csrf_field(); ?>
                                <div class="form-group col-12">
                                    <input type="email" name="email"  placeholder="<?php echo e(__('web.email')); ?>">
                                    <button><?php echo e(__('web.subscribe')); ?></button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
                <div class="modal fade modal_login" id="mailsuccess" 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-body text-center">
                        <div class="icon">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/checked.svg" alt="">
                        </div>
                        <h4><?php echo e(__('web.success')); ?> </h4>
                    </div>
                </div>
            </div>
        </div>
        
         <div class="modal fade modal_login" id="mailfailed" 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-body text-center">
                        <div class="icon">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/alert.svg" alt="">
                        </div>
                        <div id="mailerrors" class="alert alert-danger">
                             
                        </div>
                       
                        
                    </div>
                </div>
            </div>
        </div>



  <div class="modal fade modal_login" id="savepicsuccess" 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-body text-center">
                        <div class="icon">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/checked.svg" alt="">
                        </div>
                        <h4><?php echo e(__('web.success')); ?> </h4>
                    </div>
                </div>
            </div>
        </div>
        
         <div class="modal fade modal_login" id="savesuccess" 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-body text-center">
                        <div class="icon">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/checked.svg" alt="">
                        </div>
                        <h4><?php echo e(__('web.success')); ?> </h4>
                    </div>
                </div>
            </div>
        </div>
        
         <div class="modal fade modal_login" id="savefailed" 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-body text-center">
                        <div class="icon">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/alert.svg" alt="">
                        </div>
                        <div id="saveerrors" class="alert alert-danger">
                             
                        </div>
                       
                        
                    </div>
                </div>
            </div>
        </div>

        </section>
</main>

 <?php $__env->startPush('js'); ?>
 
  <!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-app.js"></script>

<!-- TODO: Add SDKs for Firebase products that you want to use
     https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-database.js"></script>

<script>
  // Your web app's Firebase configuration
  // For Firebase JS SDK v7.20.0 and later, measurementId is optional
 var firebaseConfig = {
    apiKey: "AIzaSyD8Ch76IgLgWYeBfVVu_bZVAfg7yaHGjo0",
    authDomain: "alhanger-22dac.firebaseapp.com",
    databaseURL: "https://alhanger-22dac-default-rtdb.firebaseio.com",
    projectId: "alhanger-22dac",
    storageBucket: "alhanger-22dac.appspot.com",
    messagingSenderId: "174330748086",
    appId: "1:174330748086:web:f5bf676633f133442d1a17",
    measurementId: "G-VZBX4HRHS3"
  };
  // Initialize Firebase
  firebase.initializeApp(firebaseConfig);
   var channel = 'notification'+<?php echo \Auth::user()->id; ?>

     
       firebase.database().ref(channel).ref.once("value").then(function(snapshot) {
        
     $('#spanval').text(snapshot.numChildren());
     
  });
 
      
     
  
  var channel = 'notification'+<?php echo \Auth::user()->id; ?>

      
 
   
  
   firebase.database().ref(channel).on("child_added",function (snapshot){
  
      
      
        $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/notification/'.\Auth::user()->id)); ?>,
          type: 'GET',              
          data: 'dataform', 
          success: function(data)
          {
      
      $('#notifis').html(data); 
}
 }); 
     
         
  }); 
   
  
 function messagemembers(elem){
     
     $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/checkchats/')); ?>,
          type : 'GET',
          data : 'nothing',
          dataType : 'json',
          success:function(data)
          {
              
              $.each( data, function( key, value ) {
                  
   let dbCon = firebase.database().ref(value);
 dbCon.orderByChild('date').limitToLast(1).once("value", function(snapshot) {
    $.each( snapshot.val(), function( keys, values ) {
    $('#messagebtw'+key).text(values.message);
  $('#datebtw'+key).text(values.date);
    });
  });

          })
          }
 })
 }
 
 function messagemember(elem){
                             document.getElementById('messages_scroll').innerHTML = ''; 
                             
                        var name = $(elem).attr('data-name');
                        $('#chatting').css('display','block');
                        $('#messages_scroll').css('display','block');
                        $('#messages').css('display','block');
                       
                        var reciever_id = $(elem).attr('data-id');
                         $('#name').html("<a href="+<?php echo json_encode(url(getCurrentLocale().'/profile/')); ?>+'/'+reciever_id+">"+name+"</a>");
                       
                        $('#reciever_id').val(reciever_id);
  
  var message = document.getElementById('message').value;
  var sender_id = document.getElementById('sender_id').value;
    

    
        $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/checkchat/')); ?>+'/'+sender_id+','+ reciever_id,
          type : 'GET',
          data : 'nothing',
          dataType : 'json',
          success:function(data)
          {
             
      let dbCon = firebase.database().ref(data);
dbCon.orderByChild('reciever').equalTo(sender_id).once("value", function(snapshot) {
  snapshot.forEach(function(child) {
    child.ref.update({
      seen: true
    });
  });
});
    
      firebase.database().ref(data).on("child_added",function (snapshot){
     var html = "";
     html +=' <div class="';
     if(snapshot.val().sender == sender_id){
      html +='r_msg">';
     }else{
          html +='l_msg">';
     }
     
     
     
     
     if(snapshot.val().sender != sender_id){
         if(snapshot.val().message == ''){
         
      
          html+='<img class="img_msg" src="';
           html+= snapshot.val().image_msg;
           html+='">';
      
     }
     else{
          html +='<div  class="msg_cnt text-right">';
      if(snapshot.val().image_msg != 'null'){
          html+='<img class="img_msg mb-2"  src="';
           html+= snapshot.val().image_msg;
           html+='">';
      }
     html+=snapshot.val().message;
     }
      html+='<img src="';
      html+= snapshot.val().image;
      html+='"alt="">';
     }
     else{
         if(snapshot.val().message == ''){
          html +='';
      if(snapshot.val().image_msg != 'null'){
          html+='<img class="img_msg mb-2" src="';
           html+= snapshot.val().image_msg;
           html+='">';
      }
     html+=snapshot.val().message;
     }
     else{
          html +='<div class="msg_cnt">';
      if(snapshot.val().image_msg != 'null'){
          html+='<div class="img"><img style="height:10pc;width:10pc" src="';
           html+= snapshot.val().image_msg;
           html+='"></div>';
      }
     html+=snapshot.val().message;
     }
     }
      html+='</div>';
     
      document.getElementById('messages_scroll').innerHTML += html; 
      
  });
   
  setTimeout(
  function() 
  {
    $('#messages_scroll').scrollTop($('#messages_scroll')[0].scrollHeight);
  }, 1000);
          }
        })
    


  
                        }
                        
                        function nl2br (str, is_xhtml) {
    if (typeof str === 'undefined' || str === null) {
        return '';
    }
    var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>';
    return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2');
}

  function sendmessage() {
    event.preventDefault();
    var message = document.getElementById('message').value;
    var sender_id = document.getElementById('sender_id').value;
    var reciever_id = document.getElementById('reciever_id').value;
    var image = document.getElementById('image').value;
    
    
       let dataform = new FormData( $('#sendmsg')[0]);
        
     
     if( (! document.getElementById("image").files.length == 0) || (message != '')){
    if(! document.getElementById("image").files.length == 0 ){
    $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/uploadimage')); ?>,
          type : 'POST',   
          data: dataform,
          dataType : 'json',
          contentType: false, 
          processData: false, 
          success:function(data)
          {
              
              image = data;
               $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/checkchat/')); ?>+'/'+sender_id+','+ reciever_id,
          type : 'GET',
          data : 'nothing',
          dataType : 'json',
          success:function(data)
          {
    
     let dbCon = firebase.database().ref(data);
dbCon.orderByChild('reciever').equalTo(sender_id).once("value", function(snapshot) {
  snapshot.forEach(function(child) {
    child.ref.update({
      seen: true
    });
  });
});

    firebase.database().ref(data).push().set({
      "sender":sender_id,
      "reciever":reciever_id,
      "message":nl2br(message),
      "type":'TXT',
      "image_msg":image,
      "image":<?php echo json_encode(asset(\Auth::user()->photo)); ?>,
      "date":<?php echo json_encode(date("Y-m-d g:i a")); ?>,
      "seen":"false",
    }); 
     document.getElementById('message').value = '';
    $('#messages_scroll').scrollTop($('#messages_scroll')[0].scrollHeight);
          }
        })
              
          }
    });
}
else{
    image = 'null';
     $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/checkchat/')); ?>+'/'+sender_id+','+ reciever_id,
          type : 'GET',
          data : 'nothing',
          dataType : 'json',
          success:function(data)
          {
    
     let dbCon = firebase.database().ref(data);
dbCon.orderByChild('reciever').equalTo(sender_id).once("value", function(snapshot) {
  snapshot.forEach(function(child) {
    child.ref.update({
      seen: true
    });
  });
});

    firebase.database().ref(data).push().set({
      "sender":sender_id,
      "reciever":reciever_id,
      "message":nl2br(message),
      "type":'TXT',
      "image_msg":image,
      "image":<?php echo json_encode(asset(\Auth::user()->photo)); ?>,
      "date":<?php echo json_encode(date("Y-m-d g:i a")); ?>,
      "seen":"false",
    }); 
     document.getElementById('message').value = '';
    $('#messages_scroll').scrollTop($('#messages_scroll')[0].scrollHeight);
          }
        })
}
     }
           
       
       $('#image').val('');
   
   
    return false;
  }
  
                                            </script>
<script>

function picreplace(elem){
     let action = $('#formpic').attr('action');
       
       let urls = action;
       
       let dataform = new FormData( $('#formpic')[0]);
        
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          contentType: false, 
          processData: false, 
          success:function(data)
          {
            
            $("#savepicsuccess").modal('show');
             setTimeout(
  function()
  {
      location.reload();
  }, 1000);
  
               }
         
        })


}
function deletead(elem){
      setTimeout(
  function()
  {
      $('.modal-backdrop').removeClass();
  }, 300);
    
}
function togglefav(elem){
               
              let data = $(elem).attr('data-id');
            let action = $(elem).attr('action-id');
            let urls = action+'/'+data;

            $.ajax({
          url : urls,
          type : 'GET',
          data : 'nothing',
          success:function(data)
          {  
                  
             
          }

        })


        }

function remtoggle(elem){
               
              let data = $(elem).attr('data-id');
            let action = $(elem).attr('action-id');
            let urls = action+'/'+data;

            $.ajax({
          url : urls,
          type : 'GET',
          data : 'nothing',
          success:function(data)
          {
              $(elem).closest('.prod_items').fadeOut();
              
                  
             
          }

        })


        }
        

function favtoggle(elem){
               
              let data = $(elem).attr('data-id');
            let action = $(elem).attr('action-id');
            let urls = action+'/'+data;

            $.ajax({
          url : urls,
          type : 'GET',
          data : 'nothing',
          success:function(data)
          {
              $(elem).closest('.prod_items').fadeOut();
              
                  
             
          }

        })


        }
        
        function savechange(elem){
            event.preventDefault();
              let action = $(elem).attr('action');
       
       let urls = action;
       
       let dataform = new FormData( $(elem)[0]);
        
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          contentType: false, 
          processData: false, 
          success:function(data)
          {
            
            $("#savesuccess").modal('show');
            $('#informations').html(data);
            setTimeout(
  function()
  {
      location.reload();
  }, 1000);
               }
          ,error: function (data) {
              
              $('#saveerrors').html('');
   $.each(data.responseJSON.errors, function(key,value) {
      
     $('#saveerrors').append('<h4 >'+value+'</h4>');
     
 }); 
 
  $("#savefailed").modal('show');
  
}
        })

           
        }
    function subscribedata(elem) {
    event.preventDefault();
   
         let action = $(elem).attr('action');
       
       let urls = action;
       
       let dataform = new FormData( $(elem)[0]);
        
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          contentType: false, 
          processData: false, 
          success:function(data)
          {
            
            $("#mailsuccess").modal('show');
               }
          ,error: function (data) {
              
              $('#mailerrors').html('');
   $.each(data.responseJSON.errors, function(key,value) {
      
     $('#mailerrors').append('<h4 >'+value+'</h4>');
     
 }); 
 
  $("#mailfailed").modal('show');
 
}
        })


}

function paypackage(elem){
   event.preventDefault();
         let action = $(elem).attr('action');
       
       let urls = action;
       let target = $(elem).attr('data-id');
       let dataform = new FormData( $(elem)[0]);
        
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          contentType: false, 
          processData: false, 
          success:function(data)
          {
            
            $('#errorpay'+target).css("display", "none");
              $('#successpay'+target).css("display", "block");
            $('#successpay'+target).html(<?php echo json_encode(__('web.success')); ?>);

           setTimeout(
  function()
  {
      window.location.replace("<?php echo e(url(getCurrentLocale().'/profile/')); ?>");
  }, 1000);
  
               }
          ,error: function (data) {
              
               $('#successpay'+target).css("display", "none");
              $('#errorpay'+target).html('');
    $('#errorpay'+target).css("display", "block");

   $.each(data.responseJSON.errors, function(key,value) {

     $('#errorpay'+target).append('<div class="col-12">'+value+'</div');


 });

}
        })

}
</script>

<!----------- new ----------->
<script>
    $(".show_pass").click(function() {
        $(this).toggleClass("main_color");
        input = $(this).parent().find("input");
        if (input.attr("type") == "password") {
            input.attr("type", "text");
        } else {
            input.attr("type", "password");
        }
    });
</script>
<script>
    function paiding(elem){
        let data =$(elem).attr('data-id');
        let datavalue = $(elem).val();
        if(datavalue == 'paid'){
            $('#paiding'+data).css('display','block');
        }
        else{
            $('#paiding'+data).css('display','none');
            $('#deleting'+data).css('display','block');
        }
    }
    function deleting(elem){
        let data =$(elem).attr('data-id');
         let paids = $("input[name='paids']:checked").val(); 
        let paid = $(elem).val();
       
        if(paids =='paid' && paid =='hanqr'){
            $('#deleting'+data).css('display','none');
        
        }
        else{
            $('#deleting'+data).css('display','block');
        }
        
    }
    
    function removenotifi(elem){
       
        let valdate = $(elem).attr('data-id');
         $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/removenotification')); ?>+'/'+valdate,
          type: 'GET',              
          data: 'dataform', 
          dataType : 'json',
          success: function(data)
          {
        $(elem).closest('.items').fadeOut();
    
}
 }); 
    }
    
    
     
    function deleteauction(elem){
       
        let valdate = $(elem).attr('data-id');
         $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/removeAuction')); ?>+'/'+valdate,
          type: 'GET',              
          data: 'dataform', 
          dataType : 'json',
          success: function(data)
          {
        $(elem).closest('.prod_items').fadeOut();
    
}
 }); 
    }
function shownotifi(elem){
    
    $.ajax({
          url : <?php echo json_encode(url(getCurrentLocale().'/seennotification')); ?>,
          type: 'GET',              
          data: 'dataform', 
          dataType : 'json',
          success: function(data)
          {
        $('#numnotifi').css('display','none');
    
}
 }); 
}
</script>

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


<?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/hanqr/resources/views/web/pages/auth/profile.blade.php ENDPATH**/ ?>