@extends('layout')
@section('video')
<?php $related = $related ?? null; ?>
    <div class="video-content">
    	<div class="video">
    		<div class="embed-responsive embed-responsive-16by9">
				<video id="video" class="video rounded embed-responsive-item" loop preload="auto" crossorigin="anonymous">
					<source src="@if(env('APP_DEBUG')){{"/b"}}@else{{"//" . (substr($_SERVER["HTTP_HOST"], 0, 3) === "v4." ? "v4." : "") . "b.w0bm.com"}}@endif{{ "/" . $video->file }}">
				</video>
			</div>
    	</div>
    @include('video-partials.legacy-videonav')
	</div>
@endsection

@section('testvideo')
<?php $related = $related ?? null; ?>
    <div class="page">
    	<div class="video-wrap embed-responsive embed-responsive-16by9">
    		<div class="video">
				<video id="video" class="video rounded embed-responsive-item" loop preload="auto" crossorigin="anonymous">
					<source src="/b{{ "/" . $video->file }}">
				</video>
			</div>
    	</div>
    @include('video-partials.legacy-videonav')
	</div>
@endsection

@section('floatvid')
        <div class="video-wrap embed-responsive embed-responsive-16by9 rounded" id="sticky-container">
            <video class="video scrollable" controls autoplay loop id="video">
                <source src="/b{{ "/" . $video->file }}">
            </video>
        </div>
        @include('video-partials.legacy-videonav')      
@endsection
