File: /var/www/html/storage/framework/views/f605c9d30141b98aea693606054955d0.php
<div>
<section class="breadcumb-section pt-10">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcumb-style1">
<div class="breadcumb-list">
<a href="<?php echo e(route('welcome')); ?>">Home</a>
<a href="<?php echo e(route('services.page')); ?>">Services</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Breadcumb Sections -->
<section class="breadcumb-section pt-4">
<div class="cta-service-v2 cta-banner mx-auto maxw1700 pt120 pb120 bdrs16 position-relative overflow-hidden d-flex align-items-center mx20-lg px30-lg">
<img class="left-top-img wow zoomIn" src="<?php echo e(asset('images/vector-img/left-top.png')); ?>" alt="">
<img class="right-bottom-img wow zoomIn" src="<?php echo e(asset('images/vector-img/right-bottom.png')); ?>" alt="">
<img class="service-v1-vector bounce-y d-none d-lg-block rounded" src="<?php echo e($category['thumbnail']); ?>" alt="">
<div class="container pt-8 pb-8">
<div class="row wow fadeInUp">
<div class="col-xl-5">
<div class="position-relative">
<h2><?php echo e($category['name']); ?></h2>
<p class="text mb30"><?php echo e($category['description']); ?></p>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="row px-4 py-2">
<div class="col-lg-12">
<!--[if BLOCK]><![endif]--><?php if($gigs): ?>
<div class="row">
<!--[if BLOCK]><![endif]--><?php $__currentLoopData = $gigs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gig): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-6 col-md-3 mb-4">
<?php
// Get a random image from the gig's image URLs
$imageUrls = $gig['image_urls'];
$randomImageUrl = $imageUrls[array_rand($imageUrls)];
// Calculate the average star rating
$reviews = $gig['reviews'];
$totalReviews = count($reviews);
$sumRatings = array_sum(array_column($reviews, 'star_rating'));
$averageRating = $totalReviews > 0 ? $sumRatings / $totalReviews : 0;
?>
<div class="item">
<div class="listing-style1 bdrs16">
<div class="list-thumb">
<img style="width: 100%; height: 120px; object-fit: cover;" src="<?php echo e($randomImageUrl); ?>" alt="<?php echo e($gig['title']); ?>">
<a href="#" class="listing-fav fz12"><span class="far fa-heart"></span></a>
</div>
<div class="list-content">
<h5 class="list-title line-clamp2"><a href="<?php echo e(route('show.service.page', $gig['slug'])); ?>"><?php echo e($gig['title']); ?></a></h5>
<div class="review-meta d-flex align-items-center">
<!--[if BLOCK]><![endif]--><?php if($averageRating > 0): ?>
<i class="fas fa-star fz10 review-color me-1"></i>
<p class="mb-0 body-color fz14"><span class="dark-color me-1"><?php echo e(number_format($averageRating, 1)); ?></span></p>
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div>
<hr class="my-2">
<div class="list-meta d-flex justify-content-between align-items-center mt15">
<a class="d-flex" href="<?php echo e(route('show.service.page', $gig['slug'])); ?>">
<span class="position-relative mr10">
<img style="border: 2px solid #4CAF50; width: 40px; height: 40px; border-radius: 50%; object-fit: cover;" src="<?php echo e($gig['shop']['profile_photo_url']); ?>" alt="<?php echo e($gig['shop']['name']); ?>">
</span>
<span class="fz14 d-none d-lg-inline"><?php echo e($gig['shop']['name']); ?></span>
</a>
<div class="budget">
<p class="mb-0 body-color"><span class="fz17 fw500 dark-color ms-1"><?php echo e($gig['currency']); ?><?php echo e(number_format($gig['price'])); ?></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
</div>
<?php else: ?>
<div class="text-center text-lg-center mb-4">
<a class="ud-btn btn-light-thm bdrs90" href="<?php echo e(route('category.page')); ?>">No services found. Please check back</a>
</div>
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div>
</div>
</div><?php /**PATH /var/www/html/resources/views/livewire/pages/show-category-services.blade.php ENDPATH**/ ?>