@extends('layouts.app') @section('title', 'Watch History') @section('content')
{{-- Header --}}

Watch History

Videos you've recently watched

@if($videos->isNotEmpty())
@csrf @method('DELETE')
@endif
@if($videos->isEmpty())

No watch history yet

Start watching videos and they'll show up here.

Browse Videos
@else
@foreach($videos as $video)
{{-- Thumbnail --}}
{{ $video->title }}
{{ $video->formatted_duration }}
{{-- Info --}}

{{ $video->title }}

Watched {{ $video->pivot->watched_at->diffForHumans() }}

@endforeach
@if($videos->hasPages())
{{ $videos->links() }}
@endif @endif
@endsection @push('styles') @endpush