mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 16:29:49 -05:00
remove: dead code
This commit is contained in:
@@ -1,86 +0,0 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('staff.dashboard.index') }}" class="breadcrumb__link">
|
||||
{{ __('staff.staff-dashboard') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="breadcrumb--active">Wikis</li>
|
||||
@endsection
|
||||
|
||||
@section('main')
|
||||
<section class="panelV2">
|
||||
<header class="panel__header">
|
||||
<h2 class="panel__heading">Wikis</h2>
|
||||
<div class="panel__actions">
|
||||
<a
|
||||
href="{{ route('staff.wikis.create') }}"
|
||||
class="panel__action form__button form__button--text"
|
||||
>
|
||||
{{ __('common.add') }}
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="data-table-wrapper">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('common.title') }}</th>
|
||||
<th>{{ __('common.category') }}</th>
|
||||
<th>{{ __('common.created_at') }}</th>
|
||||
<th>{{ __('torrent.updated_at') }}</th>
|
||||
<th>{{ __('common.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($wikis as $wiki)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ route('wikis.show', ['wiki' => $wiki]) }}">
|
||||
{{ $wiki->name }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $wiki->category->name }}</td>
|
||||
<td>{{ $wiki->created_at }}</td>
|
||||
<td>{{ $wiki->updated_at }}</td>
|
||||
<td>
|
||||
<menu class="data-table__actions">
|
||||
<li class="data-table__action">
|
||||
<a
|
||||
href="{{ route('staff.wikis.edit', ['wiki' => $wiki]) }}"
|
||||
class="form__button form__button--text"
|
||||
>
|
||||
{{ __('common.edit') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="data-table__action">
|
||||
<form
|
||||
action="{{ route('staff.wikis.destroy', ['wiki' => $wiki]) }}"
|
||||
method="POST"
|
||||
x-data="confirmation"
|
||||
>
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button
|
||||
x-on:click.prevent="confirmAction"
|
||||
data-b64-deletion-message="{{ base64_encode('Are you sure you want to delete this wiki: ' . $wiki->name . '?') }}"
|
||||
class="form__button form__button--text"
|
||||
>
|
||||
{{ __('common.delete') }}
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
</menu>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5">No Wikis</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -1,9 +0,0 @@
|
||||
@component('mail::message')
|
||||
# {{ __('email.register-header') }} {{ config('other.title') }} !
|
||||
**{{ __('email.register-code') }}**
|
||||
@component('mail::button', ['url' => route('activate', $code), 'color' => 'blue'])
|
||||
{{ __('email.activate-account') }}
|
||||
@endcomponent
|
||||
<p>{{ __('email.register-footer') }}</p>
|
||||
<p style="word-wrap: break-word; overflow-wrap: break-word; word-break: break-word;">{{ route('activate', $code) }}</p>
|
||||
@endcomponent
|
||||
@@ -1,22 +0,0 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@section('title')
|
||||
<title>TV Shows - {{ config('other.title') }}</title>
|
||||
@endsection
|
||||
|
||||
@section('meta')
|
||||
<meta name="description" content="TV Shows" />
|
||||
@endsection
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('mediahub.index') }}" class="breadcrumb__link">
|
||||
{{ __('mediahub.title') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="breadcrumb--active">TV Show</li>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@livewire('tv-search')
|
||||
@endsection
|
||||
@@ -1,92 +0,0 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@section('title')
|
||||
<title>{{ $season->name }} - {{ config('other.title') }}</title>
|
||||
@endsection
|
||||
|
||||
@section('meta')
|
||||
<meta name="description" content="{{ $season->name }}" />
|
||||
@endsection
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('mediahub.index') }}" class="breadcrumb__link">
|
||||
{{ __('mediahub.title') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('mediahub.shows.index') }}" class="breadcrumb__link">TV Shows</a>
|
||||
</li>
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('mediahub.shows.show', ['id' => $show->id]) }}" class="breadcrumb__link">
|
||||
{{ $show->name }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="breadcrumb--active">
|
||||
{{ $season->name }}
|
||||
</li>
|
||||
@endsection
|
||||
|
||||
@section('main')
|
||||
<section class="panelV2">
|
||||
<h2 class="panel__heading">{{ __('mediahub.episodes') }}</h2>
|
||||
<div class="panel__body">
|
||||
@foreach ($season->episodes as $episode)
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div
|
||||
class="card is-torrent"
|
||||
style="margin-top: 0; margin-bottom: 20px; height: auto"
|
||||
>
|
||||
<div class="card_head">
|
||||
<span class="text-bold" style="float: right">
|
||||
Episode {{ $episode->episode_number }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="card_body">
|
||||
<div class="body_poster">
|
||||
<img
|
||||
src="{{ isset($episode->still) ? tmdb_image('still_mid', $episode->still) : 'https://via.placeholder.com/400x225' }}"
|
||||
class="show-poster"
|
||||
/>
|
||||
</div>
|
||||
<div class="body_description" style="height: 190px">
|
||||
<h3 class="description_title">
|
||||
{{ $episode->name }} -
|
||||
@if ($episode->air_date)
|
||||
<span class="text-bold text-pink">
|
||||
{{ $episode->air_date }}
|
||||
</span>
|
||||
@endif
|
||||
</h3>
|
||||
<p class="description_plot">
|
||||
{{ $episode->overview }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
|
||||
@section('sidebar')
|
||||
<section class="panelV2">
|
||||
<h2 class="panel__heading">{{ $season->name }} ({{ $season->air_date }})</h2>
|
||||
<img
|
||||
src="{{ isset($season->poster) ? tmdb_image('cast_big', $season->poster) : 'https://via.placeholder.com/300x450' }}"
|
||||
alt=""
|
||||
/>
|
||||
<div class="panel__body">
|
||||
{{ $season->overview }}
|
||||
</div>
|
||||
<dl class="key-value">
|
||||
<div class="key-value__group">
|
||||
<dt>Air date</dt>
|
||||
<dd>{{ $season->air_date }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -1,197 +0,0 @@
|
||||
@extends('layout.default')
|
||||
|
||||
@section('title')
|
||||
<title>{{ $show->name }} - {{ config('other.title') }}</title>
|
||||
@endsection
|
||||
|
||||
@section('meta')
|
||||
<meta name="description" content="{{ $show->name }}" />
|
||||
@endsection
|
||||
|
||||
@section('breadcrumbs')
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('mediahub.index') }}" class="breadcrumb__link">
|
||||
{{ __('mediahub.title') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="breadcrumbV2">
|
||||
<a href="{{ route('mediahub.shows.index') }}" class="breadcrumb__link">TV Shows</a>
|
||||
</li>
|
||||
<li class="breadcrumb--active">
|
||||
{{ $show->name }}
|
||||
</li>
|
||||
@endsection
|
||||
|
||||
@section('main')
|
||||
<section class="panelV2">
|
||||
<h2 class="panel__heading">{{ __('mediahub.seasons') }}</h2>
|
||||
<div class="panel__body">
|
||||
@foreach ($show->seasons as $season)
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div
|
||||
class="card is-torrent"
|
||||
style="height: auto; margin-top: 0; margin-bottom: 20px"
|
||||
>
|
||||
<div class="card_head">
|
||||
<span class="text-bold" style="float: right">
|
||||
{{ $season->episodes->count() }} Episodes
|
||||
</span>
|
||||
<span class="text-bold" style="float: right">
|
||||
Season {{ $season->season_number }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="card_body" style="height: 190px">
|
||||
<div class="body_poster">
|
||||
<img
|
||||
src="{{ isset($season->poster) ? tmdb_image('poster_mid', $season->poster) : 'https://via.placeholder.com/200x300' }}"
|
||||
class="show-poster"
|
||||
style="height: 190px"
|
||||
/>
|
||||
</div>
|
||||
<div class="body_description" style="height: 190px">
|
||||
<h3 class="description_title">
|
||||
<a
|
||||
href="{{ route('mediahub.season.show', ['id' => $season->id]) }}"
|
||||
>
|
||||
{{ $season->name }}
|
||||
@if ($season->air_date)
|
||||
<span class="text-bold text-pink">
|
||||
({{ substr($season->air_date, 0, 4) }})
|
||||
</span>
|
||||
@endif
|
||||
</a>
|
||||
</h3>
|
||||
<p class="description_plot">
|
||||
{{ $season->overview }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card_footer text-center">
|
||||
<a
|
||||
data-toggle="collapse"
|
||||
data-target="#{{ $season->season_number }}"
|
||||
>
|
||||
<i class="fas fa-chevron-double-down"></i>
|
||||
<span class="text-bold">
|
||||
{{ $season->torrents->where('season_number', '=', $season->season_number)->count() }}
|
||||
Torrents Matched
|
||||
</span>
|
||||
<i class="fas fa-chevron-double-down"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div id="{{ $season->season_number }}" class="collapse">
|
||||
<div class="card_footer" style="height: auto">
|
||||
<div class="data-table-wrapper">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('common.name') }}</th>
|
||||
<th>{{ __('torrent.size') }}</th>
|
||||
<th>S</th>
|
||||
<th>L</th>
|
||||
<th>C</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($season->torrents->where('season_number', '=', $season->season_number)->sortByDesc('created_at') as $torrent)
|
||||
<tr>
|
||||
<td>
|
||||
<a
|
||||
href="{{ route('torrents.show', ['id' => $torrent->id]) }}"
|
||||
style="color: #8fa8e0"
|
||||
>
|
||||
{{ $torrent->name }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $torrent->getSize() }}</td>
|
||||
<td>{{ $torrent->seeders }}</td>
|
||||
<td>{{ $torrent->leechers }}</td>
|
||||
<td>{{ $torrent->times_completed }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
|
||||
@section('sidebar')
|
||||
<section class="panelV2">
|
||||
<h2 class="panel__heading">{{ $show->name }}</h2>
|
||||
<img
|
||||
src="{{ isset($show->poster) ? tmdb_image('cast_big', $show->poster) : 'https://via.placeholder.com/300x450' }}"
|
||||
alt=""
|
||||
/>
|
||||
<dl class="key-value">
|
||||
<div class="key-value__group">
|
||||
<dt>Seasons</dt>
|
||||
<dd>{{ $show->number_of_seasons }}</dd>
|
||||
</div>
|
||||
<div class="key-value__group">
|
||||
<dt>Status</dt>
|
||||
<dd>{{ $show->status }}</dd>
|
||||
</div>
|
||||
<div class="key-value__group">
|
||||
<dt>Networks</dt>
|
||||
<dd>
|
||||
@foreach ($show->networks as $network)
|
||||
<a
|
||||
href="{{ route('torrents.index', ['view' => 'group', 'networkId' => $network->id]) }}"
|
||||
>
|
||||
{{ $network->name }}
|
||||
</a>
|
||||
@if (! $loop->last)
|
||||
,
|
||||
@endif
|
||||
@endforeach
|
||||
</dd>
|
||||
</div>
|
||||
<div class="key-value__group">
|
||||
<dt>Companies</dt>
|
||||
<dd>
|
||||
@foreach ($show->companies as $company)
|
||||
<a
|
||||
href="{{ route('torrents.index', ['view' => 'group', 'companyId' => $company->id]) }}"
|
||||
>
|
||||
{{ $company->name }}
|
||||
</a>
|
||||
@if (! $loop->last)
|
||||
,
|
||||
@endif
|
||||
@endforeach
|
||||
</dd>
|
||||
</div>
|
||||
<div class="key-value__group">
|
||||
<dt>Runtime</dt>
|
||||
<dd>{{ $show->episode_run_time }}</dd>
|
||||
</div>
|
||||
<div class="key-value__group">
|
||||
<dt>Torrents</dt>
|
||||
<dd>{{ $show->torrents_count }}</dd>
|
||||
</div>
|
||||
<div class="key-value__group">
|
||||
<dt>Genres</dt>
|
||||
<dd>
|
||||
@foreach ($show->genres as $genre)
|
||||
<a
|
||||
href="{{ route('torrents.index', ['view' => 'group', 'genreIds' => [$genre->id]]) }}"
|
||||
>
|
||||
{{ $genre->name }}
|
||||
</a>
|
||||
@if (! $loop->last)
|
||||
,
|
||||
@endif
|
||||
@endforeach
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -1144,7 +1144,6 @@ Route::middleware('language')->group(function (): void {
|
||||
// Wiki System
|
||||
Route::prefix('wikis')->group(function (): void {
|
||||
Route::name('wikis.')->group(function (): void {
|
||||
Route::get('/', [App\Http\Controllers\Staff\WikiController::class, 'index'])->name('index');
|
||||
Route::get('/create', [App\Http\Controllers\Staff\WikiController::class, 'create'])->name('create');
|
||||
Route::post('/store', [App\Http\Controllers\Staff\WikiController::class, 'store'])->name('store');
|
||||
Route::get('/{wiki}/edit', [App\Http\Controllers\Staff\WikiController::class, 'edit'])->name('edit');
|
||||
|
||||
Reference in New Issue
Block a user