Files
crewsportswear/resources/views/sublayouts/sports-category.blade.php
Frank John Begornia 59fc920498 Fix Laravel 5.5 compatibility issues - view helpers, collections, and auth routes
- Replace {{ url() }} with {{ url('/') }} in all blade templates to fix object-to-string conversion errors
- Update TeamStoreModel::selectTeamStoreGroupByCartKey() to use first() instead of get() for Laravel 5.5 Collections
- Fix TeamStoreController to access object properties directly instead of using array syntax [0]
- Update authentication routes to use Laravel 5.5 method names (showLoginForm, login, logout)
- Update login/register links from /auth/login to /login throughout views (navbar, app, auth pages)
- Verify cart, login, and register pages working with HTTP 200 status
2026-01-14 21:44:34 +08:00

43 lines
1.2 KiB
PHP

@extends('layout.main')
@section('content')
<div class="row">
<div class="col-md-12">
<h2 style="font-size: 20px; font-weight: bold; ">CHOOSE PRODUCT</h2>
</div>
</div>
<div class="row">
<div class="col-md-12" >
<ul class="breadcrumb">
<li class=""><a href="{{ url('/') }}">Home</a></li>
<li class="active">
@if($array_sports && $array_sports->count() > 0)
{!! $array_sports->first()->SportsName !!}
@else
Category
@endif
</li>
</ul>
</div>
</div>
<div class="row">
@if(!empty($row))
@foreach ($row as $r)
<div class="col-md-3 col-sm-6 col-xs-12 list-sport">
<div class="thumb-border">
<a href="{{ url('/') }}/{{ Request::path() }}/{{ $r->Id ?? '' }}">
<img src="{{ minio_url('uploads/images/sports-category/' . ($r->Thumbnail ?? 'default.png')) }}" alt="{{ $r->Category ?? 'Category' }}" class="image" />
</a>
</div>
<div class="text-center">
<h3 class="sports-title">{{ $r->Category ?? 'Unknown' }}</h3>
</div>
</div>
@endforeach
@else
<div class="col-md-12 col-sm-12 col-xs-12">
<h3 class="no-record no-record">No Record Found.</h3>
</div>
@endif
</div>
@endsection