File manager - Edit - /home/u300416816/domains/recipeseasy.online/public_html/storage/framework/views/f20c61c0a188d40d30c79ed31caefd54.php
Back
<?php $__env->startSection('content'); ?> <!-- Hero Section --> <div id="featuredCarousel" class="carousel slide" data-bs-ride="carousel"> <div class="carousel-indicators"> <?php $__currentLoopData = $featuredGames; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $featured): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <button type="button" data-bs-target="#featuredCarousel" data-bs-slide-to="<?php echo e($index); ?>" class="<?php echo e($index === 0 ? 'active' : ''); ?>" aria-current="<?php echo e($index === 0 ? 'true' : 'false'); ?>" aria-label="<?php echo e($featured->name); ?>"> </button> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="carousel-inner"> <?php $__currentLoopData = $featuredGames; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $featured): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="carousel-item <?php echo e($index === 0 ? 'active' : ''); ?>"> <img src="<?php echo e(asset('images/games/banner/' . $featured->banner)); ?>" class="d-block w-100 carousel-image" alt="<?php echo e($featured->name); ?>"> <div class="carousel-caption d-none d-md-block"> <h5><?php echo e($featured->name); ?></h5> <p><?php echo e($featured->description); ?></p> <a href="<?php echo e(route('game', $featured->slug)); ?>" class="btn btn-primary">Play Now</a> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <button class="carousel-control-prev" type="button" data-bs-target="#featuredCarousel" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </button> <button class="carousel-control-next" type="button" data-bs-target="#featuredCarousel" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </button> </div> <!-- Categories Section --> <div class="container-fluide my-5 px-0"> <h2>Categories</h2> <div class="slick-slider"> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="slider-item"> <div class="card text-center" style="background-color: transparent; border: none;"> <a style="text-decoration: none;" href="<?php echo e(route('category', $category->slug)); ?>"> <img src="<?php echo e(asset('images/categories/'.$category->image)); ?>" class="card-img-top rounded-circle mx-auto mt-3" alt="Action" style="width: 130px; height: 130px; object-fit: cover;"> <div class="card-body"> <h5 class="card-title"><?php echo e($category->name); ?></h5> </div> </a> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- Repeat the above block for each category --> </div> </div> <!-- Top Games Section --> <div class="container-fluid my-5"> <div class="row"> <div class="col-12 d-flex justify-content-between align-items-center"> <a href="<?php echo e(route('top.games')); ?>" style="text-decoration: none;"> <h2 class="m-0 text-center text-md-start w-100 w-md-auto">Top Games</h2> </a> <h5 class="d-none d-md-block m-0" style="white-space: nowrap;"> <a href="<?php echo e(route('top.games')); ?>" style="text-decoration: none;" class="text-white">View All</a> </h5> </div> <hr class="mb-4 mt-4"> </div> <div class="row"> <?php $__currentLoopData = $topGames; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $game): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-2 mt-1"> <div class="card"> <img src="<?php echo e(asset('images/games/icons/'.$game->image)); ?>" class="card-img-top game-image" alt="Game 1"> <div class="card-body"> <h5 class="card-title text-truncate"><?php echo e($game->name); ?></h5> <a href="<?php echo e(route('game', $game->slug)); ?>" class="btn btn-primary">Play Now</a> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- Add more top games here --> </div> </div> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $categoryGames = App\Models\Game::where('category_id', $category->id)->where('status', 1)->orderBy('id', 'desc')->limit(18)->get(); ?> <?php if($categoryGames->isNotEmpty()): ?> <div class="container-fluid my-5"> <div class="row"> <div class="col-12 d-flex justify-content-between align-items-center"> <a href="<?php echo e(route('category', $category->slug)); ?>" style="text-decoration: none;"> <h2 class="m-0 text-center text-md-start w-100 w-md-auto"><?php echo e($category->name); ?></h2> </a> <h5 class="d-none d-md-block m-0" style="white-space: nowrap;"> <a href="<?php echo e(route('category', $category->slug)); ?>" style="text-decoration: none;" class="text-white">View All</a> </h5> </div> <hr class="mb-4 mt-4"> </div> <div class="row"> <?php $__currentLoopData = $categoryGames; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $game): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-2 mt-1"> <div class="card"> <img src="<?php echo e(asset('images/games/icons/' . $game->image)); ?>" class="card-img-top game-image" alt="<?php echo e($game->name); ?>"> <div class="card-body"> <h5 class="card-title text-truncate"><?php echo e($game->name); ?></h5> <a href="<?php echo e(route('game', $game->slug)); ?>" class="btn btn-primary">Play Now</a> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('frontend.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Laravel Codester\gaming_zone\resources\views/frontend/home/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings