@extends('layouts.admin') @section('title', 'Videos') @section('page-title', 'Videos Management') @section('content')
Reset

Total: {{ $videos->total() }} video(s)

Tambah Video
@if ($videos->count() > 0)
@foreach ($videos as $video)
@if ($video->thumbnail) {{ $video->title }} @else
@endif @if ($video->duration > 0) {{ $video->formatted_duration }} @endif

{{ $video->title }}

{{ $video->description }}

{{ $video->category->name }} {{ $video->formatted_views }} views {{ $video->created_at->diffForHumans() }}
@if ($video->tags)
@foreach ($video->tags as $tag) #{{ $tag }} @endforeach
@endif
@if ($video->status === 'published') Published @elseif($video->status === 'draft') Draft @else Private @endif
@csrf @method('DELETE')
@endforeach
{{ $videos->links() }}
@else

Belum ada video

Mulai dengan menambahkan video pertama.

@endif
@endsection