refactor: format blade files using prettier

Formatted using `./node_modules/.bin/prettier -w *`.
This commit is contained in:
Roardom
2023-12-25 10:29:47 +00:00
parent 93b2bfcfce
commit 240285fb5b
318 changed files with 14439 additions and 9331 deletions

9
.blade.format.json Normal file
View File

@@ -0,0 +1,9 @@
{
"attributeJsOptions": {
"semi": true
},
"phpOptions": {
"singleQuote": true
},
"useLaravelPint": false
}

9
.editorconfig Normal file
View File

@@ -0,0 +1,9 @@
root = true
[*.blade.php]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

14
.prettierignore Normal file
View File

@@ -0,0 +1,14 @@
# ignore all files
/*
# except /resources/views/**/*.blade.php
!/resources/
/resources/*
!/resources/views/
/resources/views/**/*.*
!/resources/views/**/*.blade.php
# ignored
resources/views/emails
resources/views/rss/show.blade.php
resources/views/vendor

18
.prettierrc Normal file
View File

@@ -0,0 +1,18 @@
{
"plugins": [
"prettier-plugin-blade"
],
"overrides": [
{
"files": [
"*.blade.php"
],
"options": {
"parser": "blade",
"printWidth": 100,
"semi": true,
"singleQuote": true
}
}
]
}

45
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "UNIT3D_PUBLIC",
"name": "www",
"lockfileVersion": 3,
"requires": true,
"packages": {
@@ -25,6 +25,9 @@
"vue": "^2.6.14",
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14"
},
"devDependencies": {
"prettier-plugin-blade": "^2.0.0"
}
},
"node_modules/@ampproject/remapping": {
@@ -2314,6 +2317,21 @@
"url": "https://opencollective.com/postcss/"
}
},
"node_modules/@vue/component-compiler-utils/node_modules/prettier": {
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
"optional": true,
"bin": {
"prettier": "bin-prettier.js"
},
"engines": {
"node": ">=10.13.0"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/@vue/component-compiler-utils/node_modules/yallist": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
@@ -7657,20 +7675,33 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/prettier": {
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
"optional": true,
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
"integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
"dev": true,
"peer": true,
"bin": {
"prettier": "bin-prettier.js"
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=10.13.0"
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prettier-plugin-blade": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/prettier-plugin-blade/-/prettier-plugin-blade-2.0.0.tgz",
"integrity": "sha512-9x7hBfGHSKsJG2UNTzFdAadLCMnsgGbLI/cUsb0+leV37yw1ojUedSAhkE1K0TleKXBXgaYpVY+71T3ClYW8WA==",
"dev": true,
"engines": {
"node": ">=12.0.0"
},
"peerDependencies": {
"prettier": ">=3"
}
},
"node_modules/pretty-time": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/pretty-time/-/pretty-time-1.1.0.tgz",

View File

@@ -28,5 +28,8 @@
"vue": "^2.6.14",
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14"
},
"devDependencies": {
"prettier-plugin-blade": "^2.0.0"
}
}

View File

@@ -10,9 +10,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Announces
</li>
<li class="breadcrumb--active">Announces</li>
@endsection
@section('page', 'page__history--index')

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.user') }} {{ __('user.apikeys') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('common.user') }} {{ __('user.apikeys') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('user.apikeys') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('user.apikeys') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Applications - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Applications - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -58,7 +58,7 @@
<td>
<time
datetime="{{ $application->created_at }}"
title={{ $application->created_at }}
title="{{ $application->created_at }}"
>
{{ $application->created_at->diffForHumans() }}
</time>
@@ -67,12 +67,15 @@
@switch($application->status)
@case(\App\Models\Application::PENDING)
<span class="application--pending">Pending</span>
@break
@case(\App\Models\Application::APPROVED)
<span class="application--approved">Approved</span>
@break
@case(\App\Models\Application::REJECTED)
<span class="application--rejected">Rejected</span>
@break
@default
<span class="application--unknown">Unknown</span>
@@ -90,7 +93,8 @@
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.applications.show', ['id' => $application->id]) }}">
href="{{ route('staff.applications.show', ['id' => $application->id]) }}"
>
{{ __('common.view') }}
</a>
</li>
@@ -100,7 +104,7 @@
@empty
<tr class="applications--empty">
<td colspan="10">
{{ __('common.no')}} {{__('staff.applications') }}
{{ __('common.no') }} {{ __('staff.applications') }}
</td>
</tr>
@endforelse

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Application - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Application - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -31,7 +31,7 @@
<h2 class="panel__heading">{{ __('common.image') }}</h2>
<div class="panel__body">
<ul>
@foreach($application->imageProofs as $img_proof)
@foreach ($application->imageProofs as $img_proof)
<li>
<a href="{{ $img_proof->image }}" target="_blank">
{{ $img_proof->image }}
@@ -42,12 +42,10 @@
</div>
</section>
<section class="panelV2">
<h2 class="panel__heading">
{{ __('user.profile') }} {{ __('staff.links') }}
</h2>
<h2 class="panel__heading">{{ __('user.profile') }} {{ __('staff.links') }}</h2>
<div class="panel__body">
<ul>
@foreach($application->urlProofs as $url_proof)
@foreach ($application->urlProofs as $url_proof)
<li>
<a href="{{ $url_proof->url }}" target="_blank">
{{ $url_proof->url }}
@@ -75,7 +73,10 @@
<dd>{{ $application->type }}</dd>
<dt>{{ __('common.created_at') }}</dt>
<dd>
<time datetime="{{ $application->created_at }}" title="{{ $application->created_at }}">
<time
datetime="{{ $application->created_at }}"
title="{{ $application->created_at }}"
>
{{ $application->created_at->diffForHumans() }}
</time>
</dd>
@@ -84,12 +85,15 @@
@switch($application->status)
@case(\App\Models\Application::PENDING)
<span class="application--pending">Pending</span>
@break
@case(\App\Models\Application::APPROVED)
<span class="application--approved">Approved</span>
@break
@case(\App\Models\Application::REJECTED)
<span class="application--rejected">Rejected</span>
@break
@default
<span class="application--unknown">Unknown</span>
@@ -98,7 +102,7 @@
</dl>
</section>
<section class="panelV2">
@if($application->status !== \App\Models\Application::PENDING)
@if ($application->status !== \App\Models\Application::PENDING)
<h2 class="panel__heading">{{ __('common.moderated-by') }}</h2>
<div class="panel__body">
<x-user_tag :anon="false" :user="$application->moderated" />
@@ -106,93 +110,115 @@
@else
<h2 class="panel__heading">{{ __('common.action') }}</h2>
<div class="panel__body">
<div x-data>
<p class="form__group form__group--horizontal">
<button class="form__button form__button--filled form__button--centered" x-on:click.stop="$refs.dialog.showModal()">
<i class="{{ config('other.font-awesome') }} fa-check"></i>
{{ __('request.approve') }}
</button>
</p>
<dialog class="dialog" x-ref="dialog">
<h3 class="dialog__heading">
{{ __('request.approve') }}
{{ __('common.this') }}
{{ __('staff.application') }}
</h3>
<form
class="dialog__form"
method="POST"
action="{{ route('staff.applications.approve', ['id' => $application->id]) }}"
x-on:click.outside="$refs.dialog.close()"
>
@csrf
<input
id="email"
name="email"
type="hidden"
value="{{ $application->email }}"
<div x-data>
<p class="form__group form__group--horizontal">
<button
class="form__button form__button--filled form__button--centered"
x-on:click.stop="$refs.dialog.showModal()"
>
<i class="{{ config('other.font-awesome') }} fa-check"></i>
{{ __('request.approve') }}
</button>
</p>
<dialog class="dialog" x-ref="dialog">
<h3 class="dialog__heading">
{{ __('request.approve') }}
{{ __('common.this') }}
{{ __('staff.application') }}
</h3>
<form
class="dialog__form"
method="POST"
action="{{ route('staff.applications.approve', ['id' => $application->id]) }}"
x-on:click.outside="$refs.dialog.close()"
>
@csrf
<input
id="email"
name="email"
type="hidden"
value="{{ $application->email }}"
/>
<p class="form__group">
<textarea
id="approve"
class="form__textarea"
name="approve"
placeholder=" "
>
<p class="form__group">
<textarea id="approve" class="form__textarea" name="approve" placeholder=" ">Application Approved!</textarea>
<label class="form__label form__label--floating" for="approve">Invitation Message</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('request.approve') }}
</button>
<button formmethod="dialog" formnovalidate class="form__button form__button--outlined">
{{ __('common.cancel') }}
</button>
</p>
</form>
</dialog>
</div>
<div x-data>
<p class="form__group form__group--horizontal">
<button class="form__button form__button--filled form__button--centered" x-on:click.stop="$refs.dialog.showModal()">
<i class="{{ config('other.font-awesome') }} fa-times"></i>
{{ __('request.reject') }}
</button>
</p>
<dialog class="dialog" x-ref="dialog">
<h3 class="dialog__heading">
{{ __('request.reject') }}
{{ __('common.this') }}
{{ __('staff.application') }}
</h3>
<form
class="dialog__form"
method="POST"
action="{{ route('staff.applications.reject', ['id' => $application->id]) }}"
x-on:click.outside="$refs.dialog.close()"
>
@csrf
<input
id="email"
name="email"
type="hidden"
value="{{ $application->email }}"
Application Approved!</textarea
>
<p class="form__group">
<textarea
id="message"
class="form__textarea"
name="deny"
required
>Insufficient Proofs.</textarea>
<label class="form__label form__label--floating" for="message">Rejection Message</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('request.reject') }}
</button>
<button formmethod="dialog" formnovalidate class="form__button form__button--outlined">
{{ __('common.cancel') }}
</button>
</p>
</form>
</dialog>
</div>
<label class="form__label form__label--floating" for="approve">
Invitation Message
</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('request.approve') }}
</button>
<button
formmethod="dialog"
formnovalidate
class="form__button form__button--outlined"
>
{{ __('common.cancel') }}
</button>
</p>
</form>
</dialog>
</div>
<div x-data>
<p class="form__group form__group--horizontal">
<button
class="form__button form__button--filled form__button--centered"
x-on:click.stop="$refs.dialog.showModal()"
>
<i class="{{ config('other.font-awesome') }} fa-times"></i>
{{ __('request.reject') }}
</button>
</p>
<dialog class="dialog" x-ref="dialog">
<h3 class="dialog__heading">
{{ __('request.reject') }}
{{ __('common.this') }}
{{ __('staff.application') }}
</h3>
<form
class="dialog__form"
method="POST"
action="{{ route('staff.applications.reject', ['id' => $application->id]) }}"
x-on:click.outside="$refs.dialog.close()"
>
@csrf
<input
id="email"
name="email"
type="hidden"
value="{{ $application->email }}"
/>
<p class="form__group">
<textarea id="message" class="form__textarea" name="deny" required>
Insufficient Proofs.</textarea
>
<label class="form__label form__label--floating" for="message">
Rejection Message
</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('request.reject') }}
</button>
<button
formmethod="dialog"
formnovalidate
class="form__button form__button--outlined"
>
{{ __('common.cancel') }}
</button>
</p>
</form>
</dialog>
</div>
</div>
@endif
</section>

View File

@@ -34,29 +34,20 @@
>
@csrf
<p class="form__group">
<input
type="text"
name="title"
id="title"
class="form__text"
required
>
<input type="text" name="title" id="title" class="form__text" required />
<label class="form__label form__label--floating" for="title">
{{ __('common.title') }}
</label>
</p>
<p class="form__group">
<label for="image" class="form__label">{{ __('common.image') }}</label>
<input
class="form__file"
type="file"
name="image"
id="image"
>
<input class="form__file" type="file" name="image" id="image" />
</p>
@livewire('bbcode-input', ['name' => 'content', 'label' => __('content'), 'required' => true ])
<p class="form__group">
<button class="form__button form__button--filled">{{ __('common.submit') }}</button>
<button class="form__button form__button--filled">
{{ __('common.submit') }}
</button>
</p>
</form>
</div>

View File

@@ -27,7 +27,9 @@
@section('main')
<section class="panelV2">
<h2 class="panel__heading">{{ __('common.edit') }} {{ __('common.article') }}: {{ $article->title }}</h2>
<h2 class="panel__heading">
{{ __('common.edit') }} {{ __('common.article') }}: {{ $article->title }}
</h2>
<div class="panel__body">
<form
class="form"
@@ -44,23 +46,20 @@
class="form__text"
value="{{ $article->title }}"
required
>
/>
<label class="form__label form__label--floating" for="title">
{{ __('common.title') }}
</label>
</p>
<p class="form__group">
<label for="image" class="form__label">{{ __('common.image') }}</label>
<input
class="form__file"
type="file"
name="image"
id="image"
>
<input class="form__file" type="file" name="image" id="image" />
</p>
@livewire('bbcode-input', ['name' => 'content', 'label' => __('content'), 'required' => true, 'content' => $article->content ])
<p class="form__group">
<button class="form__button form__button--filled">{{ __('common.save') }}</button>
<button class="form__button form__button--filled">
{{ __('common.save') }}
</button>
</p>
</form>
</div>

View File

