Viewing: e0a918f8ec6b1e20c903c0a589518ee2cab41005.php
<?php $__env->startSection('title', translate('Order_Details').' | '.$web_config['name']->value.' '.translate(' Ecommerce')); ?> <?php $__env->startSection('content'); ?> <!-- Main Content --> <main class="main-content d-flex flex-column gap-3 py-3 mb-sm-4"> <div class="container"> <div class="row g-3"> <!-- Sidebar--> <?php echo $__env->make('theme-views.partials._profile-aside', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="col-lg-9"> <div class="card h-100"> <div class="card-body p-lg-4"> <?php echo $__env->make('theme-views.partials._order-details-head',['order'=>$order], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="mt-4 card pb-xl-5"> <div class="card-body mb-xl-5"> <?php if($order->seller_is =='seller'): ?> <div class="d-flex justify-content-between align-items-center gap-4 flex-wrap"> <div class="media align-items-center gap-3"> <div class="avatar rounded store-avatar"> <img onerror="this.src='<?php echo e(theme_asset('assets/img/image-place-holder.png')); ?>'" src="<?php echo e(asset('storage/app/public/shop/'.$order->seller->shop->image)); ?>" class="dark-support rounded img-fit" alt=""> </div> <div class="media-body d-flex flex-column gap-2"> <h4><?php echo e($order->seller->shop->name); ?></h4> <div class="d-flex gap-2 align-items-center"> <div class="star-rating text-gold fs-12"> <?php for($inc=1;$inc<=5;$inc++): ?> <?php if($inc <= (int)$avg_rating): ?> <i class="bi bi-star-fill"></i> <?php elseif($avg_rating != 0 && $inc <= (int)$avg_rating + 1.1 && $avg_rating > ((int)$avg_rating)): ?> <i class="bi bi-star-half"></i> <?php else: ?> <i class="bi bi-star"></i> <?php endif; ?> <?php endfor; ?> </div> <span class="text-muted fw-semibold"><?php echo e(number_format($avg_rating,1)); ?></span> </div> <ul class="list-unstyled list-inline-dot fs-12"> <li><?php echo e($rating_count); ?> <?php echo e(translate('Reviews')); ?> </li> </ul> </div> </div> <?php if(isset($order->seller->shop) && $order->seller->shop['id'] != 0): ?> <div class="d-flex flex-column gap-3"> <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#contact_sellerModal"> <i class="bi bi-chat-square-fill"></i> <?php echo e(translate('Chat_with_seller')); ?> </button> </div> <?php endif; ?> </div> <!--MOdal --> <?php if(isset($order->seller->shop) && $order->seller->shop['id'] != 0): ?> <?php echo $__env->make('theme-views.layouts.partials.modal._chat-with-seller',['seller_id'=>$order->seller['id'],'shop_id'=>$order->seller->shop['id']], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> <!-- end MOdal --> <div class="d-flex gap-3 flex-wrap mt-4"> <div class="card flex-grow-1"> <div class="card-body grid-center"> <div class="text-center"> <h2 class="fs-28 text-primary fw-extra-bold mb-2"><?php echo e(round($rating_percentage)); ?>%</h2> <p class="text-muted"><?php echo e(translate('Positive_Review')); ?></p> </div> </div> </div> <div class="card flex-grow-1"> <div class="card-body grid-center"> <div class="text-center"> <h2 class="fs-28 text-primary fw-extra-bold mb-2"><?php echo e($product_count); ?></h2> <p class="text-muted"><?php echo e(translate('Products')); ?></p> </div> </div> </div> </div> <?php else: ?> <div class="d-flex justify-content-between align-items-center gap-4 flex-wrap"> <div class="media align-items-center gap-3"> <div class="avatar rounded store-avatar"> <img class="dark-support rounded img-fit" alt="" src="<?php echo e(asset("storage/app/public/company")); ?>/<?php echo e($web_config['fav_icon']->value); ?>" onerror="this.src='<?php echo e(theme_asset('assets/img/image-place-holder.png')); ?>'"> </div> <div class="media-body d-flex flex-column gap-2"> <h4> <?php echo e($web_config['name']->value); ?></h4> <div class="d-flex gap-2 align-items-center"> <div class="star-rating text-gold fs-12"> <?php for($inc=1;$inc<=5;$inc++): ?> <?php if($inc <= (int)$avg_rating): ?> <i class="bi bi-star-fill"></i> <?php elseif($avg_rating != 0 && $inc <= (int)$avg_rating + 1.1 && $avg_rating > ((int)$avg_rating)): ?> <i class="bi bi-star-half"></i> <?php else: ?> <i class="bi bi-star"></i> <?php endif; ?> <?php endfor; ?> </div> <span class="text-muted fw-semibold"><?php echo e(number_format($avg_rating,1)); ?></span> </div> <ul class="list-unstyled list-inline-dot fs-12"> <li><?php echo e($rating_count); ?> <?php echo e(translate('Reviews')); ?> </li> </ul> </div> </div> </div> <div class="d-flex gap-3 flex-wrap mt-4"> <div class="card flex-grow-1"> <div class="card-body grid-center"> <div class="text-center"> <h2 class="fs-28 text-primary fw-extra-bold mb-2"><?php echo e(round($rating_percentage)); ?>%</h2> <p class="text-muted"><?php echo e(translate('Positive_Review')); ?></p> </div> </div> </div> <div class="card flex-grow-1"> <div class="card-body grid-center"> <div class="text-center"> <h2 class="fs-28 text-primary fw-extra-bold mb-2"><?php echo e($product_count); ?></h2> <p class="text-muted"><?php echo e(translate('Products')); ?></p> </div> </div> </div> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> </main> <!-- End Main Content --> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script> $('#chat-form').on('submit', function (e) { e.preventDefault(); $.ajax({ type: "post", url: '<?php echo e(route('messages_store')); ?>', data: $('#chat-form').serialize(), success: function (respons) { toastr.success('<?php echo e(translate('send_successfully')); ?>', { CloseButton: true, ProgressBar: true }); $('#chat-form').trigger('reset'); } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('theme-views.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u728836105/domains/sakashappliances.com/public_html/resources/themes/theme_aster/theme-views/users-profile/account-order-details/_seller-info.blade.php ENDPATH**/ ?>
Return