MORE LAYOUTgit add public/mobile public/nojs/ public/shoop.png resources/views/layout1/apply.blade.php resources/views/layout1/nojs.blade.php resources/views/layout1/tos.blade.php resources/views/layout4/ resources/views/layout5!

This commit is contained in:
noxy
2019-09-02 19:15:37 +00:00
parent 8dd96f7d11
commit 4c21480392
201 changed files with 33473 additions and 59 deletions

View File

@@ -0,0 +1,71 @@
@extends('profilelayout')
@section('content')
<div class="page-header">
<h3 id="index">Index</h3>
<form method="get">
<button type="submit" class="suchbutton"><i style="color:white;" class="fa fa-search"></i></button>
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'suchleiste', 'placeholder' => 'Search w0bm.com']) !!}
</form>
</div>
<table class="table table-hover table-condensed">
<thead>
<tr>
<th>ID</th>
<th>Artist</th>
<th>Songtitle</th>
<th class="hidden-xs">Video Source</th>
<th>Category</th>
</tr>
</thead>
<tbody>
@foreach($videos as $video)
<?php
$thumb = str_replace(".webm","",$video->file);
?>
<tr data-thumb="{{$thumb}}" class="indexedit" data-vid="{{$video->id}}">
<td>
@if($edit = auth()->check() && auth()->user()->can('edit_video'))
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
@endif
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
@if($edit)
<input type="submit" class="btn btn-primary" value="Save" form="edit_{{$video->id}}">
@endif
</td>
<td>
<span class="vinfo vinterpret">{{$video->interpret or ''}}</span>
@if($edit)
<input class="form-control" type="text" name="interpret" value="{{$video->interpret or ''}}" form="edit_{{$video->id}}">
@endif
</td>
<td>
<span class="vinfo vsongtitle">{{$video->songtitle or ''}}</span>
@if($edit)
<input class="form-control" type="text" name="songtitle" value="{{$video->songtitle or ''}}" form="edit_{{$video->id}}">
@endif
</td>
<td class="hidden-xs">
<span class="vinfo vimgsource">{{$video->imgsource or ''}}</span>
@if($edit)
<input class="form-control" type="text" name="imgsource" value="{{$video->imgsource or ''}}" form="edit_{{$video->id}}">
@endif
</td>
<td>
<span class="vinfo vcategory"><a href="{{url($video->category->shortname)}}">{{$video->category->name}}</a></span>
@if($edit)
<select class="form-control" name="category" form="edit_{{$video->id}}">
@foreach($categories as $cat)
<option value="{{$cat->id}}" @if($cat->shortname === $video->category->shortname) selected @endif>{{$cat->name}}</option>
@endforeach
</select>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="">
{!! $videos->render() !!}
</div>
@endsection