@extends('layouts.app') @section('title', 'Shorts - ' . config('app.name')) @section('main_class', 'shorts-view-page') @section('extra_styles') @endsection @section('content') @forelse($videos as $video) @php $src = asset('storage/videos/' . $video->filename); $thumb = $video->thumbnail_url; $user = $video->user; $index = $loop->index; @endphp
{{-- Up/Down nav (desktop) --}}
@if(!$loop->first) @endif @if(!$loop->last) @endif
{{-- Video player --}}
{{-- Pause icon --}}
{{-- Info overlay --}}
@if($user && $user->avatar_url) {{ $user->name }} @elseif($user)
{{ substr($user->name, 0, 1) }}
@endif {{ $user->name ?? '' }}

{{ $video->title }}

{{ number_format($video->view_count) }} views
{{-- Mute button --}} {{-- Progress bar --}}
{{-- Action buttons --}}
{{-- Like --}} @php $vKey = $video->getRouteKey(); @endphp {{-- Comments --}}
{{ number_format($video->comments()->count()) }}
{{-- Share --}} {{-- Open full page --}}
Open
@empty

No Shorts yet

Shorts are vertical videos under 60 seconds.

@auth Upload Short @else Login to Upload @endauth
@endforelse @endsection @section('scripts') @endsection