<?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>
    <!-- -------------- profile_pg --------------- -->
    <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>
                    <form method="post" onsubmit="ratinguser(this)" action="<?php echo e(url(getCurrentLocale().'/rating')); ?>">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>">
                    <div class="modal-body">
                         <div id="successrate" style="display : none" class="alert alert-success">
                           
                        </div>
                        <div id="errorrate" style="display : none" class="alert alert-danger">
                           
                        </div>
                            <div class="form-group">
                                <textarea class="form-control" name="comment" rows="6" placeholder="<?php echo e(__('web.comment')); ?>"></textarea>
                            </div>
                            <div class="form-group">
                                <div class="stars">
                                    <input type="radio" name="rate" value="5">
                                    <input type="radio" name="rate" value="4">
                                    <input type="radio" name="rate" value="3">
                                    <input type="radio" name="rate" value="2">
                                    <input type="radio" name="rate" value="1">
                                    
                                </div>
                            </div>
                        
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="butn main_bg"><span><?php echo e(__('web.save')); ?></span></button>
                    </div>
                    </form>
                </div>
            </div>
        </div>
        <!-- -------------- profile_pg --------------- -->
        <section class="section-padding">
            <div class="container">
                <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="">
                                    
                                    
                                     <?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 href="<?php echo e(url(getCurrentLocale().'/sharechat/'.$user->id)); ?>"><i class="far fa-comment-dots"></i></a> <?php echo e($user->name); ?> </h4>
                                    <div id="edit">
                                    <div class="edit" >
                                        <?php if(\Auth::user()): ?>
                                        <?php if(!followed($user->id)): ?>
                                        <a onclick="togglefollow(this)" data-id="<?php echo e($user->id); ?>" action-id="<?php echo e(url(getCurrentLocale().'/togglefollow')); ?>" class="text-light bg-dark"><i class="fas fa-user-plus"></i></a>
                                        <?php else: ?>
                                        <a onclick="togglefollow(this)" data-id="<?php echo e($user->id); ?>"  action-id="<?php echo e(url(getCurrentLocale().'/togglefollow')); ?>" class="text-light bg-danger"><i class="fas fa-user"></i></a>
                                        <?php endif; ?>
                                        <?php endif; ?>
                                    </div>
                                    <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>
                                <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>
                            </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-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>
                                    <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>
                                   
                                </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-tab3" role="tabpanel" aria-labelledby="v-pills-tab3-tab">
                                    <div class="fav_tab">
                                        
                                        <section class="products">
                                            <div class="prod_cont" id="ads">
                                                <?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="">
                                                        <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(\Auth::user()): ?> <?php if(favorited($row->id)): ?> checked <?php endif; ?> <?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.noads')); ?>  </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">
                                        <?php if(\Auth::user()): ?>
                                        <div class="row">
                                            <div class="col-md-6">

                                            </div>
                                            <div class="col-md-6 text-right">
                                                <!-- Button trigger modal اضف تعليق  -->
                                                <button type="button" class="butn main_bg" data-toggle="modal" data-target="#exampleModalCenter2">
                                                    <span><?php echo e(__('web.addcomment')); ?>  </span>
                                                </button>
                                            </div>
                                        </div>
                                        <?php endif; ?>
                                        <div id="comments">
                                            <?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,$user->id);$i++): ?>
                                                            <i class="fas fa-star main_color"></i>
                                                            <?php endfor; ?>
                                                            <?php for($i=0;$i< (5-rating($row->user_id,$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>
                                <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">
                                                     مزادات قادمه انت مشترك بها 
                                                </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">
                                                    مزادات فزت بها 
                                                </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">
                                                        <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 class="tab-pane fade" id="pills-mazad5" role="tabpanel" aria-labelledby="pills-mazad5-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>
                                                                <a href="#" class="butn main_bg mt-3"><span>أعاده الطلب </span></a>
                                                            </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 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>

        <!-- -------------- 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>
        </section>





    </main>
      <?php if(\Auth::user()): ?>
    <?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);
  </script>
  
<script>
    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 ratinguser(elem){
                event.preventDefault();
       var action = $(elem).attr('action');
       var urls = action;
        
       var dataform = new FormData( $(elem)[0]);
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          contentType: false, 
          processData: false, 
          success:function(data)
          {
         
              $('#errorrate').css("display", "none");
              $('#successrate').css("display", "block");
            $('#successrate').html(<?php echo json_encode(__('web.success')); ?>);
         
            setTimeout(
  function() 
  {
      $(elem).closest('.modal').modal('hide');
  }, 1000);
  $(elem).closest('form').find("textarea").val("");
  setTimeout(
  function() 
  {
      $('#comments').html(data);
  }, 1000);
            
            
          }
          ,error: function (data) {
           
              $('#successrate').css("display", "none");
              $('#errorrate').html('');
    $('#errorrate').css("display", "block");
   
   $.each(data.responseJSON.errors, function(key,value) {
       
     $('#errorrate').append('<div class="col-12">'+value+'</div');
     
     
 }); 
 
}
        })
        }
        
        function togglefollow(elem){
               event.preventDefault();
              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)
          {
              
              $('#edit').html(data);
                       var channel_auc = 'notification'+<?php echo \Auth::user()->id; ?>

            var message_auc = {
      
      
      "user_id":<?php echo json_encode(\Auth::user()->id); ?>,
      "product_id":<?php echo $user->id; ?>,
      "date":<?php echo json_encode(date("Y-m-d")); ?>,
      "time":<?php echo json_encode(date("g:i a")); ?>,
    }
       
      var snapshot_auc=  firebase.database().ref(channel_auc).push().set(message_auc).then(function(snapshot_auc) {
  if (snapshot_auc && snapshot_auc.exists()) {
    //console.log(snapshot.val());
  }
  else {
    console.log("No data available");
  }
              });
             
          }

        })


        }
        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)
          {
              
              
                  
             
          }

        })


        }
     

</script>
<?php $__env->stopPush(); ?>
<?php endif; ?>
    
    <?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/showprofile.blade.php ENDPATH**/ ?>