Add MinIO configuration and update image URLs in MainController

This commit is contained in:
Frank John Begornia
2026-01-06 15:34:02 +08:00
parent 604b986e6e
commit 0a796ef4e4

View File

@@ -31,7 +31,7 @@ class MainController extends Controller {
foreach ($fetchData as $row) { foreach ($fetchData as $row) {
?> ?>
<div class="col-md-3 col-sm-6 col-xs-12 list-sport"> <div class="col-md-3 col-sm-6 col-xs-12 list-sport">
<a href="<?php echo url('sports') . "/" . $row->URL; ?>"><img src="<?php echo config('site_config.uploads') . 'sports-thumbnails/' . $row->Thumbnail; ?>" alt="" class="img img-responsive product-center" /></a> <a href="<?php echo url('sports') . "/" . $row->URL; ?>"><img src="<?php echo minio_url('uploads/images/sports-thumbnails/' . $row->Thumbnail); ?>" alt="" class="img img-responsive product-center" /></a>
<h3 class="text-center sports-title"><?php echo $row->SportsName ?></h3> <h3 class="text-center sports-title"><?php echo $row->SportsName ?></h3>
</div> </div>
<?php <?php