<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="_token" content="{{csrf_token()}}">
    <meta name="keywords" content="Random WebMs, WebMs, Internet Videos">
    <link rel="icon" href="/favicon.png">
    <title>@if(isset($video)){{ $video->id }} -@endif w0bm.com</title>
    <link rel="stylesheet" type="text/css" href="/z0mb/css/bootstrap-dark.css?v={{ filemtime("z0mb/css/bootstrap-dark.css") }}">
    <link rel="stylesheet" type="text/css" href="/z0mb/css/cstms.css?v={{ filemtime("z0mb/css/cstms.css") }}">
    <link rel="stylesheet" type="text/css" href="/z0mb/css/z0mb.css?v={{ filemtime("z0mb/css/z0mb.css") }}">
</head>
<body>
        @if(auth()->check())
        @include('partials.report')
        @include('partials.filterselect')
    @endif
     
    @if(auth()->check())
        @if(auth()->user()->can('delete_video'))
            @include('partials.frontendedit')
        @endif
    @endif

<div class="container-fluid row p-0" id="wrapper">
    <div class="col-sm scrollable hidden-xs p-0">
        <div class="zeugs">
            @if(auth()->check() && (auth()->user()->can("edit_video") || auth()->user()->id == $video->user_id)) <a class="edit_video" href="#" data-toggle="modal" data-target="#webmeditmodal">[edit]</a>@endif @if(auth()->check() && auth()->user()->can("delete_video"))<a class="delete_video" href="#">[del]</a>@endif
    </div>
</div>
        <div class="container p-0">
                <div class="col-md p-0">
                    @yield('floatvid')
                    @include('partials.flash')
                    @include('partials.comments')                    
                </div>
            <div class="col-sm scrollable p-0"></div>
        </div>
        <wip>
            <div id="untenlinks">
                <a href="/">Random</a> |
                <a href="/index">index</a> |
                <a href="/categories">categories</a> |
                <a href="irc://irc.n0xy.net/w0bm">IRC</a> (<a href="http://webirc.n0xy.net/?channels=%23w0bm?nick=BLAH">Webchat</a>) |
                <a href="/about">About</a> |
                <div class="layoutkek">
                <li role="presentation" class="layoutChanger" id="layoutSwitcher">
    <a data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
        <span class="caret"></span> Layout
    </a>
<ul class="dropdown-menu">
    <div class="layoutblah">
        <button id="layout1">w0bm.com</button>
        <br>
        <button id="layout2">Njum</button>
        <br>
        <button id="layout4">nojsz0mbie</button>
        <br>
        <button id="layout5">m0bile</button>
    </div>
</ul>
</li>
</div>

                <br>
                <a href="{{url('user', Auth::user()->username)}}">{{Auth::user()->username}}</a>
                <a href="{{url('messages')}}" style="font-size: 10px;">[ {{Auth::user()->messagesRecv()->unread()->count()}} ]</a> 
                <a href="#" data-toggle="modal" style="font-size: 10px;" data-target="#filterselectmodal">[ filter ]</a>
                <a style="font-size: 10px;" href="{{url('logout')}}">[ logout ]</a> |
                <a href="{{url('upload')}}">[ upload ]</a> |
                               @if(auth()->check())
@if(auth()->user()->hasFaved($video->id))
    <a hidden id="hidden-fav" href="{{url($video->id . '/fav')}}"></a>
    <a href="{{url($video->id . '/fav')}}">❤️ [ faved ]</a>
@else
    <a hidden id="hidden-fav" href="{{url($video->id . '/fav')}}"></a>
    <a href="{{url($video->id . '/fav')}}">🖤 [ fav ]</a>
@endif
@else
@endif
</div>
        </wip>
    <div class="col-sm scrollable hidden-xs p-0"></div>
<work>v.1.{{ filemtime("z0mb/css/z0mb.css") }} WIP</work>
</div>
</body>
<script type="text/javascript" defer src="/z0mb/js/jquery.min.js"></script>
<script type="text/javascript" defer src="/zßmb/js/jquery.timeago.js"></script>
<script type="text/javascript" defer src="/z0mb/js/popper.min.js"></script>
<script type="text/javascript" defer src="/z0mb/js/bootstrap.min.js"></script>
<script type="text/javascript" defer src="/z0mb/js/bootstrap-tagsinput.min.js"></script>
<script type="text/javascript" defer src="/z0mb/js/newscript.js?v={{ filemtime("z0mb/js/newscript.js") }}"></script>
</html>
