<div class="shop-category shop-brand my-3">
    <div class="container">
        <h3 class="title mb-0"><span>Shop By Brands</span> <a
                href="/brands/list">view
                all</a></h3>
        <div class="cat-row" style="display:block;">
            @foreach (App\Models\Brand::where('status', 1)->take(7)->get() as $brand)
                <a href="{{ route('brand.product', ['slug' => $brand->slug]) }}" class="cat-item">
                    <div class="">
                        <div class="thumbnail">
                            <img src="@if (file_exists(public_path() . '/uploads/brand/' . $brand->cover_photo)){{ asset('uploads/brand/' . $brand->cover_photo) }}@else{{ asset('/icon/no-img-cat.png') }}@endif" alt="">
                        </div>
                    </div>
                </a>
            @endforeach
        </div>
    </div>
</div>