@extends('profilelayout')
@section('novidcontent')
    <div class="page-header">
        <h4>Categories</h4>
    </div>
    <div class="" id="categories">
        @foreach($categories as $category)
            <div id="category_box_{{$category->shortname}}" class="category-box">
                <div class="thumbnail">
                    <img src="{{ asset('/images/cat/' . $category->shortname . '.webp') }}" alt="{{$category->name}}">
                    <div class="caption">
                        <h5>{{$category->name}} <small><b>{{$category->videos()->count()}}</b></small></h5>
                        <span class="cat-desc"><i>{{$category->description}}</i></span>
                        <br>
                        <span class="cat-button"><a href="{{$category->shortname}}" class="btn btn-dark" role="button">View</a></span>
                    </div>
                </div>
            </div>
        @endforeach
    </div>
@endsection
