<div class="tags">
    <div class="tagtest">
    @if(Auth::check())
    <div id="tag-add">
        <div class="row">
            <div class="col tag-col">
                <div class="input-group">
                    {{--<select multiple name="tags[]" data-role="tagsinput" class="form-control"></select>--}}
                    <input id="tags" type="text" class="form-control" placeholder="Input tags…" name="tags" data-role="tagsinput">
                    <span class="input-group-btn"></span>
                </div>
            </div>
        </div>
    <div class="sendtags">
        <button href="/{{$video->id}}/tag" id="submittags" type="submit" class="btn btn-primary">Submit</button>
    </div>          
    </div>
    @else
        @endif
    </div>
    <label for="manage-tags">Manage Tags</label>
    <div class="toggo tag-panel-body">
        <div id="tag-display" class="tag-panel-body">
            @if(count($video->tags))
                @foreach($video->tags as $tag)
                @if($tag == 'sfw')
                <span class="badge badge-success"><a href="/index?q={{$tag->normalized}}" class="badge badge-success">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag badge badge-success" href="#"><i class="fa fa-times"></i></a></span>@endif
                @elseif($tag == 'nsfw')
                <span class="badge badge-danger"><a href="/index?q={{$tag->normalized}}" class="badge badge-danger">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag badge badge-danger" href="#"><i class="fa fa-times"></i></a></span>@endif
                @else
                    <span class="badge badge-secondary"><a href="/index?q={{$tag->normalized}}" class="badge badge-secondary">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag badge badge-secondary" href="#"><i class="fa fa-times"></i></a></span>@endif
                    @endif
                @endforeach
            @else
                No tags yet ...
            @endif
        </div>
    </div>
</div>
