@extends('frontend.layouts.master') @section('title', 'Videos') @section('content') @php $header_image = \App\Models\Site\Header\Image::inRandomOrder()->first(); @endphp

Videos

Share your videos with our community.

Video Categories

@foreach($categories->sortBy('sort_order') as $category) @if( $category->videos->where('status_id', 1)->count() == 0 ) @else @endif @endforeach
{{ $category->name }}
{{ $category->description }}
{{ $category->videos->where('status_id', 1)->count() }}
Videos
No Videos @foreach($category->videos->where('status_id', 1)->sortByDesc('created_at')->take(1) as $video) {{ str_limit($video->title, 20) }}
{{ $video->created_at->diffForHumans() }}
@endforeach

Recent Videos

@if($videos->count() == 0)

There are no videos in this category yet.
To share your YouTube video please click on add video in the right hand navigation.

@else
@foreach($videos as $video) @include('frontend.video.partials.thumbnail') @endforeach
{{ $videos->links('frontend.layouts.partials.pagination') }} @endif
@include('frontend.video.partials.sidebar')
@endsection