@@ -32,13 +32,13 @@
</header>
<table class="data-table articles-table">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Date</th>
<th>{{ __('common.comments') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>Title</th>
<th>Author</th>
<th>Date</th>
<th>{{ __('common.comments') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($articles as $article)
@@ -54,7 +54,10 @@
</a>
</td>
<td>
<time datetime="{{ $article->created_at }}" title="{{ $article->created_at }}">
<time
datetime="{{ $article->created_at }}"
title="{{ $article->created_at }}"
>
{{ $article->created_at }}
</time>
</td>
@@ -85,19 +88,24 @@
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this article: ${atob('{{ base64_encode($article->title) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
class="form__button form__button--text">
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this article: ${atob(
'{{ base64_encode($article->title) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Audits Log - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Audits Log - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')

View File

@@ -1,11 +1,13 @@
@extends('layout.default')
@section('title')
<title>Failed Login Log - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
Failed Login Log - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="Invites Log - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Invites Log - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')

View File

@@ -1,12 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('backup.backup') }} {{ __('backup.manager') }} - {{ __('staff.staff-dashboard') }}
- {{ config('other.title') }}</title>
<title>
{{ __('backup.backup') }} {{ __('backup.manager') }} - {{ __('staff.staff-dashboard') }}
- {{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('backup.backup') }} {{ __('backup.manager') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('backup.backup') }} {{ __('backup.manager') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -15,9 +20,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
{{ __('backup.backup') }} {{ __('backup.manager') }}
</li>
<li class="breadcrumb--active">{{ __('backup.backup') }} {{ __('backup.manager') }}</li>
@endsection
@section('page', 'page__backup-manager--index')

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Bans - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Bans - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -54,21 +54,25 @@
<td>{{ $ban->ban_reason }}</td>
<td>{{ $ban->unban_reason }}</td>
<td>
<time datetime="{{ $ban->created_at }}" title="{{ $ban->created_at }}">
<time
datetime="{{ $ban->created_at }}"
title="{{ $ban->created_at }}"
>
{{ $ban->created_at }}
</time>
</td>
<td>
<time datetime="{{ $ban->removed_at }}" title="{{ $ban->removed_at }}">
<time
datetime="{{ $ban->removed_at }}"
title="{{ $ban->removed_at }}"
>
{{ $ban->removed_at }}
</time>
</td>
</tr>
@empty
<tr>
<td colspan="7">
No bans
</td>
<td colspan="7">No bans</td>
</tr>
@endforelse
</tbody>

View File

@@ -38,8 +38,10 @@
required
type="text"
value="{{ old('name') }}"
>
<label class="form__label form__label--floating" for="name">{{ __('common.name') }}</label>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
</p>
<p class="form__group">
<input
@@ -49,7 +51,7 @@
required
type="text"
value="{{ old('reason') }}"
>
/>
<label class="form__label form__label--floating" for="reason">
{{ __('common.reason') }}
</label>
@@ -62,4 +64,4 @@
</form>
</div>
</section>
@endsection
@endsection

View File

@@ -39,8 +39,10 @@
required
type="text"
value="{{ $client->name }}"
>
<label class="form__label form__label--floating" for="name">{{ __('common.name') }}</label>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
</p>
<p class="form__group">
<input
@@ -50,7 +52,7 @@
required
type="text"
value="{{ $client->reason }}"
>
/>
<label class="form__label form__label--floating" for="reason">
{{ __('common.reason') }}
</label>
@@ -63,4 +65,4 @@
</form>
</div>
</section>
@endsection
@endsection

View File

@@ -6,9 +6,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Client Blacklist
</li>
<li class="breadcrumb--active">Client Blacklist</li>
@endsection
@section('main')
@@ -17,7 +15,10 @@
<h2 class="panel__heading">Blacklisted Clients</h2>
<div class="panel__actions">
<div class="panel_action">
<a href="{{ route('staff.blacklisted_clients.create') }}" class="form__button form__button--text">
<a
href="{{ route('staff.blacklisted_clients.create') }}"
class="form__button form__button--text"
>
{{ __('common.add') }}
</a>
</div>
@@ -56,7 +57,8 @@
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
x-on:click.prevent="
Swal.fire({
title: 'Delete?',
text: 'Are you sure you want to delete?',
icon: 'warning',
@@ -66,8 +68,9 @@
if (result.isConfirmed) {
$root.submit();
}
})"
class="form__button form__button--text"
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
@@ -81,4 +84,4 @@
</table>
</div>
</section>
@endsection
@endsection

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('staff.blocked-ips') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('staff.blocked-ips') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('staff.blocked-ips') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('staff.blocked-ips') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -23,4 +29,4 @@
@section('main')
@livewire('block-ip-address')
@endsection
@endsection

View File

@@ -20,7 +20,7 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('bon.bon') }} {{ __('bon.exchange') }}
</h2>
<div class="panel__body">
@@ -40,8 +40,10 @@
class="form__text"
value="{{ old('description') }}"
required
>
<label class="form__label form__label--floating" for="description">{{ __('common.name') }}</label>
/>
<label class="form__label form__label--floating" for="description">
{{ __('common.name') }}
</label>
</p>
<p class="form__group">
<input
@@ -53,7 +55,7 @@
pattern="[0-9]*"
value="{{ old('value') }}"
required
>
/>
<label class="form__label form__label--floating" for="value">
{{ __('value') }}
</label>
@@ -68,18 +70,13 @@
pattern="[0-9]*"
value="{{ old('cost') }}"
required
>
/>
<label class="form__label form__label--floating" for="cost">
{{ __('bon.points') }}
</label>
</p>
<p class="form__group">
<select
name="type"
id="type"
class="form__select"
required
>
<select name="type" id="type" class="form__select" required>
<option hidden selected disabled value=""></option>
<option class="form__option" value="upload">
{{ __('common.add') }} {{ __('common.upload') }}

View File

@@ -20,7 +20,7 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.edit') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('bon.bon') }} {{ __('bon.exchange') }}
</h2>
<div class="panel__body">
@@ -41,8 +41,10 @@
class="form__text"
value="{{ $bonExchange->description }}"
required
>
<label class="form__label form__label--floating" for="description">{{ __('common.name') }}</label>
/>
<label class="form__label form__label--floating" for="description">
{{ __('common.name') }}
</label>
</p>
<p class="form__group">
<input
@@ -54,7 +56,7 @@
pattern="[0-9]*"
value="{{ $bonExchange->value }}"
required
>
/>
<label class="form__label form__label--floating" for="value">
{{ __('value') }}
</label>
@@ -69,29 +71,40 @@
pattern="[0-9]*"
value="{{ $bonExchange->cost }}"
required
>
/>
<label class="form__label form__label--floating" for="cost">
{{ __('bon.points') }}
</label>
</p>
<p class="form__group">
<select
name="type"
id="type"
class="form__select"
required
>
<select name="type" id="type" class="form__select" required>
<option hidden selected disabled value=""></option>
<option class="form__option" value="upload" @selected($bonExchange->upload)>
<option
class="form__option"
value="upload"
@selected($bonExchange->upload)
>
{{ __('common.add') }} {{ __('common.upload') }}
</option>
<option class="form__option" value="download" @selected($bonExchange->download)>
<option
class="form__option"
value="download"
@selected($bonExchange->download)
>
{{ __('common.remove') }} {{ __('common.download') }}
</option>
<option class="form__option" value="personal_freeleech" @selected($bonExchange->personal_freeleech)>
<option
class="form__option"
value="personal_freeleech"
@selected($bonExchange->personal_freeleech)
>
{{ __('torrent.personal-freeleech') }}
</option>
<option class="form__option" value="invite" @selected($bonExchange->invite)>
<option
class="form__option"
value="invite"
@selected($bonExchange->invite)
>
{{ __('user.invites') }}
</option>
</select>

View File

@@ -6,9 +6,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
{{ __('bon.bon') }} {{ __('bon.exchange') }}
</li>
<li class="breadcrumb--active">{{ __('bon.bon') }} {{ __('bon.exchange') }}</li>
@endsection
@section('content')
@@ -18,7 +16,7 @@
<div class="panel__actions">
<a href="{{ route('staff.bon_exchanges.create') }}" class="panel__action">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',true) }}
{{ trans_choice('common.a-an-art', true) }}
{{ __('bon.exchange') }}
</a>
</div>
@@ -26,64 +24,76 @@
<div class="table-responsive">
<table class="table table-condensed table-striped table-bordered table-hover">
<thead>
<tr>
<th>{{ __('common.name') }}</th>
<th>{{ __('value') }}</th>
<th>{{ __('bon.points') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.actions') }}</th>
</tr>
<tr>
<th>{{ __('common.name') }}</th>
<th>{{ __('value') }}</th>
<th>{{ __('bon.points') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.actions') }}</th>
</tr>
</thead>
<tbody>
@foreach ($bonExchanges as $bonExchange)
<tr>
<td>{{ $bonExchange->description }}</td>
<td>{{ $bonExchange->value }}</td>
<td>{{ $bonExchange->cost }}</td>
<td>
@switch (1)
@case ($bonExchange->upload)
{{ __('common.add') }} {{ __('common.upload') }}
@break
@case ($bonExchange->download)
{{ __('common.remove') }} {{ __('common.download') }}
@break
@case ($bonExchange->personal_freeleech)
{{ __('torrent.personal-freeleech') }}
@break
@case ($bonExchange->invite)
{{ __('user.invites') }}
@break
@endswitch
</td>
<td>
<form x-data action="{{ route('staff.bon_exchanges.destroy', ['bonExchange' => $bonExchange->id]) }}" method="POST">
@csrf
@method('DELETE')
<a href="{{ route('staff.bon_exchanges.edit', ['bonExchange' => $bonExchange->id]) }}"
class="form__button form__button--filled">
{{ __('common.edit') }}
</a>
<button
x-on:click.prevent="Swal.fire({
title: 'Delete?',
text: 'Are you sure you want to delete?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
class="form__button form__button--filled"
@foreach ($bonExchanges as $bonExchange)
<tr>
<td>{{ $bonExchange->description }}</td>
<td>{{ $bonExchange->value }}</td>
<td>{{ $bonExchange->cost }}</td>
<td>
@switch(1)
@case($bonExchange->upload)
{{ __('common.add') }} {{ __('common.upload') }}
@break
@case($bonExchange->download)
{{ __('common.remove') }} {{ __('common.download') }}
@break
@case($bonExchange->personal_freeleech)
{{ __('torrent.personal-freeleech') }}
@break
@case($bonExchange->invite)
{{ __('user.invites') }}
@break
@endswitch
</td>
<td>
<form
x-data
action="{{ route('staff.bon_exchanges.destroy', ['bonExchange' => $bonExchange->id]) }}"
method="POST"
>
{{ __('common.delete') }}
</button>
</form>
</td>
</tr>
@endforeach
@csrf
@method('DELETE')
<a
href="{{ route('staff.bon_exchanges.edit', ['bonExchange' => $bonExchange->id]) }}"
class="form__button form__button--filled"
>
{{ __('common.edit') }}
</a>
<button
x-on:click.prevent="
Swal.fire({
title: 'Delete?',
text: 'Are you sure you want to delete?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--filled"
>
{{ __('common.delete') }}
</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -22,7 +22,7 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('torrent.category') }}
</h2>
<div class="panel__body">
@@ -34,13 +34,7 @@
>
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
type="text"
name="name"
placeholder=" "
>
<input id="name" class="form__text" type="text" name="name" placeholder=" " />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -52,19 +46,13 @@
type="text"
name="position"
placeholder=" "
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>
</p>
<p class="form__group">
<input
id="icon"
class="form__text"
type="text"
name="icon"
placeholder=" "
>
<input id="icon" class="form__text" type="text" name="icon" placeholder=" " />
<label class="form__label form__label--floating" for="icon">
{{ __('common.icon') }} (FontAwesome)
</label>
@@ -72,44 +60,22 @@
<p class="form__group">
<label for="image">
{{ __('common.select') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('common.image') }}
(If Not Using A FontAwesome Icon)
</label>
<input
id="file"
class="form__file"
type="file"
name="image"
>
<input id="file" class="form__file" type="file" name="image" />
</p>
<p class="form__group">
<select
name="meta"
id="meta"
class="form__select"
required
>
<select name="meta" id="meta" class="form__select" required>
<option hidden selected disabled value=""></option>
<option class="form__option" value="movie">
Movie metadata
</option>
<option class="form__option" value="tv">
TV metadata
</option>
<option class="form__option" value="game">
Game metadata
</option>
<option class="form__option" value="music">
Music metadata
</option>
<option class="form__option" value="no">
No metadata
</option>
<option class="form__option" value="movie">Movie metadata</option>
<option class="form__option" value="tv">TV metadata</option>
<option class="form__option" value="game">Game metadata</option>
<option class="form__option" value="music">Music metadata</option>
<option class="form__option" value="no">No metadata</option>
</select>
<label class="form__label form__label--floating" for="meta">
Meta
</label>
<label class="form__label form__label--floating" for="meta">Meta</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">

View File

@@ -42,7 +42,7 @@
type="text"
name="name"
value="{{ $category->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -54,7 +54,7 @@
type="text"
name="position"
value="{{ $category->position }}"
>
/>
<label class="form__label form__label--floating" for="position" for="position">
{{ __('common.position') }}
</label>
@@ -66,7 +66,7 @@
type="text"
name="icon"
value="{{ $category->icon }}"
>
/>
<label class="form__label form__label--floating" for="icon">
{{ __('common.icon') }} (FontAwesome)
</label>
@@ -74,25 +74,19 @@
<p class="form__group">
<label for="image">
{{ __('common.select') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('common.image') }}
(If Not Using A FontAwesome Icon)
</label>
<input
id="file"
class="form__file"
type="file"
name="image"
>
<input id="file" class="form__file" type="file" name="image" />
</p>
<p class="form__group">
<select
name="meta"
id="meta"
class="form__select"
required
>
<option class="form__option" value="movie" @selected($category->movie_meta)>
<select name="meta" id="meta" class="form__select" required>
<option
class="form__option"
value="movie"
@selected($category->movie_meta)
>
Movie metadata
</option>
<option class="form__option" value="tv" @selected($category->tv_meta)>
@@ -101,16 +95,18 @@
<option class="form__option" value="game" @selected($category->game_meta)>
Game metadata
</option>
<option class="form__option" value="music" @selected($category->music_meta)>
<option
class="form__option"
value="music"
@selected($category->music_meta)
>
Music metadata
</option>
<option class="form__option" value="no" @selected($category->no_meta)>
No metadata
</option>
</select>
<label class="form__label form__label--floating" for="meta">
Meta
</label>
<label class="form__label form__label--floating" for="meta">Meta</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">

View File

@@ -28,25 +28,27 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.icon') }}</th>
<th>{{ __('common.image') }}</th>
<th>Movie Meta</th>
<th>TV Meta</th>
<th>Game Meta</th>
<th>Music Meta</th>
<th>No Meta</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.icon') }}</th>
<th>{{ __('common.image') }}</th>
<th>Movie Meta</th>
<th>TV Meta</th>
<th>Game Meta</th>
<th>Music Meta</th>
<th>No Meta</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($categories as $category)
<tr>
<td>{{ $category->position }}</td>
<td>
<a href="{{ route('staff.categories.edit', ['category' => $category]) }}">
<a
href="{{ route('staff.categories.edit', ['category' => $category]) }}"
>
{{ $category->name }}
</a>
</td>
@@ -55,44 +57,67 @@
</td>
<td>
@if ($category->image != null)
<img alt="{{ $category->name }}" src="{{ url('files/img/' . $category->image) }}">
<img
alt="{{ $category->name }}"
src="{{ url('files/img/' . $category->image) }}"
/>
@else
<span>N/A</span>
@endif
</td>
<td>
@if ($category->movie_meta)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($category->tv_meta)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($category->game_meta)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($category->music_meta)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($category->no_meta)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@@ -114,17 +139,21 @@
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this category: ${atob('{{ base64_encode($category->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this category: ${atob(
'{{ base64_encode($category->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}

View File

@@ -47,7 +47,11 @@
<section class="panelV2">
<h2 class="panel__heading">{{ __('bot.edit-bot') }}: {{ $bot->name }}</h2>
<div class="panel__body">
<form class="form" method="POST" action="{{ route('staff.bots.update', ['bot' => $bot]) }}">
<form
class="form"
method="POST"
action="{{ route('staff.bots.update', ['bot' => $bot]) }}"
>
@csrf
@method('PATCH')
<p class="form__group">
@@ -58,8 +62,10 @@
placeholder=" "
type="text"
value="{{ $bot->name }}"
>
<label class="form__label form__label--floating" for="name">{{ __('bot.name') }}</label>
/>
<label class="form__label form__label--floating" for="name">
{{ __('bot.name') }}
</label>
</p>
<p class="form__group">
<input
@@ -71,8 +77,10 @@
placeholder=" "
type="text"
value="{{ $bot->position }}"
>
<label class="form__label form__label--floating" for="position">{{ __('common.position') }}</label>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>
</p>
<p class="form__group">
<input
@@ -82,8 +90,10 @@
placeholder=" "
type="text"
value="{{ $bot->command }}"
>
<label class="form__label form__label--floating" for="command">{{ __('bot.command') }}</label>
/>
<label class="form__label form__label--floating" for="command">
{{ __('bot.command') }}
</label>
</p>
<p class="form__group">
<input
@@ -93,8 +103,10 @@
placeholder=" "
type="text"
value="{{ $bot->info }}"
>
<label class="form__label form__label--floating" for="info">{{ __('bot.info') }}</label>
/>
<label class="form__label form__label--floating" for="info">
{{ __('bot.info') }}
</label>
</p>
<p class="form__group">
<input
@@ -104,8 +116,10 @@
placeholder=" "
type="text"
value="{{ $bot->about }}"
>
<label class="form__label form__label--floating" for="about">{{ __('bot.about') }}</label>
/>
<label class="form__label form__label--floating" for="about">
{{ __('bot.about') }}
</label>
</p>
<p class="form__group">
<input
@@ -115,8 +129,10 @@
placeholder=" "
type="text"
value="{{ $bot->emoji }}"
>
<label class="form__label form__label--floating" for="emoji">{{ __('bot.emoji-code') }}</label>
/>
<label class="form__label form__label--floating" for="emoji">
{{ __('bot.emoji-code') }}
</label>
</p>
<p class="form__group">
<input
@@ -126,8 +142,10 @@
placeholder=" "
type="text"
value="{{ $bot->icon }}"
>
<label class="form__label form__label--floating" for="icon">{{ __('bot.icon') }}</label>
/>
<label class="form__label form__label--floating" for="icon">
{{ __('bot.icon') }}
</label>
</p>
<p class="form__group">
<input
@@ -137,20 +155,23 @@
placeholder=" "
type="text"
value="{{ $bot->color }}"
/>
<label class="form__label form__label--floating" for="color">
{{ __('bot.color') }}
</label>
</p>
<p class="form__group">
<textarea id="help" class="form__textarea" name="help" placeholder=" ">
{{ $bot->help }}</textarea
>
<label class="form__label form__label--floating" for="color">{{ __('bot.color') }}</label>
<label class="form__label form__label--floating" for="help">
{{ __('bot.help') }}
</label>
</p>
<p class="form__group">
<textarea
id="help"
class="form__textarea"
name="help"
placeholder=" "
>{{ $bot->help }}</textarea>
<label class="form__label form__label--floating" for="help">{{ __('bot.help') }}</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">{{ __('common.edit') }}</button>
<button class="form__button form__button--filled">
{{ __('common.edit') }}
</button>
</p>
</form>
</div>

View File

@@ -47,7 +47,7 @@
</tr>
</thead>
<tbody>
@foreach($bots as $bot)
@foreach ($bots as $bot)
<tr>
<td>
<a href="{{ route('staff.bots.edit', ['bot' => $bot]) }}">
@@ -60,20 +60,24 @@
class="chat-bots__icon"
src="/vendor/joypixels/png/64/{{ $bot->emoji }}.png"
alt="emoji"
>
/>
</td>
<td>{{ $bot->command }}</td>
<td>
@if ($bot->active)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
<div class="data-table__actions">
@if(! $bot->is_systembot)
@if($bot->active)
@if (! $bot->is_systembot)
@if ($bot->active)
<li class="data-table__action">
<form
method="POST"
@@ -99,6 +103,7 @@
</li>
@endif
@endif
<li class="data-table__action">
<a
class="form__button form__button--text"
@@ -115,7 +120,7 @@
>
@csrf
@method('DELETE')
@if(!$bot->is_protected)
@if (! $bot->is_protected)
<button class="form__button form__button--text">
{{ __('common.delete') }}
</button>

View File

@@ -22,7 +22,7 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('common.chat-room') }}
</h2>
<div class="panel__body">
@@ -34,13 +34,7 @@
>
@csrf
<p class="form__group">
<input
type="text"
class="form__text"
name="name"
id="name"
required
>
<input type="text" class="form__text" name="name" id="name" required />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>

View File

@@ -42,7 +42,7 @@
required
type="text"
value="{{ $chatroom->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>

View File

@@ -49,61 +49,67 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($chatrooms as $chatroom)
<tr>
<td>{{ $chatroom->id }}</td>
<td>
<a href="{{ route('staff.chatrooms.edit', ['chatroom' => $chatroom]) }}">
{{ $chatroom->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.chatrooms.edit', ['chatroom' => $chatroom]) }}"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.chatrooms.destroy', ['chatroom' => $chatroom]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this chatroom: ${atob('{{ base64_encode($chatroom->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@foreach ($chatrooms as $chatroom)
<tr>
<td>{{ $chatroom->id }}</td>
<td>
<a
href="{{ route('staff.chatrooms.edit', ['chatroom' => $chatroom]) }}"
>
{{ $chatroom->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.chatrooms.edit', ['chatroom' => $chatroom]) }}"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.chatrooms.destroy', ['chatroom' => $chatroom]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this chatroom: ${atob(
'{{ base64_encode($chatroom->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -22,7 +22,7 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('staff.chat') }} {{ __('staff.status') }}
</h2>
<div class="panel__body">
@@ -35,37 +35,19 @@
@csrf
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
required
type="text"
>
<input id="name" class="form__text" name="name" required type="text" />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
</p>
<p class="form__group">
<input
id="color"
class="form__text"
name="color"
required
type="text"
>
<input id="color" class="form__text" name="color" required type="text" />
<label class="form__label form__label--floating" for="color">
{{ __('common.color') }} (e.g. #ff0000)
</label>
</p>
<p class="form__group">
<input
id="icon"
class="form__text"
name="icon"
required
type="text"
>
<input id="icon" class="form__text" name="icon" required type="text" />
<label class="form__label form__label--floating" for="icon">
Font Awesome icon code (e.g. fas fa-comment-smile)
</label>

View File

@@ -24,7 +24,8 @@
@section('main')
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.edit') }} {{ __('staff.chat') }} {{ __('staff.status') }}: {{ $chatstatus->name }}
{{ __('common.edit') }} {{ __('staff.chat') }} {{ __('staff.status') }}:
{{ $chatstatus->name }}
</h2>
<div class="panel__body">
<form
@@ -42,7 +43,7 @@
required
type="text"
value="{{ $chatstatus->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -55,7 +56,7 @@
required
type="text"
value="{{ $chatstatus->color }}"
>
/>
<label class="form__label form__label--floating" for="color">
{{ __('common.color') }} (e.g. #ff0000)
</label>
@@ -69,7 +70,7 @@
required
type="text"
value="{{ $chatstatus->icon }}"
>
/>
<label class="form__label form__label--floating" for="icon">
Font Awesome icon code (e.g. fas fa-comment-smile)
</label>

View File

@@ -6,9 +6,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
{{ __('staff.chat') }} {{ __('staff.statuses') }}
</li>
<li class="breadcrumb--active">{{ __('staff.chat') }} {{ __('staff.statuses') }}</li>
@endsection
@section('nav-tabs')
@@ -51,74 +49,80 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>Color</th>
<th>Icon</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>Color</th>
<th>Icon</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($chatstatuses as $chatstatus)
<tr>
<td>{{ $chatstatus->id }}</td>
<td>
<a href="{{ route('staff.statuses.edit', ['chatStatus' => $chatstatus]) }}">
{{ $chatstatus->name }}
</a>
</td>
<td>
<i
class="{{ config('other.font-awesome') }} fa-circle"
style="color: {{ $chatstatus->color }};"
></i>
{{ $chatstatus->color }}
</td>
<td>
<i class="{{ $chatstatus->icon }}"></i>
[{{ $chatstatus->icon }}]
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.statuses.edit', ['chatStatus' => $chatstatus]) }}"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.statuses.destroy', ['chatStatus' => $chatstatus]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this chat status: ${atob('{{ base64_encode($chatstatus->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@foreach ($chatstatuses as $chatstatus)
<tr>
<td>{{ $chatstatus->id }}</td>
<td>
<a
href="{{ route('staff.statuses.edit', ['chatStatus' => $chatstatus]) }}"
>
{{ $chatstatus->name }}
</a>
</td>
<td>
<i
class="{{ config('other.font-awesome') }} fa-circle"
style="color: {{ $chatstatus->color }}"
></i>
{{ $chatstatus->color }}
</td>
<td>
<i class="{{ $chatstatus->icon }}"></i>
[{{ $chatstatus->icon }}]
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.statuses.edit', ['chatStatus' => $chatstatus]) }}"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.statuses.destroy', ['chatStatus' => $chatstatus]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this chat status: ${atob(
'{{ base64_encode($chatstatus->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -1,11 +1,13 @@
@extends('layout.default')
@section('title')
<title>Cheated Torrents - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
Cheated Torrents - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="Cheated Torrents - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Cheated Torrents - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -14,9 +16,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Cheated Torrents
</li>
<li class="breadcrumb--active">Cheated Torrents</li>
@endsection
@section('page', 'page__cheated-torrents--index')
@@ -35,17 +35,19 @@
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to reset all torrent balances? This will allow you to start tracking cheated torrents from scratch, but you will no longer have data for previous cheated torrents.',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to reset all torrent balances? This will allow you to start tracking cheated torrents from scratch, but you will no longer have data for previous cheated torrents.',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
Reset all torrent balances
@@ -109,7 +111,10 @@
{{ \App\Helpers\StringHelper::formatBytes($torrent->balance) }}
</td>
<td>
<time datetime="{{ $torrent->created_at }}" title="{{ $torrent->created_at }}">
<time
datetime="{{ $torrent->created_at }}"
title="{{ $torrent->created_at }}"
>
{{ $torrent->created_at ?? 'N/A' }}
</time>
</td>

View File

@@ -1,11 +1,16 @@
@extends('layout.default')
@section('title')
<title>Possible Leech Cheaters - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
Possible Leech Cheaters - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="Possible Leech Cheaters - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="Possible Leech Cheaters - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -23,9 +28,7 @@
@section('main')
<section class="panelV2">
<h2 class="panel__heading">
{{ __('staff.possible-leech-cheaters') }} (Ghost Leechers)
</h2>
<h2 class="panel__heading">{{ __('staff.possible-leech-cheaters') }} (Ghost Leechers)</h2>
<div class="data-table-wrapper">
<table class="data-table">
<thead>
@@ -42,13 +45,19 @@
<x-user_tag :anon="false" :user="$cheater" />
</td>
<td>
<time datetime="{{ $cheater->created_at }}" title="{{ $cheater->created_at }}">
<time
datetime="{{ $cheater->created_at }}"
title="{{ $cheater->created_at }}"
>
{{ $cheater->created_at ?? 'N/A' }}
</time>
</td>
<td>
<time datetime="{{ $cheater->last_login }}" title="{{ $cheater->last_login }}">
{{ $cheater->last_login ?? 'N/A'}}
<time
datetime="{{ $cheater->last_login }}"
title="{{ $cheater->last_login }}"
>
{{ $cheater->last_login ?? 'N/A' }}
</time>
</td>
</tr>

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Commands - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Commands - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -14,20 +14,28 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Commands
</li>
<li class="breadcrumb--active">Commands</li>
@endsection
@section('page', 'page__commands--index')
@section('main')
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;">
<div
style="
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 2rem;
"
>
<section class="panelV2">
<h2 class="panel__heading">Maintenance Mode</h2>
<div class="panel__body">
<div class="form__group form__group--horizontal">
<form role="form" method="POST" action="{{ url('/dashboard/commands/maintance-enable') }}">
<form
role="form"
method="POST"
action="{{ url('/dashboard/commands/maintance-enable') }}"
>
@csrf
<button
class="form__button form__button--text"
@@ -38,7 +46,11 @@
</form>
</div>
<div class="form__group form__group--horizontal">
<form role="form" method="POST" action="{{ url('/dashboard/commands/maintance-disable') }}">
<form
role="form"
method="POST"
action="{{ url('/dashboard/commands/maintance-disable') }}"
>
@csrf
<button
class="form__button form__button--text"
@@ -76,7 +88,10 @@
</form>
</div>
<div class="form__group form__group--horizontal">
<form method="POST" action="{{ url('/dashboard/commands/clear-route-cache') }}">
<form
method="POST"
action="{{ url('/dashboard/commands/clear-route-cache') }}"
>
@csrf
<button
class="form__button form__button--text"
@@ -87,7 +102,10 @@
</form>
</div>
<div class="form__group form__group--horizontal">
<form method="POST" action="{{ url('/dashboard/commands/clear-config-cache') }}">
<form
method="POST"
action="{{ url('/dashboard/commands/clear-config-cache') }}"
>
@csrf
<button
class="form__button form__button--text"

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="{{ __('staff.staff-dashboard') }}">
<meta name="description" content="{{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -31,22 +31,32 @@
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.dashboard.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.dashboard.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
{{ __('staff.staff-dashboard') }}
</a>
</p>
@if (auth()->user()->group->is_owner)
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.backups.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.backups.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-hdd"></i>
{{ __('backup.backup') }}
{{ __('backup.manager') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.commands.index') }}">
<i class="fab fa-laravel"></i> Commands
<a
class="form__button form__button--text"
href="{{ route('staff.commands.index') }}"
>
<i class="fab fa-laravel"></i>
Commands
</a>
</p>
@endif
@@ -59,19 +69,28 @@
</h2>
<div class="panel__body">
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.statuses.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.statuses.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-comment-dots"></i>
{{ __('staff.statuses') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.chatrooms.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.chatrooms.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-comment-dots"></i>
{{ __('staff.rooms') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.bots.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.bots.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-robot"></i>
{{ __('staff.bots') }}
</a>
@@ -80,17 +99,19 @@
<form method="POST" action="{{ route('staff.flush.chat') }}" x-data>
@csrf
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to delete all chatbox messages in all chatrooms (including private chatbox messages)?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to delete all chatbox messages in all chatrooms (including private chatbox messages)?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
<i class="{{ config('other.font-awesome') }} fa-broom"></i>
@@ -107,45 +128,67 @@
</h2>
<div class="panel__body">
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.articles.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.articles.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-newspaper"></i>
{{ __('staff.articles') }}
</a>
</p>
@if (auth()->user()->group->is_admin)
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.forums.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.forums.index') }}"
>
<i class="fab fa-wpforms"></i>
{{ __('staff.forums') }}
</a>
</p>
@endif
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.pages.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.pages.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.pages') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.polls.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.polls.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-chart-pie"></i>
{{ __('staff.polls') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.bon_exchanges.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.bon_exchanges.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-coins"></i>
{{ __('staff.bon-exchange') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.blacklisted_clients.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.blacklisted_clients.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-ban"></i>
{{ __('common.blacklist') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.blocked_ips.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.blocked_ips.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-ban"></i>
{{ __('staff.blocked-ips') }}
</a>
@@ -159,94 +202,133 @@
</h2>
<div class="panel__body">
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.moderation.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.moderation.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
{{ __('staff.torrent-moderation') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.categories.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.categories.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
{{ __('staff.torrent-categories') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.types.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.types.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
{{ __('staff.torrent-types') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.resolutions.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.resolutions.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
{{ __('staff.torrent-resolutions') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.regions.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.regions.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
Torrent Regions
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.distributors.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.distributors.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
Torrent Distributors
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.peers.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.peers.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
Peers
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.histories.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.histories.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
Histories
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.rss.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.rss.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-rss"></i>
{{ __('staff.rss') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.media_languages.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.media_languages.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-columns"></i>
{{ __('common.media-languages') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.cheated_torrents.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.cheated_torrents.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-question"></i>
Cheated Torrents
</a>
</p>
@if (config('announce.log_announces'))
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.announces.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.announces.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-chart-bar"></i>
Announces
</a>
</p>
@endif
<div class="form__group form__group--horizontal">
<form method="POST" action="{{ route('staff.flush.peers') }}" x-data>
@csrf
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to delete all ghost peers?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to delete all ghost peers?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
<i class="{{ config('other.font-awesome') }} fa-ghost"></i>
@@ -263,7 +345,10 @@
</h2>
<div class="panel__body">
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.applications.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.applications.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-list"></i>
{{ __('staff.applications') }} ({{ $pendingApplicationsCount }})
@if ($pendingApplicationsCount > 0)
@@ -272,37 +357,55 @@
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.users.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.users.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-users"></i>
{{ __('staff.user-search') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.apikeys.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.apikeys.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-key"></i>
{{ __('user.apikeys') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.passkeys.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.passkeys.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-key"></i>
{{ __('staff.passkeys') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.rsskeys.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.rsskeys.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-key"></i>
{{ __('user.rsskeys') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.watchlist.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.watchlist.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-eye"></i>
Watchlist
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.mass-pm.create') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.mass-pm.create') }}"
>
<i class="{{ config('other.font-awesome') }} fa-envelope-square"></i>
{{ __('staff.mass-pm') }}
</a>
@@ -330,26 +433,38 @@
</form>
</div>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.cheaters.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.cheaters.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-question"></i>
{{ __('staff.possible-leech-cheaters') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.seedboxes.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.seedboxes.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-server"></i>
{{ __('staff.seedboxes') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.internals.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.internals.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-magic"></i>
Internals
</a>
</p>
@if (auth()->user()->group->is_admin)
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.groups.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.groups.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-users"></i>
{{ __('staff.groups') }}
</a>
@@ -364,50 +479,76 @@
</h2>
<div class="panel__body">
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.audits.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.audits.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.audit-log') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.bans.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.bans.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.bans-log') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.authentications.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.authentications.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.failed-login-log') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.gifts.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.gifts.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.gifts-log') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.invites.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.invites.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.invites-log') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.notes.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.notes.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.user-notes') }}
</a>
</p>
@if (auth()->user()->group->is_owner)
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.laravellog.index') }}">
<i class="fa fa-file"></i> {{ __('staff.laravel-log') }}
</a>
</p>
<p class="form__group form__group--horizontal">
<a
class="form__button form__button--text"
href="{{ route('staff.laravellog.index') }}"
>
<i class="fa fa-file"></i>
{{ __('staff.laravel-log') }}
</a>
</p>
@endif
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.reports.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.reports.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.reports-log') }} ({{ $unsolvedReportsCount }})
@if ($unsolvedReportsCount > 0)
@@ -416,7 +557,10 @@
</a>
</p>
<p class="form__group form__group--horizontal">
<a class="form__button form__button--text" href="{{ route('staff.warnings.index') }}">
<a
class="form__button form__button--text"
href="{{ route('staff.warnings.index') }}"
>
<i class="{{ config('other.font-awesome') }} fa-file"></i>
{{ __('staff.warnings-log') }}
</a>
@@ -432,13 +576,18 @@
<dl class="key-value">
<dt>URL</dt>
<dd>{{ config('app.url') }}</dd>
@if (request()->secure())
<dt>Connection</dt>
<dd>Secure</dd>
<dt>Issued By</dt>
<dd>{{ (!is_string($certificate)) ? $certificate->getIssuer() : "No Certificate Info Found" }}</dd>
<dd>
{{ ! is_string($certificate) ? $certificate->getIssuer() : 'No Certificate Info Found' }}
</dd>
<dt>Expires</dt>
<dd>{{ (!is_string($certificate)) ? $certificate->expirationDate()->diffForHumans() : "No Certificate Info Found" }}</dd>
<dd>
{{ ! is_string($certificate) ? $certificate->expirationDate()->diffForHumans() : 'No Certificate Info Found' }}
</dd>
@else
<dt>Connection</dt>
<dd>
@@ -559,10 +708,14 @@
<td>{{ $permission['directory'] }}</td>
<td>
@if ($permission['permission'] === $permission['recommended'])
<i class="{{ config('other.font-awesome') }} fa-check-circle"></i>
<i
class="{{ config('other.font-awesome') }} fa-check-circle"
></i>
{{ $permission['permission'] }}
@else
<i class="{{ config('other.font-awesome') }} fa-times-circle"></i>
<i
class="{{ config('other.font-awesome') }} fa-times-circle"
></i>
{{ $permission['permission'] }}
@endif
</td>
@@ -577,23 +730,17 @@
@if ($externalTrackerStats === true)
<section class="panelV2">
<h2 class="panel__heading">External Tracker Stats</h2>
<div class="panel__body">
External tracker not enabled.
</div>
<div class="panel__body">External tracker not enabled.</div>
</section>
@elseif ($externalTrackerStats === false)
<section class="panelV2">
<h2 class="panel__heading">External Tracker Stats</h2>
<div class="panel__body">
Stats endpoint not found.
</div>
<div class="panel__body">Stats endpoint not found.</div>
</section>
@elseif ($externalTrackerStats === [])
<section class="panelV2">
<h2 class="panel__heading">External Tracker Stats</h2>
<div class="panel__body">
Tracker returned an error.
</div>
<div class="panel__body">Tracker returned an error.</div>
</section>
@else
<section class="panelV2">
@@ -604,6 +751,7 @@
$lastRequestAt = \Illuminate\Support\Carbon::createFromTimestampUTC($externalTrackerStats['last_request_at']);
$lastAnnounceResponseAt = \Illuminate\Support\Carbon::createFromTimestampUTC($externalTrackerStats['last_announce_response_at']);
@endphp
<dt>{{ __('torrent.started') }}</dt>
<dd>
<time
@@ -641,14 +789,14 @@
</tr>
</thead>
<tbody>
@foreach([1, 10, 60, 900, 7200] as $interval)
@foreach ([1, 10, 60, 900, 7200] as $interval)
<tr>
<td style="text-align: right">{{ $interval }}</td>
<td style="text-align: right">
{{ \number_format($externalTrackerStats['requests_per_'.$interval.'s'], 0, null, "\u{202F}") }}
{{ \number_format($externalTrackerStats['requests_per_' . $interval . 's'], 0, null, "\u{202F}") }}
</td>
<td style="text-align: right;">
{{ \number_format($externalTrackerStats['announce_responses_per_'.$interval.'s'], 0, null, "\u{202F}") }}
<td style="text-align: right">
{{ \number_format($externalTrackerStats['announce_responses_per_' . $interval . 's'], 0, null, "\u{202F}") }}
</td>
</tr>
@endforeach

View File

@@ -22,20 +22,10 @@
<section class="panelV2">
<h2 class="panel__heading">Add A Torrent Distributor</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.distributors.store') }}"
>
<form class="form" method="POST" action="{{ route('staff.distributors.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
required
type="text"
>
<input id="name" class="form__text" name="name" required type="text" />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>

View File

@@ -36,7 +36,8 @@
@csrf
@method('DELETE')
<p class="form__group">
An existing torrent on site may already use this distributor. Would you like to change it?
An existing torrent on site may already use this distributor. Would you like to
change it?
</p>
<p class="form__group">
<select
@@ -60,17 +61,21 @@
</p>
<p class="form__group">
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this distributor: ${atob('{{ base64_encode($distributor->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this distributor: ${atob(
'{{ base64_encode($distributor->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--filled"
>
{{ __('common.delete') }}

View File

@@ -42,7 +42,7 @@
required
type="text"
value="{{ $distributor->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>

View File

@@ -6,9 +6,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Torrent Distributors
</li>
<li class="breadcrumb--active">Torrent Distributors</li>
@endsection
@section('page', 'page__distributor--index')
@@ -29,45 +27,47 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($distributors as $distributor)
<tr>
<td>
<a href="{{ route('staff.distributors.edit', ['distributor' => $distributor]) }}">
{{ $distributor->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.distributors.edit', ['distributor' => $distributor]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.distributors.delete', ['distributor' => $distributor]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</a>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No distributors</td>
</tr>
@endforelse
@forelse ($distributors as $distributor)
<tr>
<td>
<a
href="{{ route('staff.distributors.edit', ['distributor' => $distributor]) }}"
>
{{ $distributor->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.distributors.edit', ['distributor' => $distributor]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.distributors.delete', ['distributor' => $distributor]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</a>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No distributors</td>
</tr>
@endforelse
</tbody>
</table>
</div>

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Add Forums - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Add Forums - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -33,19 +33,28 @@
<form class="form" method="POST" action="{{ route('staff.forums.store') }}">
@csrf
<p class="form__group">
<select id ="forum_type" class="form__select" name="forum_type" required>
<select id="forum_type" class="form__select" name="forum_type" required>
<option class="form__option" value="category">Category</option>
<option class="form__option" value="forum">Forum</option>
</select>
<label class="form__label form__label--floating" for="forum_type">Forum Type</label>
<label class="form__label form__label--floating" for="forum_type">
Forum Type
</label>
</p>
<p class="form__group">
<input id="name" class="form__text" type="text" name="name" required>
<input id="name" class="form__text" type="text" name="name" required />
<label class="form__label form__label--floating" for="name">Title</label>
</p>
<p class="form__group">
<textarea id="description" class="form__textarea" name="description" placeholder=" "></textarea>
<label class="form__label form__label--floating" for="description">Description</label>
<textarea
id="description"
class="form__textarea"
name="description"
placeholder=" "
></textarea>
<label class="form__label form__label--floating" for="description">
Description
</label>
</p>
<p class="form__group">
<select id="parent_id" class="form__select" name="parent_id">
@@ -56,7 +65,9 @@
</option>
@endforeach
</select>
<label class="form__label form__label--floating" for="parent_id">Parent forum</label>
<label class="form__label form__label--floating" for="parent_id">
Parent forum
</label>
</p>
<p class="form__group">
<input
@@ -67,40 +78,70 @@
pattern="[0-9]*"
placeholder=" "
type="text"
>
<label class="form__label form__label--floating" for="position">{{ __('common.position') }}</label>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>
</p>
<div class="form__group">
<h3>Permissions</h3>
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>Groups</th>
<th>View the forum</th>
<th>Read topics</th>
<th>Start new topic</th>
<th>Reply to topics</th>
</tr>
<tr>
<th>Groups</th>
<th>View the forum</th>
<th>Read topics</th>
<th>Start new topic</th>
<th>Reply to topics</th>
</tr>
</thead>
<tbody>
@foreach ($groups as $group)
<tr>
<th>{{ $group->name }}</th>
<td><label>
<input type="checkbox" name="permissions[{{ $group->id }}][show_forum]" value="1" checked>
</label></td>
<td><label>
<input type="checkbox" name="permissions[{{ $group->id }}][read_topic]" value="1" checked>
</label></td>
<td><label>
<input type="checkbox" name="permissions[{{ $group->id }}][start_topic]" value="1" checked>
</label></td>
<td><label>
<input type="checkbox" name="permissions[{{ $group->id }}][reply_topic]" value="1" checked>
</label></td>
</tr>
@endforeach
@foreach ($groups as $group)
<tr>
<th>{{ $group->name }}</th>
<td>
<label>
<input
type="checkbox"
name="permissions[{{ $group->id }}][show_forum]"
value="1"
checked
/>
</label>
</td>
<td>
<label>
<input
type="checkbox"
name="permissions[{{ $group->id }}][read_topic]"
value="1"
checked
/>
</label>
</td>
<td>
<label>
<input
type="checkbox"
name="permissions[{{ $group->id }}][start_topic]"
value="1"
checked
/>
</label>
</td>
<td>
<label>
<input
type="checkbox"
name="permissions[{{ $group->id }}][reply_topic]"
value="1"
checked
/>
</label>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.edit') }} Forums - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('common.edit') }} Forums - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('common.edit') }} Forums - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('common.edit') }} Forums - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -33,20 +39,30 @@
<section class="panelV2">
<h2 class="panel__heading">{{ __('common.edit') }} {{ __('forum.forum') }}</h2>
<div class="panel__body">
<form class="form" method="POST" action="{{ route('staff.forums.update', ['forum' => $forum]) }}">
<form
class="form"
method="POST"
action="{{ route('staff.forums.update', ['forum' => $forum]) }}"
>
@csrf
@method('PATCH')
<p class="form__group">
<input id="name" class="form__text" type="text" name="name" value="{{ $forum->name }}">
<input
id="name"
class="form__text"
type="text"
name="name"
value="{{ $forum->name }}"
/>
<label class="form__label form__label--floating" for="name">Title</label>
</p>
<p class="form__group">
<textarea
id="description"
name="description"
class="form__textarea"
>{{ $forum->description }}</textarea>
<label class="form__label form__label--floating" for="description">Description</label>
<textarea id="description" name="description" class="form__textarea">
{{ $forum->description }}</textarea
>
<label class="form__label form__label--floating" for="description">
Description
</label>
</p>
<p class="form__group">
<select id="forum_type" name="forum_type" class="form__select">
@@ -58,7 +74,9 @@
<option value="forum" selected>Forum (Current)</option>
@endif
</select>
<label class="form__label form__label--floating" for="forum_type">Forum Type</label>
<label class="form__label form__label--floating" for="forum_type">
Forum Type
</label>
</p>
<p class="form__group">
<select id="parent_id" name="parent_id" class="form__select">
@@ -67,11 +85,14 @@
{{ $forum->category->name }} (Current)
</option>
@endif
@foreach ($categories as $category)
<option value="{{ $category->id }}">{{ $category->name }}</option>
@endforeach
</select>
<label class="form__label form__label--floating" for="parent_id">Parent forum</label>
<label class="form__label form__label--floating" for="parent_id">
Parent forum
</label>
</p>
<p class="form__group">
<input
@@ -84,7 +105,7 @@
type="text"
value="{{ $forum->position }}"
required
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>
@@ -94,60 +115,58 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>Groups</th>
<th>View the forum</th>
<th>Read topics</th>
<th>Start new topic</th>
<th>Reply to topics</th>
</tr>
<tr>
<th>Groups</th>
<th>View the forum</th>
<th>Read topics</th>
<th>Start new topic</th>
<th>Reply to topics</th>
</tr>
</thead>
<tbody>
@foreach ($groups as $group)
<tr>
<td>{{ $group->name }}</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][show_forum]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->show_forum)
/>
</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][read_topic]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->read_topic)
/>
</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][start_topic]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->start_topic)
/>
</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][reply_topic]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->reply_topic)
/>
</td>
</tr>
@endforeach
@foreach ($groups as $group)
<tr>
<td>{{ $group->name }}</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][show_forum]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->show_forum)
/>
</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][read_topic]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->read_topic)
/>
</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][start_topic]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->start_topic)
/>
</td>
<td>
<input
type="checkbox"
name="permissions[{{ $group->id }}][reply_topic]"
value="1"
@checked($forum->permissions->where('group_id', '=', $group->id)->first()->reply_topic)
/>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<p class="form__group">
<button class="form__button form__button--filled">
Save Forum
</button>
<button class="form__button form__button--filled">Save Forum</button>
</p>
</form>
</div>

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Forums - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Forums - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -32,73 +32,29 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.name') }}</th>
<th>Type</th>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.name') }}</th>
<th>Type</th>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($categories as $category)
<tr>
<td>
<a href="{{ route('staff.forums.edit', ['forum' => $category]) }}">{{ $category->name }}</a>
</td>
<td>Category</td>
<td>{{ $category->position }}</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.forums.edit', ['forum' => $category]) }}"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.forums.destroy', ['forum' => $category]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this forum category: ${atob('{{ base64_encode($category->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@foreach ($category->forums as $forum)
@foreach ($categories as $category)
<tr>
<td style="padding-left: 50px">
<a href="{{ route('staff.forums.edit', ['forum' => $forum]) }}">{{ $forum->name }}</a>
<td>
<a href="{{ route('staff.forums.edit', ['forum' => $category]) }}">
{{ $category->name }}
</a>
</td>
<td>Forum</td>
<td>{{ $forum->position }}</td>
<td>Category</td>
<td>{{ $category->position }}</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.forums.edit', ['forum' => $forum]) }}"
href="{{ route('staff.forums.edit', ['forum' => $category]) }}"
>
{{ __('common.edit') }}
</a>
@@ -106,23 +62,27 @@
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.forums.destroy', ['forum' => $forum]) }}"
action="{{ route('staff.forums.destroy', ['forum' => $category]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this forum: ${atob('{{ base64_encode($forum->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this forum category: ${atob(
'{{ base64_encode($category->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
@@ -132,8 +92,62 @@
</menu>
</td>
</tr>
@foreach ($category->forums as $forum)
<tr>
<td style="padding-left: 50px">
<a
href="{{ route('staff.forums.edit', ['forum' => $forum]) }}"
>
{{ $forum->name }}
</a>
</td>
<td>Forum</td>
<td>{{ $forum->position }}</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('staff.forums.edit', ['forum' => $forum]) }}"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.forums.destroy', ['forum' => $forum]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this forum: ${atob(
'{{ base64_encode($forum->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
@endforeach
@endforeach
</tbody>
</table>
</div>

View File

@@ -1,11 +1,14 @@
@extends('layout.default')
@section('title')
<title>{{ __('staff.gifts-log') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('staff.gifts-log') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="Gifts Log - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Gifts Log - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')

View File

@@ -25,13 +25,7 @@
<form class="form" method="POST" action="{{ route('staff.groups.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
type="text"
name="name"
placeholder=" "
/>
<input id="name" class="form__text" type="text" name="name" placeholder=" " />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -49,16 +43,8 @@
</label>
</p>
<p class="form__group">
<input
id="level"
class="form__text"
type="text"
name="level"
placeholder=" "
/>
<label class="form__label form__label--floating" for="level">
Level
</label>
<input id="level" class="form__text" type="text" name="level" placeholder=" " />
<label class="form__label form__label--floating" for="level">Level</label>
</p>
<p class="form__group">
<input
@@ -73,25 +59,13 @@
</label>
</p>
<p class="form__group">
<input
id="color"
class="form__text"
type="text"
name="color"
placeholder=" "
/>
<input id="color" class="form__text" type="text" name="color" placeholder=" " />
<label class="form__label form__label--floating" for="color">
Color (e.g. #ff0000)
</label>
</p>
<p class="form__group">
<input
id="icon"
class="form__text"
type="text"
name="icon"
placeholder=" "
/>
<input id="icon" class="form__text" type="text" name="icon" placeholder=" " />
<label class="form__label form__label--floating" for="icon">
FontAwesome Icon (e.g. fas fa-user)
</label>
@@ -110,160 +84,136 @@
</label>
</p>
<p class="form__group">
<input name="is_internal" type="hidden" value="0">
<input name="is_internal" type="hidden" value="0" />
<input
id="is_internal"
class="form__checkbox"
name="is_internal"
type="checkbox"
value="1"
>
<label class="form__label" for="is_internal">
Internal
</label>
/>
<label class="form__label" for="is_internal">Internal</label>
</p>
<p class="form__group">
<input name="is_modo" type="hidden" value="0">
<input name="is_modo" type="hidden" value="0" />
<input
id="is_modo"
class="form__checkbox"
name="is_modo"
type="checkbox"
value="1"
>
<label class="form__label" for="is_modo">
Modo
</label>
/>
<label class="form__label" for="is_modo">Modo</label>
</p>
<p class="form__group">
<input name="is_admin" type="hidden" value="0">
<input name="is_admin" type="hidden" value="0" />
<input
id="is_admin"
class="form__checkbox"
name="is_admin"
type="checkbox"
value="1"
>
<label class="form__label" for="is_admin">
Admin
</label>
/>
<label class="form__label" for="is_admin">Admin</label>
</p>
<p class="form__group">
<input name="is_owner" type="hidden" value="0">
<input name="is_owner" type="hidden" value="0" />
<input
id="is_owner"
class="form__checkbox"
name="is_owner"
type="checkbox"
value="1"
>
<label class="form__label" for="is_owner">
Owner
</label>
/>
<label class="form__label" for="is_owner">Owner</label>
</p>
<p class="form__group">
<input name="is_trusted" type="hidden" value="0">
<input name="is_trusted" type="hidden" value="0" />
<input
id="is_trusted"
class="form__checkbox"
name="is_trusted"
type="checkbox"
value="1"
>
<label class="form__label" for="is_trusted">
Trusted
</label>
/>
<label class="form__label" for="is_trusted">Trusted</label>
</p>
<p class="form__group">
<input name="is_immune" type="hidden" value="0">
<input name="is_immune" type="hidden" value="0" />
<input
id="is_immune"
class="form__checkbox"
name="is_immune"
type="checkbox"
value="1"
>
<label class="form__label" for="is_immune">
Immune
</label>
/>
<label class="form__label" for="is_immune">Immune</label>
</p>
<p class="form__group">
<input name="is_freeleech" type="hidden" value="0">
<input name="is_freeleech" type="hidden" value="0" />
<input
id="is_freeleech"
class="form__checkbox"
name="is_freeleech"
type="checkbox"
value="1"
>
<label class="form__label" for="is_freeleech">
Freeleech
</label>
/>
<label class="form__label" for="is_freeleech">Freeleech</label>
</p>
<p class="form__group">
<input name="is_double_upload" type="hidden" value="0">
<input name="is_double_upload" type="hidden" value="0" />
<input
id="is_double_upload"
class="form__checkbox"
name="is_double_upload"
type="checkbox"
value="1"
>
<label class="form__label" for="is_double_upload">
Double Upload
</label>
/>
<label class="form__label" for="is_double_upload">Double Upload</label>
</p>
<p class="form__group">
<input name="is_refundable" type="hidden" value="0">
<input name="is_refundable" type="hidden" value="0" />
<input
id="is_refundable"
class="form__checkbox"
name="is_refundable"
type="checkbox"
value="1"
>
<label class="form__label" for="is_refundable">
Refundable Download
</label>
id="is_refundable"
class="form__checkbox"
name="is_refundable"
type="checkbox"
value="1"
/>
<label class="form__label" for="is_refundable">Refundable Download</label>
</p>
<p class="form__group">
<input name="is_incognito" type="hidden" value="0">
<input name="is_incognito" type="hidden" value="0" />
<input
id="is_incognito"
class="form__checkbox"
name="is_incognito"
type="checkbox"
value="1"
>
<label class="form__label" for="is_incognito">
Incognito
</label>
/>
<label class="form__label" for="is_incognito">Incognito</label>
</p>
<p class="form__group">
<input name="can_upload" type="hidden" value="0">
<input name="can_upload" type="hidden" value="0" />
<input
id="can_upload"
class="form__checkbox"
name="can_upload"
type="checkbox"
value="1"
>
<label class="form__label" for="can_upload">
Upload
</label>
/>
<label class="form__label" for="can_upload">Upload</label>
</p>
<p class="form__group">
<input name="autogroup" type="hidden" value="0">
<input name="autogroup" type="hidden" value="0" />
<input
id="autogroup"
class="form__checkbox"
name="autogroup"
type="checkbox"
value="1"
>
<label class="form__label" for="autogroup">
Autogroup
</label>
/>
<label class="form__label" for="autogroup">Autogroup</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">

View File

@@ -25,7 +25,11 @@
<section class="panelV2">
<h2 class="panel__heading">Edit Group: {{ $group->name }}</h2>
<div class="panel__body">
<form class="form" method="POST" action="{{ route('staff.groups.update', ['group' => $group]) }}">
<form
class="form"
method="POST"
action="{{ route('staff.groups.update', ['group' => $group]) }}"
>
@csrf
@method('PATCH')
<p class="form__group">
@@ -63,9 +67,7 @@
placeholder=" "
value="{{ $group->level }}"
/>
<label class="form__label form__label--floating" for="level">
Level
</label>
<label class="form__label form__label--floating" for="level">Level</label>
</p>
<p class="form__group">
<input
@@ -120,7 +122,7 @@
</label>
</p>
<p class="form__group">
<input name="is_internal" type="hidden" value="0">
<input name="is_internal" type="hidden" value="0" />
<input
id="is_internal"
class="form__checkbox"
@@ -128,13 +130,11 @@
type="checkbox"
value="1"
@checked($group->is_internal)
>
<label class="form__label" for="is_internal">
Internal
</label>
/>
<label class="form__label" for="is_internal">Internal</label>
</p>
<p class="form__group">
<input name="is_modo" type="hidden" value="0">
<input name="is_modo" type="hidden" value="0" />
<input
id="is_modo"
class="form__checkbox"
@@ -142,13 +142,11 @@
type="checkbox"
value="1"
@checked($group->is_modo)
>
<label class="form__label" for="is_modo">
Modo
</label>
/>
<label class="form__label" for="is_modo">Modo</label>
</p>
<p class="form__group">
<input name="is_admin" type="hidden" value="0">
<input name="is_admin" type="hidden" value="0" />
<input
id="is_admin"
class="form__checkbox"
@@ -156,13 +154,11 @@
type="checkbox"
value="1"
@checked($group->is_admin)
>
<label class="form__label" for="is_admin">
Admin
</label>
/>
<label class="form__label" for="is_admin">Admin</label>
</p>
<p class="form__group">
<input name="is_owner" type="hidden" value="0">
<input name="is_owner" type="hidden" value="0" />
<input
id="is_owner"
class="form__checkbox"
@@ -170,13 +166,11 @@
type="checkbox"
value="1"
@checked($group->is_owner)
>
<label class="form__label" for="is_owner">
Owner
</label>
/>
<label class="form__label" for="is_owner">Owner</label>
</p>
<p class="form__group">
<input name="is_trusted" type="hidden" value="0">
<input name="is_trusted" type="hidden" value="0" />
<input
id="is_trusted"
class="form__checkbox"
@@ -184,13 +178,11 @@
type="checkbox"
value="1"
@checked($group->is_trusted)
>
<label class="form__label" for="is_trusted">
Trusted
</label>
/>
<label class="form__label" for="is_trusted">Trusted</label>
</p>
<p class="form__group">
<input name="is_immune" type="hidden" value="0">
<input name="is_immune" type="hidden" value="0" />
<input
id="is_immune"
class="form__checkbox"
@@ -198,13 +190,11 @@
type="checkbox"
value="1"
@checked($group->is_immune)
>
<label class="form__label" for="is_immune">
Immune
</label>
/>
<label class="form__label" for="is_immune">Immune</label>
</p>
<p class="form__group">
<input name="is_freeleech" type="hidden" value="0">
<input name="is_freeleech" type="hidden" value="0" />
<input
id="is_freeleech"
class="form__checkbox"
@@ -212,13 +202,11 @@
type="checkbox"
value="1"
@checked($group->is_freeleech)
>
<label class="form__label" for="is_freeleech">
Freeleech
</label>
/>
<label class="form__label" for="is_freeleech">Freeleech</label>
</p>
<p class="form__group">
<input name="is_double_upload" type="hidden" value="0">
<input name="is_double_upload" type="hidden" value="0" />
<input
id="is_double_upload"
class="form__checkbox"
@@ -226,27 +214,23 @@
type="checkbox"
value="1"
@checked($group->is_double_upload)
>
<label class="form__label" for="is_double_upload">
Double Upload
</label>
/>
<label class="form__label" for="is_double_upload">Double Upload</label>
</p>
<p class="form__group">
<input name="is_refundable" type="hidden" value="0">
<input name="is_refundable" type="hidden" value="0" />
<input
id="is_refundable"
class="form__checkbox"
name="is_refundable"
type="checkbox"
value="1"
@checked($group->is_refundable)
>
<label class="form__label" for="is_refundable">
Refundable Download
</label>
id="is_refundable"
class="form__checkbox"
name="is_refundable"
type="checkbox"
value="1"
@checked($group->is_refundable)
/>
<label class="form__label" for="is_refundable">Refundable Download</label>
</p>
<p class="form__group">
<input name="is_incognito" type="hidden" value="0">
<input name="is_incognito" type="hidden" value="0" />
<input
id="is_incognito"
class="form__checkbox"
@@ -254,13 +238,11 @@
type="checkbox"
value="1"
@checked($group->is_incognito)
>
<label class="form__label" for="is_incognito">
Incognito
</label>
/>
<label class="form__label" for="is_incognito">Incognito</label>
</p>
<p class="form__group">
<input name="can_upload" type="hidden" value="0">
<input name="can_upload" type="hidden" value="0" />
<input
id="can_upload"
class="form__checkbox"
@@ -268,13 +250,11 @@
type="checkbox"
value="1"
@checked($group->can_upload)
>
<label class="form__label" for="can_upload">
Upload
</label>
/>
<label class="form__label" for="can_upload">Upload</label>
</p>
<p class="form__group">
<input name="autogroup" type="hidden" value="0">
<input name="autogroup" type="hidden" value="0" />
<input
id="autogroup"
class="form__checkbox"
@@ -282,10 +262,8 @@
type="checkbox"
value="1"
@checked($group->autogroup)
>
<label class="form__label" for="autogroup">
Autogroup
</label>
/>
<label class="form__label" for="autogroup">Autogroup</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">

View File

@@ -29,142 +29,197 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.position') }}</th>
<th>Level</th>
<th>DL Slots</th>
<th>Color</th>
<th>Icon</th>
<th>Effect</th>
<th>Internal</th>
<th>Modo</th>
<th>Admin</th>
<th>Owner</th>
<th>Trusted</th>
<th>Immune</th>
<th>Freeleech</th>
<th>Double Upload</th>
<th>Refundable</th>
<th>Incognito</th>
<th>Upload</th>
<th>Autogroup</th>
</tr>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.position') }}</th>
<th>Level</th>
<th>DL Slots</th>
<th>Color</th>
<th>Icon</th>
<th>Effect</th>
<th>Internal</th>
<th>Modo</th>
<th>Admin</th>
<th>Owner</th>
<th>Trusted</th>
<th>Immune</th>
<th>Freeleech</th>
<th>Double Upload</th>
<th>Refundable</th>
<th>Incognito</th>
<th>Upload</th>
<th>Autogroup</th>
</tr>
</thead>
<tbody>
@foreach ($groups as $group)
<tr>
<td>{{ $group->id }}</td>
<td>
<a href="{{ route('staff.groups.edit', ['group' => $group]) }}">
{{ $group->name }}
</a>
</td>
<td>{{ $group->position }}</td>
<td>{{ $group->level }}</td>
<td>{{ $group->download_slots ?? 'Unlimited' }}</td>
<td>
<i class="{{ config('other.font-awesome') }} fa-circle" style="color: {{ $group->color }};"></i>
{{ $group->color }}
</td>
<td>
<i class="{{ $group->icon }}"></i>
[{{ $group->icon }}]
</td>
<td>
@if ($group->effect !== '' && $group->effect !== 'none')
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_internal)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_modo)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_admin)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_owner)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_trusted)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_immune)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_freeleech)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_double_upload)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_refundable)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->is_incognito)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->can_upload)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($group->autogroup)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
</tr>
@endforeach
@foreach ($groups as $group)
<tr>
<td>{{ $group->id }}</td>
<td>
<a href="{{ route('staff.groups.edit', ['group' => $group]) }}">
{{ $group->name }}
</a>
</td>
<td>{{ $group->position }}</td>
<td>{{ $group->level }}</td>
<td>{{ $group->download_slots ?? 'Unlimited' }}</td>
<td>
<i
class="{{ config('other.font-awesome') }} fa-circle"
style="color: {{ $group->color }}"
></i>
{{ $group->color }}
</td>
<td>
<i class="{{ $group->icon }}"></i>
[{{ $group->icon }}]
</td>
<td>
@if ($group->effect !== '' && $group->effect !== 'none')
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_internal)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_modo)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_admin)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_owner)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_trusted)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_immune)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_freeleech)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_double_upload)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_refundable)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->is_incognito)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->can_upload)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($group->autogroup)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -10,9 +10,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
History
</li>
<li class="breadcrumb--active">History</li>
@endsection
@section('page', 'page__history--index')

View File

@@ -7,9 +7,7 @@
</a>
</li>
<li class="breadcrumbV2">
<a href="{{ route('staff.internals.index') }}" class="breadcrumb__link">
Internals
</a>
<a href="{{ route('staff.internals.index') }}" class="breadcrumb__link">Internals</a>
</li>
<li class="breadcrumb--active">
{{ __('common.new-adj') }}
@@ -22,16 +20,15 @@
<section class="panelV2">
<h2 class="panel__heading">{{ __('common.add') }} Internal Group</h2>
<div class="panel__body">
<form class="form" method="POST" action="{{ route('staff.internals.store') }}" enctype="multipart/form-data">
<form
class="form"
method="POST"
action="{{ route('staff.internals.store') }}"
enctype="multipart/form-data"
>
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
required
type="text"
>
<input id="name" class="form__text" name="name" required type="text" />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -44,10 +41,8 @@
required
type="text"
value="fa-magic"
>
<label class="form__label form__label--floating" for="icon">
Icon
</label>
/>
<label class="form__label form__label--floating" for="icon">Icon</label>
</p>
<p class="form__group">
<input
@@ -57,10 +52,8 @@
required
type="text"
value="none"
>
<label class="form__label form__label--floating" for="effect">
Effect
</label>
/>
<label class="form__label form__label--floating" for="effect">Effect</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">

View File

@@ -7,9 +7,7 @@
</a>
</li>
<li class="breadcrumbV2">
<a href="{{ route('staff.internals.index') }}" class="breadcrumb__link">
Internals
</a>
<a href="{{ route('staff.internals.index') }}" class="breadcrumb__link">Internals</a>
</li>
<li class="breadcrumbV2">
{{ $internal->name }}
@@ -23,7 +21,9 @@
@section('main')
<section class="panelV2">
<h2 class="panel__heading">{{ __('common.edit') }} Interal Group: {{ $internal->name }}</h2>
<h2 class="panel__heading">
{{ __('common.edit') }} Interal Group: {{ $internal->name }}
</h2>
<div class="panel__body">
<form
class="form"
@@ -40,7 +40,7 @@
required
type="text"
value="{{ $internal->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -53,10 +53,8 @@
required
type="text"
value="{{ $internal->icon }}"
>
<label class="form__label form__label--floating" for="icon">
Icon
</label>
/>
<label class="form__label form__label--floating" for="icon">Icon</label>
</p>
<p class="form__group">
<input
@@ -66,10 +64,8 @@
required
type="text"
value="{{ $internal->effect }}"
>
<label class="form__label form__label--floating" for="effect">
Effect
</label>
/>
<label class="form__label form__label--floating" for="effect">Effect</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">

View File

@@ -6,9 +6,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Internals
</li>
<li class="breadcrumb--active">Internals</li>
@endsection
@section('page', 'page__internals--index')
@@ -29,65 +27,71 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>Icon</th>
<th>Effect</th>
<th width="15%">{{ __('common.action') }}</th>
</tr>
<tr>
<th>ID</th>
<th>{{ __('common.name') }}</th>
<th>Icon</th>
<th>Effect</th>
<th width="15%">{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($internals as $internal)
<tr>
<td>{{ $internal->id }}</td>
<td>
<a href="{{ route('staff.internals.edit', ['internal' => $internal]) }}">
{{ $internal->name }}
</a>
</td>
<td>{{ $internal->icon }}</td>
<td>{{ $internal->effect }}</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.internals.edit', ['internal' => $internal]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.internals.destroy', ['internal' => $internal]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this internal group: ${atob('{{ base64_encode($internal->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@foreach ($internals as $internal)
<tr>
<td>{{ $internal->id }}</td>
<td>
<a
href="{{ route('staff.internals.edit', ['internal' => $internal]) }}"
>
{{ $internal->name }}
</a>
</td>
<td>{{ $internal->icon }}</td>
<td>{{ $internal->effect }}</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.internals.edit', ['internal' => $internal]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.internals.destroy', ['internal' => $internal]) }}"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this internal group: ${atob(
'{{ base64_encode($internal->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Invites Log - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Invites Log - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('staff.mass-pm') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('staff.mass-pm') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('staff.mass-pm') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('staff.mass-pm') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -35,7 +41,7 @@
name="subject"
type="text"
required
>
/>
<label class="form__label form__label--floating" for="subject">
{{ __('pm.subject') }}
</label>
@@ -43,17 +49,19 @@
@livewire('bbcode-input', ['name' => 'message', 'label' => __('pm.message'), 'required' => true])
<p class="form__group">
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to send this private message to every user on the site?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: 'Are you sure you want to send this private message to every user on the site?',
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--filled"
>
{{ __('pm.send') }}

View File

@@ -27,25 +27,13 @@
<form class="form" method="POST" action="{{ route('staff.media_languages.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
type="text"
required
>
<input id="name" class="form__text" name="name" type="text" required />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
</p>
<p class="form__group">
<input
id="code"
class="form__text"
name="code"
type="text"
required
>
<input id="code" class="form__text" name="code" type="text" required />
<label class="form__label form__label--floating" for="code">
{{ __('common.code') }}
</label>

View File

@@ -23,9 +23,7 @@
@section('main')
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.edit') }} {{ __('common.media-language') }}
</h2>
<h2 class="panel__heading">{{ __('common.edit') }} {{ __('common.media-language') }}</h2>
<div class="panel__body">
<form
class="form"
@@ -42,7 +40,7 @@
required
type="text"
value="{{ $media_language->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -55,7 +53,7 @@
required
type="text"
value="{{ $media_language->code }}"
>
/>
<label class="form__label form__label--floating" for="code">
{{ __('common.code') }}
</label>

View File

@@ -1,6 +1,5 @@
@extends('layout.default')
@section('breadcrumbs')
<li class="breadcrumbV2">
<a href="{{ route('staff.dashboard.index') }}" class="breadcrumb__link">
@@ -39,10 +38,12 @@
</tr>
</thead>
<tbody>
@foreach($media_languages as $media_language)
@foreach ($media_languages as $media_language)
<tr>
<td>
<a href="{{ route('staff.media_languages.edit', ['mediaLanguage' => $media_language]) }}">
<a
href="{{ route('staff.media_languages.edit', ['mediaLanguage' => $media_language]) }}"
>
{{ $media_language->name }}
</a>
</td>
@@ -66,17 +67,21 @@
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this media language: ${atob('{{ base64_encode($media_language->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this media language: ${atob(
'{{ base64_encode($media_language->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}

View File

@@ -23,68 +23,81 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('torrent.uploaded') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.category') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.resolution') }}</th>
<th>{{ __('torrent.size') }}</th>
<th>{{ __('torrent.uploader') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('torrent.uploaded') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.category') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.resolution') }}</th>
<th>{{ __('torrent.size') }}</th>
<th>{{ __('torrent.uploader') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($pending as $torrent)
<tr>
<td>
<time datetime="{{ $torrent->created_at }}" title="{{ $torrent->created_at }}">
{{ $torrent->created_at->diffForHumans() }}
</time>
</td>
<td>
<a href="{{ route('torrents.show', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
</td>
<td>
<i
class="{{ $torrent->category->icon }} torrent-icon"
data-original-title="{{ $torrent->category->name }} Torrent"
></i>
</td>
<td>{{ $torrent->type->name }}</td>
<td>{{ $torrent->resolution->name ?? 'No Res' }}</td>
<td>{{ $torrent->getSize() }}</td>
<td>
<x-user_tag :anon="false" :user="$torrent->user" />
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
>
@csrf
<input type="hidden" name="old_status" value="{{ $torrent->status }}">
<input type="hidden" name="status" value="{{ \App\Models\Torrent::APPROVED }}">
<button class="form__button form__button--filled">
<i class="{{ config('other.font-awesome') }} fa-thumbs-up"></i>
{{ __('common.moderation-approve') }}
</button>
</form>
</li>
@include('Staff.moderation.partials._postpone_dialog', ['torrent' => $torrent])
@include('Staff.moderation.partials._reject_dialog', ['torrent' => $torrent])
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="8">No pending torrents</td>
</tr>
@endforelse
@forelse ($pending as $torrent)
<tr>
<td>
<time
datetime="{{ $torrent->created_at }}"
title="{{ $torrent->created_at }}"
>
{{ $torrent->created_at->diffForHumans() }}
</time>
</td>
<td>
<a href="{{ route('torrents.show', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
</td>
<td>
<i
class="{{ $torrent->category->icon }} torrent-icon"
data-original-title="{{ $torrent->category->name }} Torrent"
></i>
</td>
<td>{{ $torrent->type->name }}</td>
<td>{{ $torrent->resolution->name ?? 'No Res' }}</td>
<td>{{ $torrent->getSize() }}</td>
<td>
<x-user_tag :anon="false" :user="$torrent->user" />
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
>
@csrf
<input
type="hidden"
name="old_status"
value="{{ $torrent->status }}"
/>
<input
type="hidden"
name="status"
value="{{ \App\Models\Torrent::APPROVED }}"
/>
<button class="form__button form__button--filled">
<i
class="{{ config('other.font-awesome') }} fa-thumbs-up"
></i>
{{ __('common.moderation-approve') }}
</button>
</form>
</li>
@include('Staff.moderation.partials._postpone_dialog', ['torrent' => $torrent])
@include('Staff.moderation.partials._reject_dialog', ['torrent' => $torrent])
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="8">No pending torrents</td>
</tr>
@endforelse
</tbody>
</table>
</div>
@@ -94,78 +107,95 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('staff.moderation-since') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.category') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.resolution') }}</th>
<th>{{ __('torrent.size') }}</th>
<th>{{ __('torrent.uploader') }}</th>
<th>{{ __('common.staff') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('staff.moderation-since') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.category') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.resolution') }}</th>
<th>{{ __('torrent.size') }}</th>
<th>{{ __('torrent.uploader') }}</th>
<th>{{ __('common.staff') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($postponed as $torrent)
<tr>
<td>
<time datetime="{{ $torrent->moderated_at }}" title="{{ $torrent->moderated_at }}">
{{ $torrent->moderated_at->diffForHumans() }}
</time>
</td>
<td>
<a href="{{ route('torrents.show', ['id' => $torrent->id]) }}">{{ $torrent->name }}</a>
</td>
<td>
<i
class="{{ $torrent->category->icon }} torrent-icon"
title="{{ $torrent->category->name }} Torrent"
></i>
</td>
<td>{{ $torrent->type->name }}</td>
<td>{{ $torrent->resolution->name ?? 'No Res' }}</td>
<td>{{ $torrent->getSize() }}</td>
<td>
<x-user_tag :anon="false" :user="$torrent->user" />
</td>
<td>
<x-user_tag :anon="false" :user="$torrent->moderated" />
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
>
@csrf
<input type="hidden" name="old_status" value="{{ $torrent->status }}">
<input type="hidden" name="status" value="{{ \App\Models\Torrent::APPROVED }}">
<button class="form__button form__button--filled">
<i class="{{ config('other.font-awesome') }} fa-thumbs-up"></i>
{{ __('common.moderation-approve') }}
</button>
</form>
</li>
<li class="data-table__action">
<a
href="{{ route('torrents.edit', ['id' => $torrent->id]) }}"
class="form__button form__button--filled"
>
<i class="{{ config('other.font-awesome') }} fa-pencil"></i>
{{ __('common.edit') }}
</a>
</li>
@include('Staff.moderation.partials._delete_dialog', ['torrent' => $torrent])
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="9">No postponed torrents</td>
</tr>
@endforelse
@forelse ($postponed as $torrent)
<tr>
<td>
<time
datetime="{{ $torrent->moderated_at }}"
title="{{ $torrent->moderated_at }}"
>
{{ $torrent->moderated_at->diffForHumans() }}
</time>
</td>
<td>
<a href="{{ route('torrents.show', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
</td>
<td>
<i
class="{{ $torrent->category->icon }} torrent-icon"
title="{{ $torrent->category->name }} Torrent"
></i>
</td>
<td>{{ $torrent->type->name }}</td>
<td>{{ $torrent->resolution->name ?? 'No Res' }}</td>
<td>{{ $torrent->getSize() }}</td>
<td>
<x-user_tag :anon="false" :user="$torrent->user" />
</td>
<td>
<x-user_tag :anon="false" :user="$torrent->moderated" />
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
>
@csrf
<input
type="hidden"
name="old_status"
value="{{ $torrent->status }}"
/>
<input
type="hidden"
name="status"
value="{{ \App\Models\Torrent::APPROVED }}"
/>
<button class="form__button form__button--filled">
<i
class="{{ config('other.font-awesome') }} fa-thumbs-up"
></i>
{{ __('common.moderation-approve') }}
</button>
</form>
</li>
<li class="data-table__action">
<a
href="{{ route('torrents.edit', ['id' => $torrent->id]) }}"
class="form__button form__button--filled"
>
<i
class="{{ config('other.font-awesome') }} fa-pencil"
></i>
{{ __('common.edit') }}
</a>
</li>
@include('Staff.moderation.partials._delete_dialog', ['torrent' => $torrent])
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="9">No postponed torrents</td>
</tr>
@endforelse
</tbody>
</table>
</div>
@@ -175,79 +205,96 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('staff.moderation-since') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.category') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.resolution') }}</th>
<th>{{ __('torrent.size') }}</th>
<th>{{ __('torrent.uploader') }}</th>
<th>{{ __('common.staff') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('staff.moderation-since') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.category') }}</th>
<th>{{ __('common.type') }}</th>
<th>{{ __('common.resolution') }}</th>
<th>{{ __('torrent.size') }}</th>
<th>{{ __('torrent.uploader') }}</th>
<th>{{ __('common.staff') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($rejected as $torrent)
<tr>
<td>
<time datetime="{{ $torrent->moderated_at }}" title="{{ $torrent->moderated_at }}">
{{ $torrent->moderated_at->diffForHumans() }}
</time>
</td>
<td>
<a href="{{ route('torrents.show', ['id' => $torrent->id]) }}">{{ $torrent->name }}</a>
</td>
<td>
<i
class="{{ $torrent->category->icon }} torrent-icon"
title="{{ $torrent->category->name }} Torrent"
></i>
</td>
<td>{{ $torrent->type->name }}</td>
<td>{{ $torrent->resolution->name ?? 'No Res' }}</td>
<td>{{ $torrent->getSize() }}</td>
<td>
<x-user_tag :anon="false" :user="$torrent->user" />
</td>
<td>
<x-user_tag :anon="false" :user="$torrent->moderated" />
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
>
@csrf
<input type="hidden" name="old_status" value="{{ $torrent->status }}">
<input type="hidden" name="status" value="{{ \App\Models\Torrent::APPROVED }}">
<button class="form__button form__button--filled">
<i class="{{ config('other.font-awesome') }} fa-thumbs-up"></i>
{{ __('common.moderation-approve') }}
</button>
</form>
</li>
@include('Staff.moderation.partials._postpone_dialog', ['torrent' => $torrent])
<li class="data-table__action">
<a
href="{{ route('torrents.edit', ['id' => $torrent->id]) }}"
class="form__button form__button--filled"
>
<i class="{{ config('other.font-awesome') }} fa-pencil"></i>
{{ __('common.edit') }}
</a>
</li>
@include('Staff.moderation.partials._delete_dialog', ['torrent' => $torrent])
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="9">No rejected torrents</td>
</tr>
@endforelse
@forelse ($rejected as $torrent)
<tr>
<td>
<time
datetime="{{ $torrent->moderated_at }}"
title="{{ $torrent->moderated_at }}"
>
{{ $torrent->moderated_at->diffForHumans() }}
</time>
</td>
<td>
<a href="{{ route('torrents.show', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
</td>
<td>
<i
class="{{ $torrent->category->icon }} torrent-icon"
title="{{ $torrent->category->name }} Torrent"
></i>
</td>
<td>{{ $torrent->type->name }}</td>
<td>{{ $torrent->resolution->name ?? 'No Res' }}</td>
<td>{{ $torrent->getSize() }}</td>
<td>
<x-user_tag :anon="false" :user="$torrent->user" />
</td>
<td>
<x-user_tag :anon="false" :user="$torrent->moderated" />
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
method="POST"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
>
@csrf
<input
type="hidden"
name="old_status"
value="{{ $torrent->status }}"
/>
<input
type="hidden"
name="status"
value="{{ \App\Models\Torrent::APPROVED }}"
/>
<button class="form__button form__button--filled">
<i
class="{{ config('other.font-awesome') }} fa-thumbs-up"
></i>
{{ __('common.moderation-approve') }}
</button>
</form>
</li>
@include('Staff.moderation.partials._postpone_dialog', ['torrent' => $torrent])
<li class="data-table__action">
<a
href="{{ route('torrents.edit', ['id' => $torrent->id]) }}"
class="form__button form__button--filled"
>
<i
class="{{ config('other.font-awesome') }} fa-pencil"
></i>
{{ __('common.edit') }}
</a>
</li>
@include('Staff.moderation.partials._delete_dialog', ['torrent' => $torrent])
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="9">No rejected torrents</td>
</tr>
@endforelse
</tbody>
</table>
</div>

View File

@@ -16,18 +16,24 @@
@csrf
@method('DELETE')
<p class="form__group">
<input id="type" type="hidden" name="type" value="{{ __('torrent.torrent') }}">
<input id="id" type="hidden" name="id" value="{{ $torrent->id }}">
<input id="type" type="hidden" name="type" value="{{ __('torrent.torrent') }}" />
<input id="id" type="hidden" name="id" value="{{ $torrent->id }}" />
</p>
<p class="form__group">
<textarea class="form__textarea" name="message" id="message"></textarea>
<label class="form__label form__label--floating" for="message">Deletion Reason</label>
<label class="form__label form__label--floating" for="message">
Deletion Reason
</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.delete') }}
</button>
<button formmethod="dialog" formnovalidate class="form__button form__button--outlined">
<button
formmethod="dialog"
formnovalidate
class="form__button form__button--outlined"
>
{{ __('common.cancel') }}
</button>
</p>

View File

@@ -5,7 +5,8 @@
</button>
<dialog class="dialog" x-ref="dialog">
<h4 class="dialog__heading">
{{ __('common.moderation-postpone') }} {{ __('torrent.torrent') }}: {{ $torrent->name }}
{{ __('common.moderation-postpone') }} {{ __('torrent.torrent') }}:
{{ $torrent->name }}
</h4>
<form
class="dialog__form"
@@ -14,19 +15,27 @@
x-on:click.outside="$refs.dialog.close()"
>
@csrf
<input type="hidden" name="type" value="{{ __('torrent.torrent') }}">
<input type="hidden" name="id" value="{{ $torrent->id }}">
<input type="hidden" name="old_status" value="{{ $torrent->status }}">
<input type="hidden" name="status" value="{{ \App\Models\Torrent::POSTPONED }}">
<input type="hidden" name="type" value="{{ __('torrent.torrent') }}" />
<input type="hidden" name="id" value="{{ $torrent->id }}" />
<input type="hidden" name="old_status" value="{{ $torrent->status }}" />
<input type="hidden" name="status" value="{{ \App\Models\Torrent::POSTPONED }}" />
<p class="form__group">
<textarea class="form__textarea" name="message" id="message">{{ old('message') }}</textarea>
<label class="form__label form__label--floating" for="message">Postpone Message</label>
<textarea class="form__textarea" name="message" id="message">
{{ old('message') }}</textarea
>
<label class="form__label form__label--floating" for="message">
Postpone Message
</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.moderation-postpone') }}
</button>
<button formmethod="dialog" formnovalidate class="form__button form__button--outlined">
<button
formmethod="dialog"
formnovalidate
class="form__button form__button--outlined"
>
{{ __('common.cancel') }}
</button>
</p>

View File

@@ -5,28 +5,37 @@
</button>
<dialog class="dialog" x-ref="dialog">
<h3 class="dialog__heading">
{{ __('common.moderation-reject') }} {{ __('torrent.torrent') }}: {{ $torrent->name }}
{{ __('common.moderation-reject') }} {{ __('torrent.torrent') }}:
{{ $torrent->name }}
</h3>
<form
class="dialog__form"
method="POST"
action="{{ route("staff.moderation.update", ['id' => $torrent->id]) }}"
action="{{ route('staff.moderation.update', ['id' => $torrent->id]) }}"
x-on:click.outside="$refs.dialog.close()"
>
@csrf
<input id="type" type="hidden" name="type" value="{{ __('torrent.torrent') }}">
<input id="id" type="hidden" name="id" value="{{ $torrent->id }}">
<input type="hidden" name="old_status" value="{{ $torrent->status }}">
<input type="hidden" name="status" value="{{ \App\Models\Torrent::REJECTED }}">
<input id="type" type="hidden" name="type" value="{{ __('torrent.torrent') }}" />
<input id="id" type="hidden" name="id" value="{{ $torrent->id }}" />
<input type="hidden" name="old_status" value="{{ $torrent->status }}" />
<input type="hidden" name="status" value="{{ \App\Models\Torrent::REJECTED }}" />
<p class="form__group">
<textarea id="message" class="form__textarea" name="message">{{ old('message') }}</textarea>
<label for="message" class="form__label form__label__floating">Rejection Message</label>
<textarea id="message" class="form__textarea" name="message">
{{ old('message') }}</textarea
>
<label for="message" class="form__label form__label__floating">
Rejection Message
</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.moderation-reject') }}
</button>
<button formmethod="dialog" formnovalidate class="form__button form__button--outlined">
<button
formmethod="dialog"
formnovalidate
class="form__button form__button--outlined"
>
{{ __('common.cancel') }}
</button>
</p>

View File

@@ -1,11 +1,14 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.user') }} Notes - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('common.user') }} Notes - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="User Notes - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="User Notes - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('nav-tabs')

View File

@@ -22,7 +22,7 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('common.new-adj') }}
{{ __('staff.page') }}
</h2>
@@ -30,13 +30,7 @@
<form class="form" method="POST" action="{{ route('staff.pages.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
type="text"
name="name"
required
>
<input id="name" class="form__text" type="text" name="name" required />
<label class="form__label form__label--floating" for="name">
{{ __('staff.page') }} {{ __('common.name') }}
</label>

View File

@@ -42,7 +42,7 @@
required
type="text"
value="{{ $page->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>

View File

@@ -18,7 +18,10 @@
<header class="panel__header">
<h2 class="panel__heading">{{ __('staff.pages') }}</h2>
<div class="panel__actions">
<a href="{{ route('staff.pages.create') }}" class="panel__action form__button form__button--text">
<a
href="{{ route('staff.pages.create') }}"
class="panel__action form__button form__button--text"
>
{{ __('common.add') }}
</a>
</div>
@@ -26,77 +29,84 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.title') }}</th>
<th>{{ __('common.date') }}</th>
<th>{{ __('common.actions') }}</th>
</tr>
<tr>
<th>{{ __('common.title') }}</th>
<th>{{ __('common.date') }}</th>
<th>{{ __('common.actions') }}</th>
</tr>
</thead>
<tbody>
@forelse ($pages as $page)
<tr>
<td>
<a href="{{ route('staff.pages.edit', ['page' => $page]) }}">
{{ $page->name }}
</a>
</td>
<td>
<time datetime="{{ $page->created_at }}" title="{{ $page->created_at }}">
{{ $page->created_at->diffForHumans() }}
</time>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('pages.show', ['page' => $page]) }}"
class="form__button form__button--text"
>
{{ __('common.view') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.pages.edit', ['page' => $page]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.pages.destroy', ['page' => $page]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this page: ${atob('{{ base64_encode($page->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@forelse ($pages as $page)
<tr>
<td>
<a href="{{ route('staff.pages.edit', ['page' => $page]) }}">
{{ $page->name }}
</a>
</td>
<td>
<time
datetime="{{ $page->created_at }}"
title="{{ $page->created_at }}"
>
{{ $page->created_at->diffForHumans() }}
</time>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('pages.show', ['page' => $page]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No pages</td>
</tr>
@endforelse
{{ __('common.view') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.pages.edit', ['page' => $page]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.pages.destroy', ['page' => $page]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this page: ${atob(
'{{ base64_encode($page->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No pages</td>
</tr>
@endforelse
</tbody>
</table>
</div>

View File

@@ -5,7 +5,8 @@
>
{{ __('common.users') }}
</a>
</li><li class="{{ Route::is('staff.bans.index') ? 'nav-tab--active' : 'nav-tavV2' }}">
</li>
<li class="{{ Route::is('staff.bans.index') ? 'nav-tab--active' : 'nav-tavV2' }}">
<a
class="{{ Route::is('staff.bans.index') ? 'nav-tab--active__link' : 'nav-tab__link' }}"
href="{{ route('staff.bans.index') }}"
@@ -36,4 +37,4 @@
>
Peers
</a>
</li>
</li>

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.user') }} {{ __('staff.passkeys') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('common.user') }} {{ __('staff.passkeys') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('staff.passkeys') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('staff.passkeys') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')

View File

@@ -10,9 +10,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Peers
</li>
<li class="breadcrumb--active">Peers</li>
@endsection
@section('nav-tabs')

View File

@@ -42,7 +42,7 @@
required
type="text"
value="{{ old('title') }}"
>
/>
<label class="form__label form__label--floating" for="title">
{{ __('common.title') }}
</label>
@@ -56,8 +56,11 @@
required
type="text"
placeholder=" "
/>
<label
class="form__label form__label--floating"
x-bind:for="'option' + option"
>
<label class="form__label form__label--floating" x-bind:for="'option' + option">
{{ __('poll.option') }}
</label>
</p>
@@ -84,7 +87,7 @@
name="multiple_choice"
type="checkbox"
value="1"
>
/>
<label class="form__label" for="multiple_choice">
{{ __('poll.multiple-choice') }}
</label>

View File

@@ -24,16 +24,16 @@
@section('main')
<section class="panelV2">
<h2 class="panel__heading">{{ __('poll.edit-poll') }}: {{$poll->title}}</h2>
<h2 class="panel__heading">{{ __('poll.edit-poll') }}: {{ $poll->title }}</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.polls.update', ['poll' => $poll]) }}"
x-data='{ extraOptions: {!! $poll->options->map(fn ($item) => $item->only(['id', 'name'])) !!} }'
x-data="{ extraOptions: {!! $poll->options->map(fn ($item) => $item->only(['id', 'name'])) !!} }"
>
@csrf
@method('PATCH')
@method('PATCH')
<p class="form__group">
<input
id="title"
@@ -43,14 +43,18 @@
required
type="text"
value="{{ $poll->title }}"
>
/>
<label class="form__label form__label--floating" for="title">
{{ __('poll.title') }}
</label>
</p>
<template x-for="(option, i) in extraOptions">
<p class="form__group">
<input type="hidden" x-bind:name="'options[' + i + '][id]'" x-bind:value="option['id']">
<input
type="hidden"
x-bind:name="'options[' + i + '][id]'"
x-bind:value="option['id']"
/>
<input
x-bind:id="'option' + i"
class="form__text"
@@ -58,17 +62,27 @@
x-bind:name="'options[' + i + '][name]'"
x-bind:value="option['name']"
required
/>
<label
class="form__label form__label--floating"
x-bind:for="'option' + i"
>
<label class="form__label form__label--floating" x-bind:for="'option' + i">
{{ __('poll.option') }}
</label>
</p>
</template>
<p class="form__group">
<button x-on:click.prevent='extraOptions.push({"id": 0, "name": ""})' class="form__button form__button--outlined">
<button
x-on:click.prevent="extraOptions.push({ 'id': 0, 'name': '' })"
class="form__button form__button--outlined"
>
{{ __('poll.add-option') }}
</button>
<button x-on:click.prevent="extraOptions.length > 2 ? extraOptions.pop() : null" id="del" class="form__button form__button--outlined">
<button
x-on:click.prevent="extraOptions.length > 2 ? extraOptions.pop() : null"
id="del"
class="form__button form__button--outlined"
>
{{ __('poll.delete-option') }}
</button>
</p>
@@ -81,7 +95,7 @@
name="multiple_choice"
value="1"
@checked($poll->multiple_choice)
>
/>
<label class="form__label" for="multiple_choice">
{{ __('poll.multiple-choice') }}
</label>
@@ -94,5 +108,4 @@
</form>
</div>
</section>
@endsection

View File

@@ -28,73 +28,80 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('poll.title') }}</th>
<th>{{ __('common.date') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('poll.title') }}</th>
<th>{{ __('common.date') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($polls as $poll)
<tr>
<td>
<a href="{{ route('staff.polls.show', ['poll' => $poll]) }}">
{{ $poll->title }}
</a>
</td>
<td>
<time datetime="{{ $poll->created_at }}" title="{{ $poll->created_at }}">
{{ date('d M Y', $poll->created_at->getTimestamp()) }}
</time>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('polls.show', ['poll' => $poll]) }}"
class="form__button form__button--text"
>
{{ __('common.view') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.polls.edit', ['poll' => $poll]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.polls.destroy', ['poll' => $poll]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this poll: ${atob('{{ base64_encode($poll->title) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@foreach ($polls as $poll)
<tr>
<td>
<a href="{{ route('staff.polls.show', ['poll' => $poll]) }}">
{{ $poll->title }}
</a>
</td>
<td>
<time
datetime="{{ $poll->created_at }}"
title="{{ $poll->created_at }}"
>
{{ date('d M Y', $poll->created_at->getTimestamp()) }}
</time>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('polls.show', ['poll' => $poll]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
{{ __('common.view') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.polls.edit', ['poll' => $poll]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.polls.destroy', ['poll' => $poll]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this poll: ${atob(
'{{ base64_encode($poll->title) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -33,7 +33,8 @@
@foreach ($poll->options as $option)
<p class="form__group">
<label class="form__label" for="option{{ $loop->iteration }}">
{{ $option->name }} ({{ \number_format($total === 0 ? 0 : 100 * $option->votes / $total, 2) }}%)
{{ $option->name }}
({{ \number_format($total === 0 ? 0 : (100 * $option->votes) / $total, 2) }}%)
</label>
<meter
id="option{{ $loop->iteration }}"
@@ -42,7 +43,9 @@
max="{{ $total }}"
value="{{ $option->votes }}"
>
{{ \number_format($total === 0 ? 0 : 100 * $option->votes / $total, 1) }}% - {{ $option->votes }} {{ $option->votes === 1 ? __('poll.vote') : __('poll.votes') }}
{{ \number_format($total === 0 ? 0 : (100 * $option->votes) / $total, 1) }}%
- {{ $option->votes }}
{{ $option->votes === 1 ? __('poll.vote') : __('poll.votes') }}
</meter>
</p>
@endforeach

View File

@@ -7,9 +7,7 @@
</a>
</li>
<li class="breadcrumbV2">
<a href="{{ route('staff.regions.index') }}" class="breadcrumb__link">
Torrent Regions
</a>
<a href="{{ route('staff.regions.index') }}" class="breadcrumb__link">Torrent Regions</a>
</li>
<li class="breadcrumb--active">
{{ __('common.new-adj') }}
@@ -22,20 +20,10 @@
<section class="panelV2">
<h2 class="panel__heading">Add A Torrent Region</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.regions.store') }}"
>
<form class="form" method="POST" action="{{ route('staff.regions.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
required
type="text"
>
<input id="name" class="form__text" name="name" required type="text" />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -49,7 +37,7 @@
pattern="[0-9]*"
type="text"
required
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>

View File

@@ -7,9 +7,7 @@
</a>
</li>
<li class="breadcrumbV2">
<a href="{{ route('staff.regions.index') }}" class="breadcrumb__link">
Torrent Regions
</a>
<a href="{{ route('staff.regions.index') }}" class="breadcrumb__link">Torrent Regions</a>
</li>
<li class="breadcrumbV2">
{{ $region->name }}
@@ -42,7 +40,7 @@
required
type="text"
value="{{ $region->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -57,7 +55,7 @@
required
type="text"
value="{{ $region->position }}"
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>

View File

@@ -6,9 +6,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Torrent Regions
</li>
<li class="breadcrumb--active">Torrent Regions</li>
@endsection
@section('page', 'page__region--index')
@@ -29,90 +27,107 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($regions as $region)
<tr>
<td>{{ $region->position }}</td>
<td>
<a href="{{ route('staff.regions.edit', ['region' => $region]) }}">
{{ $region->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.regions.edit', ['region' => $region]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action" x-data>
<button class="form__button form__button--text" x-on:click.stop="$refs.dialog.showModal()">
{{ __('common.delete') }}
</button>
<dialog class="dialog" x-ref="dialog">
<h4 class="dialog__heading">
Delete Torrent Region: {{ $region->name }}
</h4>
<form
class="dialog__form"
method="POST"
action="{{ route('staff.regions.destroy', ['region' => $region]) }}"
x-on:click.outside="$refs.dialog.close()"
@forelse ($regions as $region)
<tr>
<td>{{ $region->position }}</td>
<td>
<a href="{{ route('staff.regions.edit', ['region' => $region]) }}">
{{ $region->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.regions.edit', ['region' => $region]) }}"
class="form__button form__button--text"
>
@csrf
@method('DELETE')
<p class="form__group">
An existing torrent on site may already use this region. Would you like to change it?
</p>
<p class="form__group" x-data>
<select
name="region_id"
id="autoreg"
class="form__select"
x-data="{ region: '' }"
x-model="region"
x-bind:class="region === '' ? 'form__select--default' : ''"
>
<option hidden disabled selected value=""></option>
@foreach ($regions as $region)
<option value="{{ $region->id }}">
{{ $region->name }}
</option>
@endforeach
</select>
<label class="form__label form__label--floating" for="autoreg">
Replacement region
</label>
</p>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.delete') }}
</button>
<button formmethod="dialog" formnovalidate class="form__button form__button--outlined">
{{ __('common.cancel') }}
</button>
</p>
</form>
</dialog>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No regions</td>
</tr>
@endforelse
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action" x-data>
<button
class="form__button form__button--text"
x-on:click.stop="$refs.dialog.showModal()"
>
{{ __('common.delete') }}
</button>
<dialog class="dialog" x-ref="dialog">
<h4 class="dialog__heading">
Delete Torrent Region: {{ $region->name }}
</h4>
<form
class="dialog__form"
method="POST"
action="{{ route('staff.regions.destroy', ['region' => $region]) }}"
x-on:click.outside="$refs.dialog.close()"
>
@csrf
@method('DELETE')
<p class="form__group">
An existing torrent on site may already use this
region. Would you like to change it?
</p>
<p class="form__group" x-data>
<select
name="region_id"
id="autoreg"
class="form__select"
x-data="{ region: '' }"
x-model="region"
x-bind:class="region === '' ? 'form__select--default' : ''"
>
<option
hidden
disabled
selected
value=""
></option>
@foreach ($regions as $region)
<option value="{{ $region->id }}">
{{ $region->name }}
</option>
@endforeach
</select>
<label
class="form__label form__label--floating"
for="autoreg"
>
Replacement region
</label>
</p>
<p class="form__group">
<button
class="form__button form__button--filled"
>
{{ __('common.delete') }}
</button>
<button
formmethod="dialog"
formnovalidate
class="form__button form__button--outlined"
>
{{ __('common.cancel') }}
</button>
</p>
</form>
</dialog>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No regions</td>
</tr>
@endforelse
</tbody>
</table>
</div>

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Reports - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Reports - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -27,16 +27,16 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th>{{ __('common.title') }}</th>
<th>Reported</th>
<th>{{ __('common.reporter') }}</th>
<th>{{ __('user.created-on') }}</th>
<th>{{ __('user.judge') }}</th>
<th>{{ __('forum.solved') }}</th>
</tr>
<tr>
<th>ID</th>
<th>Type</th>
<th>{{ __('common.title') }}</th>
<th>Reported</th>
<th>{{ __('common.reporter') }}</th>
<th>{{ __('user.created-on') }}</th>
<th>{{ __('user.judge') }}</th>
<th>{{ __('forum.solved') }}</th>
</tr>
</thead>
<tbody>
@forelse ($reports as $report)
@@ -55,7 +55,10 @@
<x-user_tag :anon="false" :user="$report->reporter" />
</td>
<td>
<time datetime="{{ $report->created_at }}" title="{{ $report->created_at }}">
<time
datetime="{{ $report->created_at }}"
title="{{ $report->created_at }}"
>
{{ $report->created_at->toDayDateTimeString() }}
</time>
</td>
@@ -66,10 +69,14 @@
</td>
<td>
@if ($report->solved)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
{{ __('common.yes') }}
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
{{ __('common.no') }}
@endif
</td>

View File

@@ -5,7 +5,8 @@
@endsection
@section('meta')
<meta name="description" content="Reports - {{ __('staff.staff-dashboard') }}"> @endsection
<meta name="description" content="Reports - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
<li class="breadcrumbV2">
@@ -18,9 +19,7 @@
{{ __('staff.reports-log') }}
</a>
</li>
<li class="breadcrumb--active">
{{ __('common.report') }} Details
</li>
<li class="breadcrumb--active">{{ __('common.report') }} Details</li>
@endsection
@section('page', 'page__poll--show')
@@ -36,9 +35,12 @@
</div>
</section>
@endif
@if ($report->request)
<section class="panelV2">
<h2 class="panel__heading">{{ __('torrent.torrent-request') }} {{ __('request.title') }}</h2>
<h2 class="panel__heading">
{{ __('torrent.torrent-request') }} {{ __('request.title') }}
</h2>
<div class="panel__body">
<a href="{{ route('requests.show', ['torrentRequest' => $report->request]) }}">
{{ $report->title }}
@@ -46,6 +48,7 @@
</div>
</section>
@endif
<section class="panelV2">
<h2 class="panel__heading">{{ __('common.message') }}</h2>
<div class="panel__body">{{ $report->message }}</div>
@@ -64,6 +67,7 @@
</div>
</section>
@endif
@if ($report->solved)
<section class="panelV2">
<h2 class="panel__heading">Verdict</h2>

View File

@@ -22,20 +22,10 @@
<section class="panelV2">
<h2 class="panel__heading">Add A Torrent Resolution</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.resolutions.store') }}"
>
<form class="form" method="POST" action="{{ route('staff.resolutions.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
required
type="text"
>
<input id="name" class="form__text" name="name" required type="text" />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -49,7 +39,7 @@
pattern="[0-9]*"
type="text"
required
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>

View File

@@ -42,7 +42,7 @@
required
type="text"
value="{{ $resolution->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -57,7 +57,7 @@
required
type="text"
value="{{ $resolution->position }}"
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>

View File

@@ -29,65 +29,71 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($resolutions as $resolution)
<tr>
<td>{{ $resolution->position }}</td>
<td>
<a href="{{ route('staff.resolutions.edit', ['resolution' => $resolution]) }}">
{{ $resolution->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.resolutions.edit', ['resolution' => $resolution]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.resolutions.destroy', ['resolution' => $resolution]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this resolution: ${atob('{{ base64_encode($resolution->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@forelse ($resolutions as $resolution)
<tr>
<td>{{ $resolution->position }}</td>
<td>
<a
href="{{ route('staff.resolutions.edit', ['resolution' => $resolution]) }}"
>
{{ $resolution->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.resolutions.edit', ['resolution' => $resolution]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No resolution</td>
</tr>
@endforelse
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.resolutions.destroy', ['resolution' => $resolution]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this resolution: ${atob(
'{{ base64_encode($resolution->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="3">No resolution</td>
</tr>
@endforelse
</tbody>
</table>
</div>

View File

@@ -26,402 +26,418 @@
<section class="panelV2">
<h2 class="panel__heading">{{ __('rss.create-public-feed') }}</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.rss.store') }}"
>
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
type="text"
name="name"
required
>
<label class="form__label form__label--floating" for="name">
{{ __('rss.feed') }} {{ __('rss.name') }}
</label>
</p>
<p class="form__group">
<input
id="position"
class="form__text"
inputmode="numeric"
name="position"
pattern="[0-9]*"
placeholder=" "
type="text"
>
<label class="form__label form__label--floating" for="position">
{{ __('rss.feed') }} {{ __('common.position') }}
</label>
</p>
<p class="form__group">
<input
id="search"
class="form__text"
name="search"
placeholder=" "
type="text"
>
<label class="form__label form__label--floating" for="search">
{{ __('torrent.torrent') }} {{ __('torrent.name') }}
</label>
</p>
<p class="form__group">
<input
id="description"
type="text"
class="form__text"
name="description"
placeholder=" "
>
<label class="form__label form__label--floating" for="description">
{{ __('torrent.torrent') }} {{ __('torrent.description') }}
</label>
</p>
<p class="form__group">
<input
id="uploader"
type="text"
class="form__text"
name="uploader"
placeholder=" "
>
<label class="form__label form__label--floating" for="uploader">
{{ __('torrent.torrent') }} {{ __('torrent.uploader') }}
</label>
</p>
<div class="form__group--horizontal">
<form class="form" method="POST" action="{{ route('staff.rss.store') }}">
@csrf
<p class="form__group">
<input
id="autotmdb"
class="form__text"
inputmode="numeric"
name="tmdb"
pattern="[0-9]*"
placeholder=" "
type="text"
>
<label class="form__label form__label--floating" for="autotmdb">
TMDB ID
<input id="name" class="form__text" type="text" name="name" required />
<label class="form__label form__label--floating" for="name">
{{ __('rss.feed') }} {{ __('rss.name') }}
</label>
</p>
<p class="form__group">
<input
id="autoimdb"
id="position"
class="form__text"
inputmode="numeric"
name="imdb"
name="position"
pattern="[0-9]*"
placeholder=" "
type="text"
>
<label class="form__label form__label--floating" for="autoimdb">
IMDB ID
/>
<label class="form__label form__label--floating" for="position">
{{ __('rss.feed') }} {{ __('common.position') }}
</label>
</p>
<p class="form__group">
<input
id="autotvdb"
id="search"
class="form__text"
inputmode="numeric"
name="tvdb"
pattern="[0-9]*"
name="search"
placeholder=" "
type="text"
>
<label class="form__label form__label--floating" for="autotvdb">
TVDB ID
/>
<label class="form__label form__label--floating" for="search">
{{ __('torrent.torrent') }} {{ __('torrent.name') }}
</label>
</p>
<p class="form__group">
<input type="hidden" name="mal" value="0" />
<input
id="automal"
class="form__text"
inputmode="numeric"
name="mal"
pattern="[0-9]*"
placeholder=" "
id="description"
type="text"
>
<label class="form__label form__label--floating" for="automal">
MAL ID
class="form__text"
name="description"
placeholder=" "
/>
<label class="form__label form__label--floating" for="description">
{{ __('torrent.torrent') }} {{ __('torrent.description') }}
</label>
</p>
</div>
<div class="form__group--horizontal">
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.category') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($categories as $category)
<p class="form__group">
<input
id="uploader"
type="text"
class="form__text"
name="uploader"
placeholder=" "
/>
<label class="form__label form__label--floating" for="uploader">
{{ __('torrent.torrent') }} {{ __('torrent.uploader') }}
</label>
</p>
<div class="form__group--horizontal">
<p class="form__group">
<input
id="autotmdb"
class="form__text"
inputmode="numeric"
name="tmdb"
pattern="[0-9]*"
placeholder=" "
type="text"
/>
<label class="form__label form__label--floating" for="autotmdb">
TMDB ID
</label>
</p>
<p class="form__group">
<input
id="autoimdb"
class="form__text"
inputmode="numeric"
name="imdb"
pattern="[0-9]*"
placeholder=" "
type="text"
/>
<label class="form__label form__label--floating" for="autoimdb">
IMDB ID
</label>
</p>
<p class="form__group">
<input
id="autotvdb"
class="form__text"
inputmode="numeric"
name="tvdb"
pattern="[0-9]*"
placeholder=" "
type="text"
/>
<label class="form__label form__label--floating" for="autotvdb">
TVDB ID
</label>
</p>
<p class="form__group">
<input type="hidden" name="mal" value="0" />
<input
id="automal"
class="form__text"
inputmode="numeric"
name="mal"
pattern="[0-9]*"
placeholder=" "
type="text"
/>
<label class="form__label form__label--floating" for="automal">
MAL ID
</label>
</p>
</div>
<div class="form__group--horizontal">
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.category') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($categories as $category)
<p class="form__group">
<label class="form__label">
<input
id="{{ $category->name }}"
class="form__checkbox"
name="categories[]"
type="checkbox"
value="{{ $category->id }}"
/>
{{ $category->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.type') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($types as $type)
<p class="form__group">
<label class="form__label">
<input
id="{{ $type->name }}"
class="form__checkbox"
name="types[]"
type="checkbox"
value="{{ $type->id }}"
/>
{{ $type->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.resolution') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($resolutions as $resolution)
<p class="form__group">
<label class="form__label">
<input
id="{{ $resolution->name }}"
class="form__checkbox"
name="resolutions[]"
type="checkbox"
value="{{ $resolution->id }}"
/>
{{ $resolution->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.genre') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($genres as $genre)
<p class="form__group">
<label class="form__label">
<input
id="{{ $genre->name }}"
class="form__checkbox"
name="genres[]"
type="checkbox"
value="{{ $genre->id }}"
/>
{{ $genre->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.discounts') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="{{ $category->name }}"
id="freeleech"
class="form__checkbox"
name="categories[]"
name="freeleech"
type="checkbox"
value="{{ $category->id }}"
>
{{ $category->name }}
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-star text-gold"
></span>
{{ __('torrent.freeleech') }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.type') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($types as $type)
<p class="form__group">
<label class="form__label">
<input
id="{{ $type->name }}"
id="doubleupload"
class="form__checkbox"
name="types[]"
name="doubleupload"
type="checkbox"
value="{{ $type->id }}"
>
{{ $type->name }}
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-gem text-green"
></span>
{{ __('torrent.double-upload') }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.resolution') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($resolutions as $resolution)
<p class="form__group">
<label class="form__label">
<input
id="{{ $resolution->name }}"
id="featured"
class="form__checkbox"
name="resolutions[]"
name="featured"
type="checkbox"
value="{{ $resolution->id }}"
>
{{ $resolution->name }}
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-certificate text-pink"
></span>
{{ __('torrent.featured') }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.genre') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($genres as $genre)
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.special') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="{{ $genre->name }}"
id="stream"
class="form__checkbox"
name="genres[]"
name="stream"
type="checkbox"
value="{{ $genre->id }}"
>
{{ $genre->name }}
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-play text-red"
></span>
{{ __('torrent.stream-optimized') }}
</label>
</p>
@endforeach
</div>
</fieldset>
<p class="form__group">
<label class="form__label">
<input
id="highspeed"
class="form__checkbox"
name="highspeed"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-tachometer text-red"
></span>
{{ __('common.high-speeds') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="sd"
class="form__checkbox"
name="sd"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-ticket text-orange"
></span>
{{ __('torrent.sd-content') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="internal"
class="form__checkbox"
name="internal"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-magic"
style="color: #baaf92"
></span>
{{ __('torrent.internal') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="personalrelease"
class="form__checkbox"
name="personalrelease"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-user-plus"
style="color: #865be9"
></span>
{{ __('torrent.personal-release') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="bookmark"
class="form__checkbox"
name="bookmark"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-bookmark text-blue"
></span>
{{ __('torrent.bookmark') }}
</label>
</p>
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.health') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="alive"
class="form__checkbox"
name="alive"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-smile text-green"
></span>
{{ __('torrent.alive') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dying"
class="form__checkbox"
name="dying"
type="checkbox"
value="1"
/>
<span
class="{{ config('other.font-awesome') }} fa-meh text-orange"
></span>
{{ __('torrent.dying-torrent') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dead"
class="form__checkbox"
name="dead"
type="checkbox"
value="0"
/>
<span
class="{{ config('other.font-awesome') }} fa-frown text-red"
></span>
{{ __('torrent.dead-torrent') }}
</label>
</p>
</div>
</fieldset>
</div>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.discounts') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="freeleech"
class="form__checkbox"
name="freeleech"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-star text-gold"></span>
{{ __('torrent.freeleech') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="doubleupload"
class="form__checkbox"
name="doubleupload"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-gem text-green"></span>
{{ __('torrent.double-upload') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="featured"
class="form__checkbox"
name="featured"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-certificate text-pink"></span>
{{ __('torrent.featured') }}
</label>
</p>
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.special') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="stream"
class="form__checkbox"
name="stream"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-play text-red"></span>
{{ __('torrent.stream-optimized') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="highspeed"
class="form__checkbox"
name="highspeed"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-tachometer text-red"></span>
{{ __('common.high-speeds') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="sd"
class="form__checkbox"
name="sd"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-ticket text-orange"></span>
{{ __('torrent.sd-content') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="internal"
class="form__checkbox"
name="internal"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-magic" style="color: #baaf92;"></span>
{{ __('torrent.internal') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="personalrelease"
class="form__checkbox"
name="personalrelease"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-user-plus" style="color: #865be9;"></span>
{{ __('torrent.personal-release') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="bookmark"
class="form__checkbox"
name="bookmark"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-bookmark text-blue"></span>
{{ __('torrent.bookmark') }}
</label>
</p>
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.health') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="alive"
class="form__checkbox"
name="alive"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-smile text-green"></span>
{{ __('torrent.alive') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dying"
class="form__checkbox"
name="dying"
type="checkbox"
value="1"
>
<span class="{{ config('other.font-awesome') }} fa-meh text-orange"></span>
{{ __('torrent.dying-torrent') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dead"
class="form__checkbox"
name="dead"
type="checkbox"
value="0"
>
<span class="{{ config('other.font-awesome') }} fa-frown text-red"></span>
{{ __('torrent.dead-torrent') }}
</label>
</p>
</div>
</fieldset>
</div>
</div>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.create') }}
</button>
</p>
</form>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.create') }}
</button>
</p>
</form>
</div>
</section>
@endsection

View File

@@ -26,428 +26,454 @@
<section class="panelV2">
<h2 class="panel__heading">{{ __('rss.edit-public-feed') }}</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.rss.update', ['rss' => $rss]) }}"
>
@csrf
@method('PATCH')
<p class="form__group">
<input
id="name"
class="form__text"
type="text"
name="name"
required
value="{{ $rss->name }}"
>
<label class="form__label form__label--floating" for="name">
{{ __('rss.feed') }} {{ __('rss.name') }}
</label>
</p>
<p class="form__group">
<input
id="position"
class="form__text"
inputmode="numeric"
name="position"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->position }}"
>
<label class="form__label form__label--floating" for="position">
{{ __('rss.feed') }} {{ __('common.position') }}
</label>
</p>
<p class="form__group">
<input
id="search"
class="form__text"
name="search"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->search }}"
>
<label class="form__label form__label--floating" for="search">
{{ __('torrent.torrent') }} {{ __('torrent.name') }}
</label>
</p>
<p class="form__group">
<input
id="description"
type="text"
class="form__text"
name="description"
placeholder=" "
value="{{ $rss->object_torrent->description }}"
>
<label class="form__label form__label--floating" for="description">
{{ __('torrent.torrent') }} {{ __('torrent.description') }}
</label>
</p>
<p class="form__group">
<input
id="uploader"
type="text"
class="form__text"
name="uploader"
placeholder=" "
value="{{ $rss->object_torrent->uploader }}"
>
<label class="form__label form__label--floating" for="uploader">
{{ __('torrent.torrent') }} {{ __('torrent.uploader') }}
</label>
</p>
<div class="form__group--horizontal">
<form
class="form"
method="POST"
action="{{ route('staff.rss.update', ['rss' => $rss]) }}"
>
@csrf
@method('PATCH')
<p class="form__group">
<input
id="autotmdb"
id="name"
class="form__text"
inputmode="numeric"
name="tmdb"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->tmdb }}"
>
<label class="form__label form__label--floating" for="autotmdb">
TMDB ID
name="name"
required
value="{{ $rss->name }}"
/>
<label class="form__label form__label--floating" for="name">
{{ __('rss.feed') }} {{ __('rss.name') }}
</label>
</p>
<p class="form__group">
<input
id="autoimdb"
id="position"
class="form__text"
inputmode="numeric"
name="imdb"
name="position"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->imdb }}"
>
<label class="form__label form__label--floating" for="autoimdb">
IMDB ID
value="{{ $rss->position }}"
/>
<label class="form__label form__label--floating" for="position">
{{ __('rss.feed') }} {{ __('common.position') }}
</label>
</p>
<p class="form__group">
<input
id="autotvdb"
id="search"
class="form__text"
inputmode="numeric"
name="tvdb"
pattern="[0-9]*"
name="search"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->tvdb }}"
>
<label class="form__label form__label--floating" for="autotvdb">
TVDB ID
value="{{ $rss->object_torrent->search }}"
/>
<label class="form__label form__label--floating" for="search">
{{ __('torrent.torrent') }} {{ __('torrent.name') }}
</label>
</p>
<p class="form__group">
<input type="hidden" name="mal" value="0" />
<input
id="automal"
class="form__text"
inputmode="numeric"
name="mal"
pattern="[0-9]*"
placeholder=" "
id="description"
type="text"
value="{{ $rss->object_torrent->mal }}"
>
<label class="form__label form__label--floating" for="automal">
MAL ID
class="form__text"
name="description"
placeholder=" "
value="{{ $rss->object_torrent->description }}"
/>
<label class="form__label form__label--floating" for="description">
{{ __('torrent.torrent') }} {{ __('torrent.description') }}
</label>
</p>
</div>
<div class="form__group--horizontal">
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.category') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($categories as $category)
<p class="form__group">
<input
id="uploader"
type="text"
class="form__text"
name="uploader"
placeholder=" "
value="{{ $rss->object_torrent->uploader }}"
/>
<label class="form__label form__label--floating" for="uploader">
{{ __('torrent.torrent') }} {{ __('torrent.uploader') }}
</label>
</p>
<div class="form__group--horizontal">
<p class="form__group">
<input
id="autotmdb"
class="form__text"
inputmode="numeric"
name="tmdb"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->tmdb }}"
/>
<label class="form__label form__label--floating" for="autotmdb">
TMDB ID
</label>
</p>
<p class="form__group">
<input
id="autoimdb"
class="form__text"
inputmode="numeric"
name="imdb"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->imdb }}"
/>
<label class="form__label form__label--floating" for="autoimdb">
IMDB ID
</label>
</p>
<p class="form__group">
<input
id="autotvdb"
class="form__text"
inputmode="numeric"
name="tvdb"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->tvdb }}"
/>
<label class="form__label form__label--floating" for="autotvdb">
TVDB ID
</label>
</p>
<p class="form__group">
<input type="hidden" name="mal" value="0" />
<input
id="automal"
class="form__text"
inputmode="numeric"
name="mal"
pattern="[0-9]*"
placeholder=" "
type="text"
value="{{ $rss->object_torrent->mal }}"
/>
<label class="form__label form__label--floating" for="automal">
MAL ID
</label>
</p>
</div>
<div class="form__group--horizontal">
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.category') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($categories as $category)
<p class="form__group">
<label class="form__label">
<input
id="{{ $category->name }}"
class="form__checkbox"
name="categories[]"
type="checkbox"
value="{{ $category->id }}"
@checked(is_array($rss->object_torrent->categories) && in_array((string)$category->id, $rss->object_torrent->categories, true))
/>
{{ $category->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.type') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($types as $type)
<p class="form__group">
<label class="form__label">
<input
id="{{ $type->name }}"
class="form__checkbox"
name="types[]"
type="checkbox"
value="{{ $type->id }}"
@checked(is_array($rss->object_torrent->types) && in_array((string)$type->id, $rss->object_torrent->types, true))
/>
{{ $type->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.resolution') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($resolutions as $resolution)
<p class="form__group">
<label class="form__label">
<input
id="{{ $resolution->name }}"
class="form__checkbox"
name="resolutions[]"
type="checkbox"
value="{{ $resolution->id }}"
@checked(is_array($rss->object_torrent->resolutions) && in_array((string)$resolution->id, $rss->object_torrent->resolutions, true))
/>
{{ $resolution->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.genre') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($genres as $genre)
<p class="form__group">
<label class="form__label">
<input
id="{{ $genre->name }}"
class="form__checkbox"
name="genres[]"
type="checkbox"
value="{{ $genre->id }}"
@checked(is_array($rss->object_torrent->genres) && in_array((string)$genre->id, $rss->object_torrent->genres, true))
/>
{{ $genre->name }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.discounts') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="{{ $category->name }}"
id="freeleech"
class="form__checkbox"
name="categories[]"
name="freeleech"
type="checkbox"
value="{{ $category->id }}"
@checked(is_array($rss->object_torrent->categories) && in_array((string)$category->id, $rss->object_torrent->categories, true))
>
{{ $category->name }}
value="1"
@checked($rss->object_torrent->freeleech)
/>
<span
class="{{ config('other.font-awesome') }} fa-star text-gold"
></span>
{{ __('torrent.freeleech') }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.type') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($types as $type)
<p class="form__group">
<label class="form__label">
<input
id="{{ $type->name }}"
id="doubleupload"
class="form__checkbox"
name="types[]"
name="doubleupload"
type="checkbox"
value="{{ $type->id }}"
@checked(is_array($rss->object_torrent->types) && in_array((string)$type->id, $rss->object_torrent->types, true))
>
{{ $type->name }}
value="1"
@checked($rss->object_torrent->doubleupload)
/>
<span
class="{{ config('other.font-awesome') }} fa-gem text-green"
></span>
{{ __('torrent.double-upload') }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.resolution') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($resolutions as $resolution)
<p class="form__group">
<label class="form__label">
<input
id="{{ $resolution->name }}"
id="featured"
class="form__checkbox"
name="resolutions[]"
name="featured"
type="checkbox"
value="{{ $resolution->id }}"
@checked(is_array($rss->object_torrent->resolutions) && in_array((string)$resolution->id, $rss->object_torrent->resolutions, true))
>
{{ $resolution->name }}
value="1"
@checked($rss->object_torrent->featured)
/>
<span
class="{{ config('other.font-awesome') }} fa-certificate text-pink"
></span>
{{ __('torrent.featured') }}
</label>
</p>
@endforeach
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.genre') }}</legend>
<div class="form__fieldset-checkbox-container">
@foreach ($genres as $genre)
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.special') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="{{ $genre->name }}"
id="stream"
class="form__checkbox"
name="genres[]"
name="stream"
type="checkbox"
value="{{ $genre->id }}"
@checked(is_array($rss->object_torrent->genres) && in_array((string)$genre->id, $rss->object_torrent->genres, true))
>
{{ $genre->name }}
value="1"
@checked($rss->object_torrent->stream)
/>
<span
class="{{ config('other.font-awesome') }} fa-play text-red"
></span>
{{ __('torrent.stream-optimized') }}
</label>
</p>
@endforeach
</div>
</fieldset>
<p class="form__group">
<label class="form__label">
<input
id="highspeed"
class="form__checkbox"
name="highspeed"
type="checkbox"
value="1"
@checked($rss->object_torrent->highspeed)
/>
<span
class="{{ config('other.font-awesome') }} fa-tachometer text-red"
></span>
{{ __('common.high-speeds') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="sd"
class="form__checkbox"
name="sd"
type="checkbox"
value="1"
@checked($rss->object_torrent->sd)
/>
<span
class="{{ config('other.font-awesome') }} fa-ticket text-orange"
></span>
{{ __('torrent.sd-content') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="internal"
class="form__checkbox"
name="internal"
type="checkbox"
value="1"
@checked($rss->object_torrent->internal)
/>
<span
class="{{ config('other.font-awesome') }} fa-magic"
style="color: #baaf92"
></span>
{{ __('torrent.internal') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="personalrelease"
class="form__checkbox"
name="personalrelease"
type="checkbox"
value="1"
@checked($rss->object_torrent->personalrelease)
/>
<span
class="{{ config('other.font-awesome') }} fa-user-plus"
style="color: #865be9"
></span>
{{ __('torrent.personal-release') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="bookmark"
class="form__checkbox"
name="bookmark"
type="checkbox"
value="1"
@checked($rss->object_torrent->bookmark)
/>
<span
class="{{ config('other.font-awesome') }} fa-bookmark text-blue"
></span>
{{ __('torrent.bookmark') }}
</label>
</p>
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.health') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="alive"
class="form__checkbox"
name="alive"
type="checkbox"
value="1"
@checked($rss->object_torrent->alive)
/>
<span
class="{{ config('other.font-awesome') }} fa-smile text-green"
></span>
{{ __('torrent.alive') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dying"
class="form__checkbox"
name="dying"
type="checkbox"
value="1"
@checked($rss->object_torrent->dying)
/>
<span
class="{{ config('other.font-awesome') }} fa-meh text-orange"
></span>
{{ __('torrent.dying-torrent') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dead"
class="form__checkbox"
name="dead"
type="checkbox"
value="1"
@checked($rss->object_torrent->dead)
/>
<span
class="{{ config('other.font-awesome') }} fa-frown text-red"
></span>
{{ __('torrent.dead-torrent') }}
</label>
</p>
</div>
</fieldset>
</div>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.discounts') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="freeleech"
class="form__checkbox"
name="freeleech"
type="checkbox"
value="1"
@checked($rss->object_torrent->freeleech)
>
<span class="{{ config('other.font-awesome') }} fa-star text-gold"></span>
{{ __('torrent.freeleech') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="doubleupload"
class="form__checkbox"
name="doubleupload"
type="checkbox"
value="1"
@checked($rss->object_torrent->doubleupload)
>
<span class="{{ config('other.font-awesome') }} fa-gem text-green"></span>
{{ __('torrent.double-upload') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="featured"
class="form__checkbox"
name="featured"
type="checkbox"
value="1"
@checked($rss->object_torrent->featured)
>
<span class="{{ config('other.font-awesome') }} fa-certificate text-pink"></span>
{{ __('torrent.featured') }}
</label>
</p>
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.special') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="stream"
class="form__checkbox"
name="stream"
type="checkbox"
value="1"
@checked($rss->object_torrent->stream)
>
<span class="{{ config('other.font-awesome') }} fa-play text-red"></span>
{{ __('torrent.stream-optimized') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="highspeed"
class="form__checkbox"
name="highspeed"
type="checkbox"
value="1"
@checked($rss->object_torrent->highspeed)
>
<span class="{{ config('other.font-awesome') }} fa-tachometer text-red"></span>
{{ __('common.high-speeds') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="sd"
class="form__checkbox"
name="sd"
type="checkbox"
value="1"
@checked($rss->object_torrent->sd)
>
<span class="{{ config('other.font-awesome') }} fa-ticket text-orange"></span>
{{ __('torrent.sd-content') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="internal"
class="form__checkbox"
name="internal"
type="checkbox"
value="1"
@checked($rss->object_torrent->internal)
>
<span class="{{ config('other.font-awesome') }} fa-magic" style="color: #baaf92;"></span>
{{ __('torrent.internal') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="personalrelease"
class="form__checkbox"
name="personalrelease"
type="checkbox"
value="1"
@checked($rss->object_torrent->personalrelease)
>
<span class="{{ config('other.font-awesome') }} fa-user-plus" style="color: #865be9;"></span>
{{ __('torrent.personal-release') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="bookmark"
class="form__checkbox"
name="bookmark"
type="checkbox"
value="1"
@checked($rss->object_torrent->bookmark)
>
<span class="{{ config('other.font-awesome') }} fa-bookmark text-blue"></span>
{{ __('torrent.bookmark') }}
</label>
</p>
</div>
</fieldset>
</div>
<div class="form__group">
<fieldset class="form__fieldset">
<legend class="form__legend">{{ __('torrent.health') }}</legend>
<div class="form__fieldset-checkbox-container">
<p class="form__group">
<label class="form__label">
<input
id="alive"
class="form__checkbox"
name="alive"
type="checkbox"
value="1"
@checked($rss->object_torrent->alive)
>
<span class="{{ config('other.font-awesome') }} fa-smile text-green"></span>
{{ __('torrent.alive') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dying"
class="form__checkbox"
name="dying"
type="checkbox"
value="1"
@checked($rss->object_torrent->dying)
>
<span class="{{ config('other.font-awesome') }} fa-meh text-orange"></span>
{{ __('torrent.dying-torrent') }}
</label>
</p>
<p class="form__group">
<label class="form__label">
<input
id="dead"
class="form__checkbox"
name="dead"
type="checkbox"
value="1"
@checked($rss->object_torrent->dead)
>
<span class="{{ config('other.font-awesome') }} fa-frown text-red"></span>
{{ __('torrent.dead-torrent') }}
</label>
</p>
</div>
</fieldset>
</div>
</div>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.edit') }}
</button>
</p>
</form>
<p class="form__group">
<button class="form__button form__button--filled">
{{ __('common.edit') }}
</button>
</p>
</form>
</div>
</section>
@endsection

View File

@@ -18,10 +18,7 @@
<header class="panel__header">
<h2 class="panel__heading">{{ __('rss.public') }} {{ __('rss.rss-feed') }}</h2>
<div class="panel__actions">
<a
href="{{ route('staff.rss.create') }}"
class="form__button form__button--text"
>
<a href="{{ route('staff.rss.create') }}" class="form__button form__button--text">
{{ __('common.add') }}
</a>
</div>
@@ -29,128 +26,158 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.categories') }}</th>
<th>{{ __('common.types') }}</th>
<th>{{ __('common.resolutions') }}</th>
<th>{{ __('common.genres') }}</th>
<th>{{ __('torrent.discounts') }}</th>
<th>{{ __('common.special') }}</th>
<th>{{ __('torrent.health') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.categories') }}</th>
<th>{{ __('common.types') }}</th>
<th>{{ __('common.resolutions') }}</th>
<th>{{ __('common.genres') }}</th>
<th>{{ __('torrent.discounts') }}</th>
<th>{{ __('common.special') }}</th>
<th>{{ __('torrent.health') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach($public_rss as $rss)
<tr>
<td>
<a
href="{{ route('staff.rss.edit', ['rss' => $rss]) }}"
>
{{ $rss->name }}
</a>
</td>
<td>{{ $rss->position }}</td>
<td>
@if ($rss->object_torrent?->categories)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->types)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->resolutions)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->genres)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->freeleech || $rss->object_torrent?->doubleupload || $rss->object_torrent?->featured)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->stream || $rss->object_torrent?->highspeed || $rss->object_torrent?->sd || $rss->object_torrent?->internal || $rss->object_torrent->personalrelease || $rss->object_torrent?->bookmark)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
@if ($rss->object_torrent->alive || $rss->object_torrent->dying || $rss->object_torrent->dead)
<i class="{{ config('other.font-awesome') }} fa-check text-green"></i>
@else
<i class="{{ config('other.font-awesome') }} fa-times text-red"></i>
@endif
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('rss.show.rsskey', ['id' => $rss->id, 'rsskey' => auth()->user()->rsskey]) }}"
target="_blank"
>
{{ __('common.view') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.rss.edit', ['rss' => $rss]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.rss.destroy', ['rss' => $rss]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this public RSS feed: ${atob('{{ base64_encode($rss->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@foreach ($public_rss as $rss)
<tr>
<td>
<a href="{{ route('staff.rss.edit', ['rss' => $rss]) }}">
{{ $rss->name }}
</a>
</td>
<td>{{ $rss->position }}</td>
<td>
@if ($rss->object_torrent?->categories)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->types)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->resolutions)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->genres)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->freeleech || $rss->object_torrent?->doubleupload || $rss->object_torrent?->featured)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($rss->object_torrent?->stream || $rss->object_torrent?->highspeed || $rss->object_torrent?->sd || $rss->object_torrent?->internal || $rss->object_torrent->personalrelease || $rss->object_torrent?->bookmark)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
@if ($rss->object_torrent->alive || $rss->object_torrent->dying || $rss->object_torrent->dead)
<i
class="{{ config('other.font-awesome') }} fa-check text-green"
></i>
@else
<i
class="{{ config('other.font-awesome') }} fa-times text-red"
></i>
@endif
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
class="form__button form__button--text"
href="{{ route('rss.show.rsskey', ['id' => $rss->id, 'rsskey' => auth()->user()->rsskey]) }}"
target="_blank"
>
{{ __('common.view') }}
</a>
</li>
<li class="data-table__action">
<a
href="{{ route('staff.rss.edit', ['rss' => $rss]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.rss.destroy', ['rss' => $rss]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this public RSS feed: ${atob(
'{{ base64_encode($rss->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.user') }} {{ __('user.rsskeys') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('common.user') }} {{ __('user.rsskeys') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('user.rsskeys') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('user.rsskeys') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')

View File

@@ -1,11 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('staff.seedboxes') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
{{ __('staff.seedboxes') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ __('staff.seedboxes') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="{{ __('staff.seedboxes') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -27,63 +33,70 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.no') }}</th>
<th>{{ __('common.user') }}</th>
<th>{{ __('common.ip') }}</th>
<th>{{ __('user.created-on') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.no') }}</th>
<th>{{ __('common.user') }}</th>
<th>{{ __('common.ip') }}</th>
<th>{{ __('user.created-on') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@forelse ($seedboxes as $seedbox)
<tr>
<td>{{ $loop->iteration }}</td>
<td>
<x-user_tag :anon="false" :user="$seedbox->user" />
</td>
<td>{{ $seedbox->ip }}</td>
<td>
<time datetime="{{ $seedbox->created_at }}" title="{{ $seedbox->created_at }}">
{{ $seedbox->created_at->diffForHumans() }}
</time>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
action="{{ route('staff.seedboxes.destroy', ['seedbox' => $seedbox]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this seedbox: ${atob('{{ base64_encode($seedbox->ip) }}')} (owned by ${atob('{{ base64_encode($seedbox->user->username) }}')})?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
class="form__button form__button--text"
@forelse ($seedboxes as $seedbox)
<tr>
<td>{{ $loop->iteration }}</td>
<td>
<x-user_tag :anon="false" :user="$seedbox->user" />
</td>
<td>{{ $seedbox->ip }}</td>
<td>
<time
datetime="{{ $seedbox->created_at }}"
title="{{ $seedbox->created_at }}"
>
{{ $seedbox->created_at->diffForHumans() }}
</time>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<form
action="{{ route('staff.seedboxes.destroy', ['seedbox' => $seedbox]) }}"
method="POST"
x-data
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="5">No seedboxes</td>
</tr>
@endforelse
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this seedbox: ${atob(
'{{ base64_encode($seedbox->ip) }}'
)} (owned by ${atob('{{ base64_encode($seedbox->user->username) }}')})?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@empty
<tr>
<td colspan="5">No seedboxes</td>
</tr>
@endforelse
</tbody>
</table>
</div>

View File

@@ -22,25 +22,15 @@
<section class="panelV2">
<h2 class="panel__heading">
{{ __('common.add') }}
{{ trans_choice('common.a-an-art',false) }}
{{ trans_choice('common.a-an-art', false) }}
{{ __('torrent.torrent') }}
{{ __('common.type') }}
</h2>
<div class="panel__body">
<form
class="form"
method="POST"
action="{{ route('staff.types.store') }}"
>
<form class="form" method="POST" action="{{ route('staff.types.store') }}">
@csrf
<p class="form__group">
<input
id="name"
class="form__text"
name="name"
required
type="text"
>
<input id="name" class="form__text" name="name" required type="text" />
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -54,7 +44,7 @@
pattern="[0-9]*"
required
type="text"
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>

View File

@@ -45,7 +45,7 @@
required
type="text"
value="{{ $type->name }}"
>
/>
<label class="form__label form__label--floating" for="name">
{{ __('common.name') }}
</label>
@@ -60,7 +60,7 @@
required
type="text"
value="{{ $type->position }}"
>
/>
<label class="form__label form__label--floating" for="position">
{{ __('common.position') }}
</label>

View File

@@ -29,61 +29,65 @@
<div class="data-table-wrapper">
<table class="data-table">
<thead>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
<tr>
<th>{{ __('common.position') }}</th>
<th>{{ __('common.name') }}</th>
<th>{{ __('common.action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($types as $type)
<tr>
<td>{{ $type->position }}</td>
<td>
<a href="{{ route('staff.types.edit', ['type' => $type]) }}">
{{ $type->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.types.edit', ['type' => $type]) }}"
class="form__button form__button--text"
>
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.types.destroy', ['type' => $type]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this type: ${atob('{{ base64_encode($type->name) }}')}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})"
@foreach ($types as $type)
<tr>
<td>{{ $type->position }}</td>
<td>
<a href="{{ route('staff.types.edit', ['type' => $type]) }}">
{{ $type->name }}
</a>
</td>
<td>
<menu class="data-table__actions">
<li class="data-table__action">
<a
href="{{ route('staff.types.edit', ['type' => $type]) }}"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
{{ __('common.edit') }}
</a>
</li>
<li class="data-table__action">
<form
action="{{ route('staff.types.destroy', ['type' => $type]) }}"
method="POST"
x-data
>
@csrf
@method('DELETE')
<button
x-on:click.prevent="
Swal.fire({
title: 'Are you sure?',
text: `Are you sure you want to delete this type: ${atob(
'{{ base64_encode($type->name) }}'
)}?`,
icon: 'warning',
showConfirmButton: true,
showCancelButton: true,
}).then((result) => {
if (result.isConfirmed) {
$root.submit();
}
})
"
class="form__button form__button--text"
>
{{ __('common.delete') }}
</button>
</form>
</li>
</menu>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>

View File

@@ -1,12 +1,17 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.user') }} {{ __('common.edit') }} - {{ __('staff.staff-dashboard') }}
- {{ config('other.title') }}</title>
<title>
{{ __('common.user') }} {{ __('common.edit') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="User {{ __('common.edit') }} - {{ __('staff.staff-dashboard') }}">
<meta
name="description"
content="User {{ __('common.edit') }} - {{ __('staff.staff-dashboard') }}"
/>
@endsection
@section('breadcrumbs')
@@ -52,7 +57,7 @@
required
type="text"
value="{{ $user->username }}"
>
/>
<label class="form__label form__label--floating" for="username">
{{ __('common.username') }}
</label>
@@ -68,7 +73,7 @@
required
type="text"
value="{{ $user->uploaded }}"
>
/>
<label class="form__label form__label--floating" for="uploaded">
{{ __('user.total-upload') }} (Bytes)
</label>
@@ -84,7 +89,7 @@
required
type="text"
value="{{ $user->downloaded }}"
>
/>
<label class="form__label form__label--floating" for="downloaded">
{{ __('user.total-download') }} (Bytes)
</label>
@@ -97,18 +102,14 @@
placeholder=" "
type="text"
value="{{ $user->title }}"
>
/>
<label class="form__label form__label--floating" for="title">
{{ __('user.title') }}
</label>
</p>
@livewire('bbcode-input', ['name' => 'about', 'label' => __('user.about-me'), 'required' => false, 'content' => $user->about])
<p class="form__group">
<select
id="group_id"
class="form__select"
name="group_id"
>
<select id="group_id" class="form__select" name="group_id">
<option class="form__option" value="{{ $user->group->id }}">
{{ $user->group->name }} (Default)
</option>
@@ -123,16 +124,13 @@
</label>
</p>
<p class="form__group">
<select
id="internal_id"
name="internal_id"
class="form__select"
>
<select id="internal_id" name="internal_id" class="form__select">
@if ($user->internal != null)
<option class="form__option" value="{{ $user->internal->id }}">
{{ $user->internal->name }} (Default)
</option>
@endif
<option class="form__option" value="">None</option>
@foreach ($internals as $internal)
<option class="form__option" value="{{ $internal->id }}">
@@ -155,7 +153,7 @@
required
type="text"
value="{{ $user->seedbonus }}"
>
/>
<label class="form__label form__label--floating" for="seedbonus">
{{ __('bon.bon') }}
</label>
@@ -171,7 +169,7 @@
required
type="text"
value="{{ $user->fl_tokens }}"
>
/>
<label class="form__label form__label--floating" for="fl_tokens">
{{ __('torrent.freeleech-token') }}
</label>
@@ -187,7 +185,7 @@
required
type="text"
value="{{ $user->invites }}"
>
/>
<label class="form__label form__label--floating" for="invites">
{{ __('user.invites') }}
</label>
@@ -214,7 +212,7 @@
@csrf
@method('PATCH')
<p class="form__group">
<input type="hidden" name="can_upload" value="0">
<input type="hidden" name="can_upload" value="0" />
<input
type="checkbox"
class="form__checkbox"
@@ -222,11 +220,11 @@
name="can_upload"
value="1"
@checked($user->can_upload)
>
/>
<label for="can_upload">{{ __('user.can-upload') }}?</label>
</p>
<p class="form__group">
<input type="hidden" name="can_download" value="0">
<input type="hidden" name="can_download" value="0" />
<input
type="checkbox"
class="form__checkbox"
@@ -234,11 +232,11 @@
name="can_download"
value="1"
@checked($user->can_download)
>
/>
<label for="can_download">{{ __('user.can-download') }}?</label>
</p>
<p class="form__group">
<input type="hidden" name="can_comment" value="0">
<input type="hidden" name="can_comment" value="0" />
<input
type="checkbox"
class="form__checkbox"
@@ -246,11 +244,11 @@
name="can_comment"
value="1"
@checked($user->can_comment)
>
/>
<label for="can_comment">{{ __('user.can-comment') }}?</label>
</p>
<p class="form__group">
<input type="hidden" name="can_invite" value="0">
<input type="hidden" name="can_invite" value="0" />
<input
type="checkbox"
class="form__checkbox"
@@ -258,11 +256,11 @@
name="can_invite"
value="1"
@checked($user->can_invite)
>
/>
<label for="can_invite">{{ __('user.can-invite') }}?</label>
</p>
<p class="form__group">
<input type="hidden" name="can_request" value="0">
<input type="hidden" name="can_request" value="0" />
<input
type="checkbox"
class="form__checkbox"
@@ -270,11 +268,11 @@
name="can_request"
value="1"
@checked($user->can_request)
>
/>
<label for="can_request">{{ __('user.can-request') }}?</label>
</p>
<p class="form__group">
<input type="hidden" name="can_chat" value="0">
<input type="hidden" name="can_chat" value="0" />
<input
type="checkbox"
class="form__checkbox"
@@ -282,7 +280,7 @@
name="can_chat"
value="1"
@checked($user->can_chat)
>
/>
<label for="can_chat">{{ __('user.can-chat') }}?</label>
</p>
<p class="form__group">

View File

@@ -1,12 +1,14 @@
@extends('layout.default')
@section('title')
<title>{{ __('common.user') }} {{ __('common.search') }} - {{ __('staff.staff-dashboard') }}
- {{ config('other.title') }}</title>
<title>
{{ __('common.user') }} {{ __('common.search') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="User Search - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="User Search - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('nav-tabs')

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="Warnings Log - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Warnings Log - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')

View File

@@ -1,11 +1,14 @@
@extends('layout.default')
@section('title')
<title>Watchlist {{ __('common.search') }} - {{ __('staff.staff-dashboard') }} - {{ config('other.title') }}</title>
<title>
Watchlist {{ __('common.search') }} - {{ __('staff.staff-dashboard') }} -
{{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="Watchlist Search - {{ __('staff.staff-dashboard') }}">
<meta name="description" content="Watchlist Search - {{ __('staff.staff-dashboard') }}" />
@endsection
@section('breadcrumbs')
@@ -14,9 +17,7 @@
{{ __('staff.staff-dashboard') }}
</a>
</li>
<li class="breadcrumb--active">
Watchlist
</li>
<li class="breadcrumb--active">Watchlist</li>
@endsection
@section('page', 'page__watchlist--index')

View File

@@ -5,7 +5,7 @@
@endsection
@section('meta')
<meta name="description" content="{{ __('articles.meta-articles') }}">
<meta name="description" content="{{ __('articles.meta-articles') }}" />
@endsection
@section('breadcrumbs')
@@ -37,17 +37,21 @@
</time>
<img
class="article-preview__image"
src="{{ url($article->image ? 'files/img/'.$article->image : 'img/missing-image.png') }}"
src="{{ url($article->image ? 'files/img/' . $article->image : 'img/missing-image.png') }}"
alt=""
>
/>
</header>
<p class="article-preview__content">
@joypixels(preg_replace('#\[[^\]]+\]#', '', Str::limit($article->content, 500, '...'), 150))
</p>
<a href="{{ route('articles.show', ['article' => $article]) }}" class="article-preview__read-more">
<a
href="{{ route('articles.show', ['article' => $article]) }}"
class="article-preview__read-more"
>
{{ __('articles.read-more') }}
</a>
</article>
@endforeach
{{ $articles->links('partials.pagination') }}
@endsection

View File

@@ -1,11 +1,13 @@
@extends('layout.default')
@section('title')
<title>{{ $article->title }} - {{ __('articles.articles') }} - {{ config('other.title') }}</title>
<title>
{{ $article->title }} - {{ __('articles.articles') }} - {{ config('other.title') }}
</title>
@endsection
@section('meta')
<meta name="description" content="{{ substr(strip_tags($article->content), 0, 200) }}...">
<meta name="description" content="{{ substr(strip_tags($article->content), 0, 200) }}..." />
@endsection
@section('breadcrumbs')
@@ -22,22 +24,22 @@
@section('page', 'page__articles--show')
@section('main')
<section class="panelV2">
<header class="panel__header">
<h1 class="panel__heading">{{ $article->title }}</h1>
<div class="panel__actions">
<time
class="panel__action page__published"
datetime="{{ $article->created_at }}"
title="{{ $article->created_at }}"
>
{{ $article->created_at->toDayDateTimeString() }}
</time>
<section class="panelV2">
<header class="panel__header">
<h1 class="panel__heading">{{ $article->title }}</h1>
<div class="panel__actions">
<time
class="panel__action page__published"
datetime="{{ $article->created_at }}"
title="{{ $article->created_at }}"
>
{{ $article->created_at->toDayDateTimeString() }}
</time>
</div>
</header>
<div class="panel__body bbcode-rendered">
@joypixels($article->getContentHtml())
</div>
</header>
<div class="panel__body bbcode-rendered">
@joypixels($article->getContentHtml())
</div>
</section>
<livewire:comments :model="$article"/>
</section>
<livewire:comments :model="$article" />
@endsection

View File

@@ -1,167 +1,175 @@
<!DOCTYPE html>
<html class="no-js" lang="{{ config('app.locale') }}">
<head>
<meta charset="utf-8">
<title>Application - {{ config('other.title') }}</title>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Application">
<meta property="og:title" content="{{ __('auth.login') }}">
<meta property="og:site_name" content="{{ config('other.title') }}">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ url('/img/og.png') }}">
<meta property="og:description" content="{{ config('unit3d.powered-by') }}">
<meta property="og:url" content="{{ url('/') }}">
<meta property="og:locale" content="{{ config('app.locale') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="shortcut icon" href="{{ url('/favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url('/favicon.ico') }}" type="image/x-icon">
<link rel="stylesheet" href="{{ mix('css/main/login.css') }}" crossorigin="anonymous">
</head>
<body>
<main x-data="{ proofs: 2 }">
<section class="auth-form">
<form class="auth-form__form" method="POST" action="{{ route('application.store') }}">
@csrf
<a class="auth-form__branding" href="{{ route('home.index') }}">
<i class="fal fa-tv-retro"></i>
<span class="auth-form__site-logo">{{ \config('other.title') }}</span>
</a>
@if(config('other.application_signups'))
<ul class="auth-form__important-infos">
<li class="auth-form__important-info">{{ config('other.title') }} {{ __('auth.appl-intro') }}</li>
@if (Session::has('warning'))
<li class="auth-form__important-info">Warning: {{ Session::get('warning') }}</li>
@endif
@if (Session::has('info'))
<li class="auth-form__important-info">Info: {{ Session::get('info') }}</li>
@endif
@if (Session::has('success'))
<li class="auth-form__important-info">Success: {{ Session::get('success') }}</li>
@endif
</ul>
<p class="auth-form__select-group">
<label for="type" class="auth-form__label">
{{ __('auth.are-you') }}
</label>
<select
id="type"
class="auth-form__select"
name="type"
required
>
<option class="auth-form__option" value="New To The Game" selected>
{{ __('auth.newbie') }}
</option>
<option class="auth-form__option" value="Experienced With Private Trackers">
{{ __('auth.veteran') }}
</option>
</select>
</p>
<p class="auth-form__text-input-group">
<label for="email" class="auth-form__label">
{{ __('auth.email') }}
</label>
<input
id="email"
type="email"
class="auth-form__text-input"
name="email"
required
>
</p>
<p class="auth-form__textarea-group">
<label for="referrer" class="auth-form__label">
{{ __('auth.appl-reason',['sitename' => config('other.title')]) }}
</label>
<textarea
id="referrer"
type="referrer"
class="auth-form__textarea"
name="referrer"
required
></textarea>
</p>
<label class="auth-form__label">
Proofs
</label>
<template x-for="proof in proofs">
<fieldset class="auth-form__fieldset">
<legend
class="auth-form__legend"
x-text="'Proof ' + proof"
></legend>
<head>
<meta charset="utf-8" />
<title>Application - {{ config('other.title') }}</title>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Application" />
<meta property="og:title" content="{{ __('auth.login') }}" />
<meta property="og:site_name" content="{{ config('other.title') }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ url('/img/og.png') }}" />
<meta property="og:description" content="{{ config('unit3d.powered-by') }}" />
<meta property="og:url" content="{{ url('/') }}" />
<meta property="og:locale" content="{{ config('app.locale') }}" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<link rel="shortcut icon" href="{{ url('/favicon.ico') }}" type="image/x-icon" />
<link rel="icon" href="{{ url('/favicon.ico') }}" type="image/x-icon" />
<link rel="stylesheet" href="{{ mix('css/main/login.css') }}" crossorigin="anonymous" />
</head>
<body>
<main x-data="{ proofs: 2 }">
<section class="auth-form">
<form
class="auth-form__form"
method="POST"
action="{{ route('application.store') }}"
>
@csrf
<a class="auth-form__branding" href="{{ route('home.index') }}">
<i class="fal fa-tv-retro"></i>
<span class="auth-form__site-logo">{{ \config('other.title') }}</span>
</a>
@if (config('other.application_signups'))
<ul class="auth-form__important-infos">
<li class="auth-form__important-info">
{{ config('other.title') }} {{ __('auth.appl-intro') }}
</li>
@if (Session::has('warning'))
<li class="auth-form__important-info">
Warning: {{ Session::get('warning') }}
</li>
@endif
@if (Session::has('info'))
<li class="auth-form__important-info">
Info: {{ Session::get('info') }}
</li>
@endif
@if (Session::has('success'))
<li class="auth-form__important-info">
Success: {{ Session::get('success') }}
</li>
@endif
</ul>
<p class="auth-form__select-group">
<label for="type" class="auth-form__label">
{{ __('auth.are-you') }}
</label>
<select id="type" class="auth-form__select" name="type" required>
<option class="auth-form__option" value="New To The Game" selected>
{{ __('auth.newbie') }}
</option>
<option
class="auth-form__option"
value="Experienced With Private Trackers"
>
{{ __('auth.veteran') }}
</option>
</select>
</p>
<p class="auth-form__text-input-group">
<label
class="auth-form__label"
x-bind:for="'image' + proof"
>
{{ __('auth.proof-image') }}
<label for="email" class="auth-form__label">
{{ __('auth.email') }}
</label>
<input
x-bind:id="'image' + proof"
id="email"
type="email"
class="auth-form__text-input"
name="images[]"
type="url"
placeholder=" "
name="email"
required
>
/>
</p>
<p class="auth-form__text-input-group">
<label
class="auth-form__label"
x-bind:for="'profile' + proof"
>
{{ __('auth.proof-profile') }}
<p class="auth-form__textarea-group">
<label for="referrer" class="auth-form__label">
{{ __('auth.appl-reason', ['sitename' => config('other.title')]) }}
</label>
<input
x-bind:id="'profile' + proof"
class="auth-form__text-input"
name="links[]"
type="url"
placeholder=" "
>
<textarea
id="referrer"
type="referrer"
class="auth-form__textarea"
name="referrer"
required
></textarea>
</p>
</fieldset>
</template>
<p class="auth-form__button-container">
<button
x-on:click.prevent="proofs++"
class="auth-form__button--text"
type="button"
>
{{ __('common.add') }}
</button>
<button
class="auth-form__button--text"
x-on:click.prevent="proofs = Math.max(2, proofs - 1)"
type="button"
>
{{ __('common.delete') }}
</button>
</p>
@if (config('captcha.enabled'))
@hiddencaptcha
@endif
<button class="auth-form__primary-button">{{ __('auth.apply') }}</button>
@if (Session::has('errors'))
<ul class="auth-form__errors">
@foreach ($errors->all() as $error)
<li class="auth-form__error">{{ $error }}</li>
@endforeach
</ul>
@endif
@else
<ul class="auth-form__important-infos">
<li class="auth-form__important-info">{{ __('auth.appl-closed') }}</li>
<li class="auth-form__important-info">{{ __('auth.check-later') }}</li>
</ul>
@endif
</form>
</section>
</main>
<script src="{{ mix('js/app.js') }}" crossorigin="anonymous"></script>
<script src="{{ mix('js/alpine.js') }}" crossorigin="anonymous" defer></script>
@livewireScripts(['nonce' => HDVinnie\SecureHeaders\SecureHeaders::nonce()])
</body>
<label class="auth-form__label">Proofs</label>
<template x-for="proof in proofs">
<fieldset class="auth-form__fieldset">
<legend
class="auth-form__legend"
x-text="'Proof ' + proof"
></legend>
<p class="auth-form__text-input-group">
<label class="auth-form__label" x-bind:for="'image' + proof">
{{ __('auth.proof-image') }}
</label>
<input
x-bind:id="'image' + proof"
class="auth-form__text-input"
name="images[]"
type="url"
placeholder=" "
required
/>
</p>
<p class="auth-form__text-input-group">
<label
class="auth-form__label"
x-bind:for="'profile' + proof"
>
{{ __('auth.proof-profile') }}
</label>
<input
x-bind:id="'profile' + proof"
class="auth-form__text-input"
name="links[]"
type="url"
placeholder=" "
/>
</p>
</fieldset>
</template>
<p class="auth-form__button-container">
<button
x-on:click.prevent="proofs++"
class="auth-form__button--text"
type="button"
>
{{ __('common.add') }}
</button>
<button
class="auth-form__button--text"
x-on:click.prevent="proofs = Math.max(2, proofs - 1)"
type="button"
>
{{ __('common.delete') }}
</button>
</p>
@if (config('captcha.enabled'))
@hiddencaptcha
@endif
<button class="auth-form__primary-button">{{ __('auth.apply') }}</button>
@if (Session::has('errors'))
<ul class="auth-form__errors">
@foreach ($errors->all() as $error)
<li class="auth-form__error">{{ $error }}</li>
@endforeach
</ul>
@endif
@else
<ul class="auth-form__important-infos">
<li class="auth-form__important-info">{{ __('auth.appl-closed') }}</li>
<li class="auth-form__important-info">{{ __('auth.check-later') }}</li>
</ul>
@endif
</form>
</section>
</main>
<script src="{{ mix('js/app.js') }}" crossorigin="anonymous"></script>
<script src="{{ mix('js/alpine.js') }}" crossorigin="anonymous" defer></script>
@livewireScripts(['nonce' => HDVinnie\SecureHeaders\SecureHeaders::nonce()])
</body>
</html>

View File

@@ -5,7 +5,10 @@
@endsection
@section('meta')
<meta name="description" content="{{ __('auth.password-confirm.title') }} - {{ config('other.title') }}">
<meta
name="description"
content="{{ __('auth.password-confirm.title') }} - {{ config('other.title') }}"
/>
@endsection
@section('breadcrumbs')
@@ -18,11 +21,7 @@
<section class="panelV2">
<h2 class="panel__heading">{{ __('auth.password-confirmation') }}</h2>
<div class="panel__body">
<form
class="form"
action="{{ route('password.confirm') }}"
method="POST"
>
<form class="form" action="{{ route('password.confirm') }}" method="POST">
@csrf
<p>{{ __('auth.password-confirm-desc') }}</p>
<p class="form__group">
@@ -32,7 +31,7 @@
id="password"
name="password"
required
>
/>
<label class="form__label form__label--floating" for="password">
{{ __('auth.password') }}
</label>

View File

@@ -1,118 +1,129 @@
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="UTF-8">
<title>{{ __('auth.login') }} - {{ config('other.title') }}</title>
@section('meta')
<head>
<meta charset="UTF-8" />
<title>{{ __('auth.login') }} - {{ config('other.title') }}</title>
@section('meta')
<meta
name="description"
content="{{ __('auth.login-now-on') }} {{ config('other.title') }} . {{ __('auth.not-a-member') }}"
>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="{{ __('auth.login') }}">
<meta property="og:site_name" content="{{ config('other.title') }}">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ url('/img/og.png') }}">
<meta property="og:description" content="{{ config('unit3d.powered-by') }}">
<meta property="og:url" content="{{ url('/') }}">
<meta property="og:locale" content="{{ config('app.locale') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
@show
<link rel="shortcut icon" href="{{ url('/favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url('/favicon.ico') }}" type="image/x-icon">
<link rel="stylesheet" href="{{ mix('css/main/login.css') }}" crossorigin="anonymous">
</head>
<body>
<!-- Do NOT Change! For Jackett Support -->
<div class="Jackett" style="display:none;">{{ config('unit3d.powered-by') }}</div>
<!-- Do NOT Change! For Jackett Support -->
<main>
<section class="auth-form">
<form class="auth-form__form" method="POST" action="{{ route('login') }}">
@csrf
<a class="auth-form__branding" href="{{ route('home.index') }}">
<i class="fal fa-tv-retro"></i>
<span class="auth-form__site-logo">{{ \config('other.title') }}</span>
</a>
@if (Session::has('warning') || Session::has('success') || Session::has('info'))
<ul class="auth-form__important-infos">
@if (Session::has('warning'))
<li class="auth-form__important-info">Warning: {{ Session::get('warning') }}</li>
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="{{ __('auth.login') }}" />
<meta property="og:site_name" content="{{ config('other.title') }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ url('/img/og.png') }}" />
<meta property="og:description" content="{{ config('unit3d.powered-by') }}" />
<meta property="og:url" content="{{ url('/') }}" />
<meta property="og:locale" content="{{ config('app.locale') }}" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
@show
<link rel="shortcut icon" href="{{ url('/favicon.ico') }}" type="image/x-icon" />
<link rel="icon" href="{{ url('/favicon.ico') }}" type="image/x-icon" />
<link rel="stylesheet" href="{{ mix('css/main/login.css') }}" crossorigin="anonymous" />
</head>
<body>
<!-- Do NOT Change! For Jackett Support -->
<div class="Jackett" style="display: none">{{ config('unit3d.powered-by') }}</div>
<!-- Do NOT Change! For Jackett Support -->
<main>
<section class="auth-form">
<form class="auth-form__form" method="POST" action="{{ route('login') }}">
@csrf
<a class="auth-form__branding" href="{{ route('home.index') }}">
<i class="fal fa-tv-retro"></i>
<span class="auth-form__site-logo">{{ \config('other.title') }}</span>
</a>
@if (Session::has('warning') || Session::has('success') || Session::has('info'))
<ul class="auth-form__important-infos">
@if (Session::has('warning'))
<li class="auth-form__important-info">
Warning: {{ Session::get('warning') }}
</li>
@endif
@if (Session::has('info'))
<li class="auth-form__important-info">
Info: {{ Session::get('info') }}
</li>
@endif
@if (Session::has('success'))
<li class="auth-form__important-info">
Success: {{ Session::get('success') }}
</li>
@endif
</ul>
@endif
@if (Session::has('info'))
<li class="auth-form__important-info">Info: {{ Session::get('info') }}</li>
<p class="auth-form__text-input-group">
<label class="auth-form__label" for="username">
{{ __('auth.username') }}
</label>
<input
id="username"
class="auth-form__text-input"
autocomplete="username"
autofocus
name="username"
required
type="text"
value="{{ old('username') }}"
/>
</p>
<p class="auth-form__text-input-group">
<label class="auth-form__label" for="password">
{{ __('auth.password') }}
</label>
<input
id="password"
class="auth-form__text-input"
autocomplete="current-password"
name="password"
required
type="password"
/>
</p>
<p class="auth-form__checkbox-input-group">
<input
id="remember"
class="auth-form__checkbox-input"
name="remember"
{{ old('remember') ? 'checked' : '' }}
type="checkbox"
/>
<label class="auth-form__label" for="remember">
{{ __('auth.remember-me') }}
</label>
</p>
@if (config('captcha.enabled'))
@hiddencaptcha
@endif
@if (Session::has('success'))
<li class="auth-form__important-info">Success: {{ Session::get('success') }}</li>
<button class="auth-form__primary-button">{{ __('auth.login') }}</button>
@if (Session::has('errors'))
<ul class="auth-form__errors">
@foreach ($errors->all() as $error)
<li class="auth-form__error">{{ $error }}</li>
@endforeach
</ul>
@endif
</ul>
@endif
<p class="auth-form__text-input-group">
<label class="auth-form__label" for="username">
{{ __('auth.username') }}
</label>
<input
id="username"
class="auth-form__text-input"
autocomplete="username"
autofocus
name="username"
required
type="text"
value="{{ old('username') }}"
>
</p>
<p class="auth-form__text-input-group">
<label class="auth-form__label" for="password">
{{ __('auth.password') }}
</label>
<input
id="password"
class="auth-form__text-input"
autocomplete="current-password"
name="password"
required
type="password"
>
</p>
<p class="auth-form__checkbox-input-group">
<input
id="remember"
class="auth-form__checkbox-input"
name="remember" {{ old('remember') ? 'checked' : '' }}
type="checkbox"
>
<label class="auth-form__label" for="remember">
{{ __('auth.remember-me') }}
</label>
</p>
@if (config('captcha.enabled'))
@hiddencaptcha
@endif
<button class="auth-form__primary-button">{{ __('auth.login') }}</button>
@if (Session::has('errors'))
<ul class="auth-form__errors">
@foreach ($errors->all() as $error)
<li class="auth-form__error">{{ $error }}</li>
@endforeach
</ul>
@endif
</form>
<footer class="auth-form__footer">
@if (!config('other.invite-only'))
<a class="auth-form__footer-item" href="{{ route('register') }}">
{{ __('auth.signup') }}
</a>
@elseif(config('other.application_signups'))
<a class="auth-form__footer-item" href="{{ route('application.create') }}">
{{ __('auth.apply') }}
</a>
@endif
<a class="auth-form__footer-item" href="{{ route('password.request') }}">
{{ __('auth.lost-password') }}
</a>
</footer>
</section>
</main>
</body>
</form>
<footer class="auth-form__footer">
@if (! config('other.invite-only'))
<a class="auth-form__footer-item" href="{{ route('register') }}">
{{ __('auth.signup') }}
</a>
@elseif (config('other.application_signups'))
<a class="auth-form__footer-item" href="{{ route('application.create') }}">
{{ __('auth.apply') }}
</a>
@endif
<a class="auth-form__footer-item" href="{{ route('password.request') }}">
{{ __('auth.lost-password') }}
</a>
</footer>
</section>
</main>
</body>
</html>

View File

@@ -1,79 +1,92 @@
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="UTF-8">
<title>{{ __('auth.lost-password') }} - {{ config('other.title') }}</title>
@section('meta')
<head>
<meta charset="UTF-8" />
<title>{{ __('auth.lost-password') }} - {{ config('other.title') }}</title>
@section('meta')
<meta
name="description"
content="{{ __('auth.login-now-on') }} {{ config('other.title') }} . {{ __('auth.not-a-member') }}"
>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="{{ __('auth.login') }}">
<meta property="og:site_name" content="{{ config('other.title') }}">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ url('/img/og.png') }}">
<meta property="og:description" content="{{ config('unit3d.powered-by') }}">
<meta property="og:url" content="{{ url('/') }}">
<meta property="og:locale" content="{{ config('app.locale') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
@show
<link rel="shortcut icon" href="{{ url('/favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url('/favicon.ico') }}" type="image/x-icon">
<link rel="stylesheet" href="{{ mix('css/main/login.css') }}" crossorigin="anonymous">
</head>
<body>
<main>
<section class="auth-form">
<form class="auth-form__form" method="POST" action="{{ route('password.email') }}">
@csrf
<a class="auth-form__branding" href="{{ route('home.index') }}">
<i class="fal fa-tv-retro"></i>
<span class="auth-form__site-logo">{{ \config('other.title') }}</span>
</a>
@if (Session::has('warning') || Session::has('success') || Session::has('info'))
<ul class="auth-form__important-infos">
@if (Session::has('warning'))
<li class="auth-form__important-info">Warning: {{ Session::get('warning') }}</li>
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="{{ __('auth.login') }}" />
<meta property="og:site_name" content="{{ config('other.title') }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ url('/img/og.png') }}" />
<meta property="og:description" content="{{ config('unit3d.powered-by') }}" />
<meta property="og:url" content="{{ url('/') }}" />
<meta property="og:locale" content="{{ config('app.locale') }}" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
@show
<link rel="shortcut icon" href="{{ url('/favicon.ico') }}" type="image/x-icon" />
<link rel="icon" href="{{ url('/favicon.ico') }}" type="image/x-icon" />
<link rel="stylesheet" href="{{ mix('css/main/login.css') }}" crossorigin="anonymous" />
</head>
<body>
<main>
<section class="auth-form">
<form class="auth-form__form" method="POST" action="{{ route('password.email') }}">
@csrf
<a class="auth-form__branding" href="{{ route('home.index') }}">
<i class="fal fa-tv-retro"></i>
<span class="auth-form__site-logo">{{ \config('other.title') }}</span>
</a>
@if (Session::has('warning') || Session::has('success') || Session::has('info'))
<ul class="auth-form__important-infos">
@if (Session::has('warning'))
<li class="auth-form__important-info">
Warning: {{ Session::get('warning') }}
</li>
@endif
@if (Session::has('info'))
<li class="auth-form__important-info">
Info: {{ Session::get('info') }}
</li>
@endif
@if (Session::has('success'))
<li class="auth-form__important-info">
Success: {{ Session::get('success') }}
</li>
@endif
</ul>
@endif
@if (Session::has('info'))
<li class="auth-form__important-info">Info: {{ Session::get('info') }}</li>
<p class="auth-form__text-input-group">
<label class="auth-form__label" for="email">
{{ __('auth.email') }}
</label>
<input
id="email"
class="auth-form__text-input"
autofocus
name="email"
required
type="email"
value="{{ old('email') }}"
/>
</p>
@if (config('captcha.enabled'))
@hiddencaptcha
@endif
@if (Session::has('success'))
<li class="auth-form__important-info">Success: {{ Session::get('success') }}</li>
<button class="auth-form__primary-button">
{{ __('auth.password-reset') }}
</button>
@if (Session::has('errors') || Session::has('status'))
<ul class="auth-form__errors">
@foreach ($errors->all() as $error)
<li class="auth-form__error">{{ $error }}</li>
@endforeach
@if (Session::has('status'))
<li class="auth-form__error">{{ Session::get('status') }}</li>
@endif
</ul>
@endif
</ul>
@endif
<p class="auth-form__text-input-group">
<label class="auth-form__label" for="email">
{{ __('auth.email') }}
</label>
<input
id="email"
class="auth-form__text-input"
autofocus
name="email"
required
type="email"
value="{{ old('email') }}"
>
</p>
@if (config('captcha.enabled'))
@hiddencaptcha
@endif
<button class="auth-form__primary-button">{{ __('auth.password-reset') }}</button>
@if (Session::has('errors') || Session::has('status'))
<ul class="auth-form__errors">
@foreach ($errors->all() as $error)
<li class="auth-form__error">{{ $error }}</li>
@endforeach
@if (Session::has('status'))
<li class="auth-form__error">{{ Session::get('status') }}</li>
@endif
</ul>
@endif
</form>
</section>
</main>
</body>
</form>
</section>
</main>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More