mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
(Update) CRUDDY PT.2 🚀
This commit is contained in:
@@ -45,7 +45,7 @@ class ContactController extends Controller
|
||||
$input = $request->all();
|
||||
Mail::to($user->email, $user->username)->send(new Contact($input));
|
||||
|
||||
return redirect()->route('home')
|
||||
return redirect()->route('home.index')
|
||||
->withSuccess('Your Message Was Successfully Sent');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ class HomeController extends Controller
|
||||
$freeleech_tokens = FreeleechToken::where('user_id', $user->id)->get();
|
||||
$bookmarks = Bookmark::where('user_id', $user->id)->get();
|
||||
|
||||
return view('home.home', [
|
||||
return view('home.index', [
|
||||
'user' => $user,
|
||||
'personal_freeleech' => $personal_freeleech,
|
||||
'users' => $users,
|
||||
|
||||
@@ -33,15 +33,15 @@ class InviteController extends Controller
|
||||
$user = $request->user();
|
||||
|
||||
if (config('other.invite-only') == false) {
|
||||
return redirect()->route('home')
|
||||
return redirect()->route('home.index')
|
||||
->withErrors('Invitations Are Disabled Due To Open Registration!');
|
||||
}
|
||||
if ($user->can_invite == 0) {
|
||||
return redirect()->route('home')
|
||||
return redirect()->route('home.index')
|
||||
->withErrors('Your Invite Rights Have Been Revoked!');
|
||||
}
|
||||
if (config('other.invites_restriced') == true && ! in_array($user->group->name, config('other.invite_groups'))) {
|
||||
return redirect()->route('home')
|
||||
return redirect()->route('home.index')
|
||||
->withErrors('Invites are currently disabled for your group.');
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class InviteController extends Controller
|
||||
$user = $request->user();
|
||||
|
||||
if (config('other.invites_restriced') == true && ! in_array($user->group->name, config('other.invite_groups'))) {
|
||||
return redirect()->route('home')
|
||||
return redirect()->route('home.index')
|
||||
->withErrors('Invites are currently disabled for your group.');
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function page($slug, $id)
|
||||
public function show($slug, $id)
|
||||
{
|
||||
$page = Page::findOrFail($id);
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ class RssController extends Controller
|
||||
->withErrors($error);
|
||||
}
|
||||
|
||||
return redirect()->route('rss.index.hash', ['hash' => 'private'])
|
||||
return redirect()->route('rss.index', ['hash' => 'private'])
|
||||
->withSuccess($success);
|
||||
}
|
||||
|
||||
@@ -357,7 +357,7 @@ class RssController extends Controller
|
||||
->withErrors($error);
|
||||
}
|
||||
|
||||
return redirect()->route('rss.index.hash', ['hash' => 'private'])
|
||||
return redirect()->route('rss.index', ['hash' => 'private'])
|
||||
->withSuccess($success);
|
||||
}
|
||||
|
||||
@@ -372,7 +372,7 @@ class RssController extends Controller
|
||||
$rss = Rss::where('is_private', '=', 1)->findOrFail($id);
|
||||
$rss->delete();
|
||||
|
||||
return redirect()->route('rss.index.hash', ['hash' => 'private'])
|
||||
return redirect()->route('rss.index', ['hash' => 'private'])
|
||||
->withSuccess('RSS Feed Deleted!');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class BotsController extends Controller
|
||||
{
|
||||
$bots = Bot::orderBy('position', 'ASC')->get();
|
||||
|
||||
return view('Staff.bots.index', [
|
||||
return view('staff.bots.index', [
|
||||
'bots' => $bots,
|
||||
]);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ class BotsController extends Controller
|
||||
$user = $request->user();
|
||||
$bot = Bot::findOrFail($id);
|
||||
|
||||
return view('Staff.bots.edit', [
|
||||
return view('staff.bots.edit', [
|
||||
'user' => $user,
|
||||
'bot' => $bot,
|
||||
]);
|
||||
@@ -114,11 +114,11 @@ class BotsController extends Controller
|
||||
$error = $v->errors();
|
||||
}
|
||||
|
||||
return redirect()->route('Staff.bots.edit', ['id' => $id])
|
||||
return redirect()->route('staff.bots.edit', ['id' => $id])
|
||||
->withErrors($error);
|
||||
}
|
||||
|
||||
return redirect()->route('Staff.bots.edit', ['id' => $id])
|
||||
return redirect()->route('staff.bots.edit', ['id' => $id])
|
||||
->withSuccess($success);
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ class BotsController extends Controller
|
||||
$bot = Bot::where('is_protected', '=', 0)->findOrFail($id);
|
||||
$bot->delete();
|
||||
|
||||
return redirect()->route('Staff.bots.index')
|
||||
return redirect()->route('staff.bots.index')
|
||||
->withSuccess('The Humans Vs Machines War Has Begun! Humans: 1 and Bots: 0');
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ class BotsController extends Controller
|
||||
$bot->active = 0;
|
||||
$bot->save();
|
||||
|
||||
return redirect()->route('Staff.bots.index')
|
||||
return redirect()->route('staff.bots.index')
|
||||
->withSuccess('The Bot Has Been Disabled');
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ class BotsController extends Controller
|
||||
$bot->active = 1;
|
||||
$bot->save();
|
||||
|
||||
return redirect()->route('Staff.bots.index')
|
||||
return redirect()->route('staff.bots.index')
|
||||
->withSuccess('The Bot Has Been Enabled');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ class ChatController extends Controller
|
||||
'Chatbox Has Been Flushed! :broom:'
|
||||
);
|
||||
|
||||
return redirect()->to('staff_dashboard')
|
||||
return redirect()->to('staff.dashboard.index')
|
||||
->withSuccess('Chatbox Has Been Flushed');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class FlushController extends Controller
|
||||
$peer->delete();
|
||||
}
|
||||
|
||||
return redirect()->to('staff_dashboard')
|
||||
return redirect()->to('staff.dashboard.index')
|
||||
->withSuccess('Ghost Peers Have Been Flushed');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,16 +27,17 @@ use Spatie\SslCertificate\SslCertificate;
|
||||
class HomeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Staff Dashboard Index.
|
||||
* Display Staff Dashboard.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function home(Request $request)
|
||||
public function index(Request $request)
|
||||
{
|
||||
// User Info
|
||||
$bannedGroup = Group::select(['id'])->where('slug', '=', 'banned')->first();
|
||||
$validatingGroup = Group::select(['id'])->where('slug', '=', 'validating')->first();
|
||||
|
||||
$num_user = User::count();
|
||||
$banned = User::where('group_id', '=', $bannedGroup->id)->count();
|
||||
$validating = User::where('group_id', '=', $validatingGroup->id)->count();
|
||||
@@ -72,7 +73,7 @@ class HomeController extends Controller
|
||||
// Pending Applications Count
|
||||
$app_count = Application::pending()->count();
|
||||
|
||||
return view('Staff.home.index', [
|
||||
return view('Staff.dashboard.index', [
|
||||
'num_user' => $num_user,
|
||||
'banned' => $banned,
|
||||
'validating' => $validating,
|
||||
|
||||
@@ -47,7 +47,7 @@ class RssController extends Controller
|
||||
{
|
||||
$public_rss = Rss::where('is_private', '=', 0)->orderBy('position', 'ASC')->get();
|
||||
|
||||
return view('Staff.rss.index', [
|
||||
return view('staff.rss.index', [
|
||||
'hash' => $hash,
|
||||
'public_rss' => $public_rss,
|
||||
]);
|
||||
@@ -63,7 +63,7 @@ class RssController extends Controller
|
||||
$user = $request->user();
|
||||
$torrent_repository = $this->torrent_faceted;
|
||||
|
||||
return view('Staff.rss.create', [
|
||||
return view('staff.rss.create', [
|
||||
'torrent_repository' => $torrent_repository,
|
||||
'categories' => Category::all()->sortBy('position'),
|
||||
'types' => Type::all()->sortBy('position'),
|
||||
@@ -116,11 +116,11 @@ class RssController extends Controller
|
||||
$error = $v->errors();
|
||||
}
|
||||
|
||||
return redirect()->route('Staff.rss.create')
|
||||
return redirect()->route('staff.rss.create')
|
||||
->withErrors($error);
|
||||
}
|
||||
|
||||
return redirect()->route('Staff.rss.index')
|
||||
return redirect()->route('staff.rss.index')
|
||||
->withSuccess($success);
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class RssController extends Controller
|
||||
$rss = Rss::where('is_private', '=', 0)->findOrFail($id);
|
||||
$torrent_repository = $this->torrent_faceted;
|
||||
|
||||
return view('Staff.rss.edit', [
|
||||
return view('staff.rss.edit', [
|
||||
'torrent_repository' => $torrent_repository,
|
||||
'categories' => Category::all()->sortBy('position'),
|
||||
'types' => Type::all()->sortBy('position'),
|
||||
@@ -191,11 +191,11 @@ class RssController extends Controller
|
||||
$error = $v->errors();
|
||||
}
|
||||
|
||||
return redirect()->route('Staff.rss.edit', ['id' => $id])
|
||||
return redirect()->route('staff.rss.edit', ['id' => $id])
|
||||
->withErrors($error);
|
||||
}
|
||||
|
||||
return redirect()->route('Staff.rss.index')
|
||||
return redirect()->route('staff.rss.index')
|
||||
->withSuccess($success);
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ class RssController extends Controller
|
||||
$rss = Rss::where('is_private', '=', 0)->findOrFail($id);
|
||||
$rss->delete();
|
||||
|
||||
return redirect()->route('Staff.rss.index')
|
||||
return redirect()->route('staff.rss.index')
|
||||
->withSuccess('RSS Feed Deleted!');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -296,10 +296,10 @@ class UserController extends Controller
|
||||
\LogActivity::addToLog("Staff Member {$staff->username} has deleted {$user->username} account.");
|
||||
|
||||
if ($user->delete()) {
|
||||
return redirect()->to('staff_dashboard')
|
||||
return redirect()->to('staff.dashboard.index')
|
||||
->withSuccess('Account Has Been Removed');
|
||||
} else {
|
||||
return redirect()->to('staff_dashboard')
|
||||
return redirect()->to('staff.dashboard.index')
|
||||
->withErrors('Something Went Wrong!');
|
||||
}
|
||||
}
|
||||
@@ -326,7 +326,7 @@ class UserController extends Controller
|
||||
$user->save();
|
||||
}
|
||||
|
||||
return redirect()->to('staff_dashboard')
|
||||
return redirect()->to('staff.dashboard.index')
|
||||
->withSuccess('Unvalidated Accounts Are Now Validated');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1196,7 +1196,7 @@ class TorrentController extends Controller
|
||||
}
|
||||
\Log::notice("Deletion of torrent failed due to: \n\n{$errors}");
|
||||
|
||||
return redirect()->route('home')
|
||||
return redirect()->route('home.index')
|
||||
->withErrors('Unable to delete Torrent');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -740,7 +740,7 @@ class facetedSearchBuilder {
|
||||
this.view = 'card';
|
||||
}
|
||||
else if (this.type == 'request') {
|
||||
this.api = '/filterRequests';
|
||||
this.api = '/requests/filter';
|
||||
this.view = 'request';
|
||||
}
|
||||
else if (this.type == 'group') {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -26,13 +26,13 @@
|
||||
@section('content')
|
||||
<div class="container box">
|
||||
<div class="box-body">
|
||||
<button id="create-full-backup-button" href="{{ url('staff_dashboard/backup/create-full') }}" class="btn btn-primary ladda-button" data-style="zoom-in">
|
||||
<button id="create-full-backup-button" href="{{ url('/dashboard/backup/create-full') }}" class="btn btn-primary ladda-button" data-style="zoom-in">
|
||||
<span class="ladda-label"><i class="{{ config('other.font-awesome') }} fa-plus"></i> @lang('backup.create_a_new_backup')</span>
|
||||
</button>
|
||||
<button id="create-files-backup-button" href="{{ url('staff_dashboard/backup/create-files') }}" class="btn btn-primary ladda-button" data-style="zoom-in">
|
||||
<button id="create-files-backup-button" href="{{ url('/dashboard/backup/create-files') }}" class="btn btn-primary ladda-button" data-style="zoom-in">
|
||||
<span class="ladda-label"><i class="{{ config('other.font-awesome') }} fa-plus"></i> @lang('backup.create_a_new_files_backup')</span>
|
||||
</button>
|
||||
<button id="create-db-backup-button" href="{{ url('staff_dashboard/backup/create-db') }}" class="btn btn-primary ladda-button" data-style="zoom-in">
|
||||
<button id="create-db-backup-button" href="{{ url('/dashboard/backup/create-db') }}" class="btn btn-primary ladda-button" data-style="zoom-in">
|
||||
<span class="ladda-label"><i class="{{ config('other.font-awesome') }} fa-plus"></i> @lang('backup.create_a_new_db_backup')</span>
|
||||
</button>
|
||||
<br>
|
||||
@@ -57,11 +57,11 @@
|
||||
<td class="text-right">
|
||||
@if ($b['download'])
|
||||
<a class="btn btn-xs btn-default"
|
||||
href="{{ url('staff_dashboard/backup/download/') }}?disk={{ $b['disk'] }}&path={{ urlencode($b['file_path']) }}&file_name={{ urlencode($b['file_name']) }}"><i
|
||||
href="{{ url('/dashboard/backup/download/') }}?disk={{ $b['disk'] }}&path={{ urlencode($b['file_path']) }}&file_name={{ urlencode($b['file_name']) }}"><i
|
||||
class="{{ config('other.font-awesome') }} fa-cloud-download"></i> @lang('backup.download')</a>
|
||||
@endif
|
||||
<a class="btn btn-xs btn-danger" data-disk="{{ $b['disk'] }}" data-file="{{ $b['file_name'] }}" data-button-type="delete"
|
||||
href="{{ url('staff_dashboard/backup/delete') }}"><i
|
||||
href="{{ url('/dashboard/backup/delete') }}"><i
|
||||
class="{{ config('other.font-awesome') }} fa-trash"></i> @lang('backup.delete')</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -28,7 +28,7 @@
|
||||
<h2>@lang('bot.edit-bot')</h2>
|
||||
<form role="form" method="POST" action="{{ route('staff.bots.update', ['id' => $bot->id]) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
@method('PATCH')
|
||||
<div class="form-group">
|
||||
<label for="name">@lang('bot.name')</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="{{ $bot->name }}">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -39,7 +39,7 @@
|
||||
<i class="{{ config('other.font-awesome') }} fa-terminal"></i> Enable Maintenance Mode
|
||||
</h3>
|
||||
<h4 class="text-muted">This commands enables maintenance mode while whitelisting only you IP Address.</h4>
|
||||
<a href="{{ url('/staff_dashboard/command/maintance-enable') }}" class="btn btn-sm btn-primary">Run Command</a>
|
||||
<a href="{{ url('/dashboard/command/maintance-enable') }}" class="btn btn-sm btn-primary">Run Command</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<i class="{{ config('other.font-awesome') }} fa-terminal"></i> Disable Maintenance Mode
|
||||
</h3>
|
||||
<h4 class="text-muted">This commands disables maintenance mode. Bringing the site backup for all to access.</h4>
|
||||
<a href="{{ url('/staff_dashboard/command/maintance-disable') }}" class="btn btn-sm btn-primary">Run Command</a>
|
||||
<a href="{{ url('/dashboard/command/maintance-disable') }}" class="btn btn-sm btn-primary">Run Command</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -141,7 +141,7 @@
|
||||
<i class="{{ config('other.font-awesome') }} fa-terminal"></i> Send Test Email
|
||||
</h3>
|
||||
<h4 class="text-muted">This commands tests your email configuration.</h4>
|
||||
<a href="{{ url('/staff_dashboard/command/test-email') }}" class="btn btn-sm btn-primary">Run Command</a>
|
||||
<a href="{{ url('/dashboard/command/test-email') }}" class="btn btn-sm btn-primary">Run Command</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<tbody>
|
||||
@foreach ($polls as $poll)
|
||||
<tr>
|
||||
<td><a href="{{ url('/staff_dashboard/poll/' . $poll->id) }}">{{ $poll->title }}</a></td>
|
||||
<td><a href="{{ url('/dashboard/poll/' . $poll->id) }}">{{ $poll->title }}</a></td>
|
||||
<td>{{ date('d M Y', $poll->created_at->getTimestamp()) }}</td>
|
||||
<td>
|
||||
<a href="#" class="btn btn-warning">Edit</a>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -28,7 +28,7 @@
|
||||
<h2>@lang('rss.edit-public-feed')</h2>
|
||||
<form role="form" method="POST" action="{{ route('staff.rss.update', ['id' => $rss->id]) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
@method('PATCH')
|
||||
<div class="form-group">
|
||||
<label for="name">@lang('rss.feed') @lang('rss.name')</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="{{ $rss->name }}">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('staff.staff-dashboard')</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<a href="{{ route('staff.dashboard.index') }}" itemprop="url" class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">Staff Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
xhr.abort();
|
||||
}
|
||||
xhr = $.ajax({
|
||||
url: 'filterGraveyard',
|
||||
url: '/graveyard/filter',
|
||||
data: {
|
||||
_token: csrf,
|
||||
search: search,
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
xhr.abort();
|
||||
}
|
||||
xhr = $.ajax({
|
||||
url: 'filterNotifications',
|
||||
url: '/notifications/filter',
|
||||
data: {
|
||||
_token: csrf,
|
||||
bon_gifts: bon_gifts,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li>
|
||||
<a href="{{ route('page', ['slug' => $page->slug, 'id' => $page->id]) }}" itemprop="url"
|
||||
<a href="{{ route('pages.show', ['slug' => $page->slug, 'id' => $page->id]) }}" itemprop="url"
|
||||
class="l-breadcrumb-item-link">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $page->name }}</span>
|
||||
</a>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="{{ route('home') }}">
|
||||
<a href="{{ route('home.index') }}">
|
||||
<i class="{{ config('other.font-awesome') }} fa-home"></i> @lang('common.home')
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
<i class="{{ config('other.font-awesome') }} fa-link"></i> @lang('staff.links')
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('home') }}">
|
||||
<a href="{{ route('home.index') }}">
|
||||
<i class="{{ config('other.font-awesome') }} fa-columns"></i> @lang('staff.frontend')
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}">
|
||||
<a href="{{ route('staff.dashboard.index') }}">
|
||||
<i class="{{ config('other.font-awesome') }} fa-columns"></i> @lang('staff.staff-dashboard')
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
<div class="col-md-2 l-footer-section">
|
||||
<h2 class="l-footer-section-title">@lang('common.pages')</h2>
|
||||
<ul>
|
||||
@foreach ($pages as $p)
|
||||
<li><a href="{{ route('page', ['slug' => $p->slug, 'id' => $p->id]) }}">{{ $p->name }}</a></li>
|
||||
@foreach ($pages as $page)
|
||||
<li><a href="{{ route('pages.show', ['slug' => $page->slug, 'id' => $page->id]) }}">{{ $page->name }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<meta name="description" content="{{ config('other.meta_description') }}">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="_base_url" content="{{ route('home') }}">
|
||||
<meta name="_base_url" content="{{ route('home.index') }}">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
@yield('meta')
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<ul class="nav panel-list">
|
||||
<li class="nav-level">@lang('common.navigation')</li>
|
||||
<li>
|
||||
<a href="{{ route('home') }}">
|
||||
<a href="{{ route('home.index') }}">
|
||||
<i class="{{ config('other.font-awesome') }} fa-home" style=" font-size: 18px; color: #ffffff;"></i>
|
||||
<span class="menu-text">@lang('common.home')</span>
|
||||
<span class="selected"></span>
|
||||
@@ -92,14 +92,14 @@
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('home') }}/page/rules.1">
|
||||
<a href="{{ route('home.index') }}/page/rules.1">
|
||||
<i class="{{ config('other.font-awesome') }} fa-info-square" style=" font-size: 18px; color: #ffffff;"></i>
|
||||
<span class="menu-text">@lang('common.rules')</span>
|
||||
<span class="selected"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('home') }}/page/faq.3">
|
||||
<a href="{{ route('home.index') }}/page/faq.3">
|
||||
<i class="{{ config('other.font-awesome') }} fa-question-square" style=" font-size: 18px; color: #ffffff;"></i>
|
||||
<span class="menu-text">@lang('common.faq')</span>
|
||||
<span class="selected"></span>
|
||||
@@ -114,7 +114,7 @@
|
||||
</li>
|
||||
@if (auth()->user()->group->is_modo)
|
||||
<li>
|
||||
<a href="{{ route('staff_dashboard') }}">
|
||||
<a href="{{ route('staff.dashboard.index') }}">
|
||||
<i class="{{ config('other.font-awesome') }} fa-cogs" style=" font-size: 18px; color: #ffffff;"></i>
|
||||
<span class="menu-text">@lang('staff.staff-dashboard')</span>
|
||||
<span class="selected"></span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<header id="hoe-header" hoe-color-type="header-bg5" hoe-lpanel-effect="shrink" class="hoe-minimized-lpanel">
|
||||
<div class="hoe-left-header" hoe-position-type="fixed">
|
||||
<a href="{{ route('home') }}">
|
||||
<a href="{{ route('home.index') }}">
|
||||
<div class="banner">
|
||||
<i class="fal fa-rocket" style="display: inline;"></i>
|
||||
</div>
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
}
|
||||
|
||||
xhr = $.ajax({
|
||||
url: 'filterRequests',
|
||||
url: '/requests/filter',
|
||||
data: {
|
||||
_token: csrf,
|
||||
search: search,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<h1 class="upload-title">@lang('rss.edit-private-feed')</h1>
|
||||
<form role="form" method="POST" action="{{ route('rss.update', ['id' => $rss->id]) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
@method('PATCH')
|
||||
<div class="block">
|
||||
<div class="upload col-md-12">
|
||||
<div class="form-group">
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<i class="{{ config('other.font-awesome') }} fa-archive"></i> Logs
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{ route('staff_dashboard') }}">Return To Staff Panel</a></li>
|
||||
<li><a href="{{ route('staff.dashboard.index') }}">Return To Staff Panel</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -296,7 +296,7 @@
|
||||
<i class="{{ config('other.font-awesome') }} fa-archive"></i> Logs
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{ route('staff_dashboard') }}">Return To Staff Panel</a></li>
|
||||
<li><a href="{{ route('staff.dashboard.index') }}">Return To Staff Panel</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+227
-199
@@ -30,37 +30,37 @@ Route::group(['middleware' => 'language'], function () {
|
||||
|------------------------------------------
|
||||
*/
|
||||
Route::group(['before' => 'auth', 'middleware' => 'guest'], function () {
|
||||
// Authentication Routes
|
||||
// Authentication
|
||||
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
|
||||
Route::post('login', 'Auth\LoginController@login')->name('');
|
||||
|
||||
// Password Reset Routes
|
||||
// Password Reset
|
||||
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
|
||||
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
|
||||
Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('');
|
||||
Route::get('/password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
|
||||
|
||||
// Registration Routes
|
||||
// Registration
|
||||
Route::get('/register/{code?}', 'Auth\RegisterController@registrationForm')->name('registrationForm');
|
||||
Route::post('/register/{code?}', 'Auth\RegisterController@register')->name('register');
|
||||
|
||||
// Application Routes
|
||||
// Application Signup
|
||||
Route::get('/application', 'Auth\ApplicationController@create')->name('application.create');
|
||||
Route::post('/application', 'Auth\ApplicationController@store')->name('application.store');
|
||||
|
||||
// Activation Routes
|
||||
// Activation
|
||||
Route::get('/activate/{token}', 'Auth\ActivationController@activate')->name('activate');
|
||||
|
||||
// Forgot Username Routes
|
||||
// Forgot Username
|
||||
Route::get('username/reminder', 'Auth\ForgotUsernameController@showForgotUsernameForm')->name('username.request');
|
||||
Route::post('username/reminder', 'Auth\ForgotUsernameController@sendUsernameReminder')->name('username.email');
|
||||
});
|
||||
|
||||
Route::group(['before' => 'auth'], function () {
|
||||
// Announce
|
||||
// Announce (Pass Key Auth)
|
||||
Route::get('/announce/{passkey}', 'AnnounceController@announce')->name('announce');
|
||||
|
||||
// RSS Custom Routes (RSS Key Auth)
|
||||
// RSS (RSS Key Auth)
|
||||
Route::get('/rss/{id}.{rsskey}', 'RssController@show')->name('rss.show.rsskey');
|
||||
Route::get('/torrent/download/{slug}.{id}.{rsskey}', 'TorrentController@download')->name('torrent.download.rsskey');
|
||||
});
|
||||
@@ -72,159 +72,172 @@ Route::group(['middleware' => 'language'], function () {
|
||||
*/
|
||||
Route::group(['middleware' => ['auth', 'twostep', 'banned']], function () {
|
||||
|
||||
// RSS Custom Routes
|
||||
Route::get('/rss#{hash?}', 'RssController@index')->name('rss.index.hash');
|
||||
// General
|
||||
Route::get('/logout', 'Auth\LoginController@logout')->name('logout');
|
||||
Route::get('/', 'HomeController@index')->name('home.index');
|
||||
|
||||
// RSS CRUD
|
||||
Route::resource('rss', 'RssController')->except([
|
||||
'show',
|
||||
]);
|
||||
// RSS System
|
||||
Route::group(['prefix' => 'rss'], function () {
|
||||
Route::get('/{hash?}', 'RssController@index')->name('rss.index');
|
||||
Route::get('/create', 'RssController@create')->name('rss.create');
|
||||
Route::post('/store', 'RssController@store')->name('rss.store');
|
||||
Route::get('/{id}/edit', 'RssController@edit')->name('rss.edit');
|
||||
Route::patch('/{id}/update', 'RssController@update')->name('rss.update');
|
||||
Route::delete('/{id}/destroy', 'RssController@destroy')->name('rss.destroy');
|
||||
});
|
||||
|
||||
// Two Step Auth
|
||||
Route::get('/twostep/needed', 'Auth\TwoStepController@showVerification')->name('verificationNeeded');
|
||||
Route::post('/twostep/verify', 'Auth\TwoStepController@verify')->name('verify');
|
||||
Route::post('/twostep/resend', 'Auth\TwoStepController@resend')->name('resend');
|
||||
|
||||
// General
|
||||
Route::get('/', 'HomeController@index')->name('home');
|
||||
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
|
||||
Route::group(['prefix' => 'twostep'], function () {
|
||||
Route::get('/needed', 'Auth\TwoStepController@showVerification')->name('verificationNeeded');
|
||||
Route::post('/verify', 'Auth\TwoStepController@verify')->name('verify');
|
||||
Route::post('/resend', 'Auth\TwoStepController@resend')->name('resend');
|
||||
});
|
||||
|
||||
// Articles
|
||||
Route::get('/articles', 'ArticleController@index')->name('articles.index');
|
||||
Route::get('/articles/{id}', 'ArticleController@show')->name('articles.show');
|
||||
Route::group(['prefix' => 'articles'], function () {
|
||||
Route::get('/', 'ArticleController@index')->name('articles.index');
|
||||
Route::get('/{id}', 'ArticleController@show')->name('articles.show');
|
||||
});
|
||||
|
||||
// Bonus System
|
||||
Route::get('/bonus', 'BonusController@bonus')->name('bonus');
|
||||
Route::get('/bonus/gifts', 'BonusController@gifts')->name('bonus_gifts');
|
||||
Route::get('/bonus/tips', 'BonusController@tips')->name('bonus_tips');
|
||||
Route::get('/bonus/store', 'BonusController@store')->name('bonus_store');
|
||||
Route::get('/bonus/gift', 'BonusController@gift')->name('bonus_gift');
|
||||
Route::post('/bonus/exchange/{id}', 'BonusController@exchange')->name('bonus_exchange');
|
||||
Route::post('/bonus/gift', 'BonusController@sendGift')->name('bonus_send_gift');
|
||||
Route::group(['prefix' => 'bonus'], function () {
|
||||
Route::get('/', 'BonusController@bonus')->name('bonus');
|
||||
Route::get('/gifts', 'BonusController@gifts')->name('bonus_gifts');
|
||||
Route::get('/tips', 'BonusController@tips')->name('bonus_tips');
|
||||
Route::get('/store', 'BonusController@store')->name('bonus_store');
|
||||
Route::get('/gift', 'BonusController@gift')->name('bonus_gift');
|
||||
Route::post('/exchange/{id}', 'BonusController@exchange')->name('bonus_exchange');
|
||||
Route::post('/gift', 'BonusController@sendGift')->name('bonus_send_gift');
|
||||
});
|
||||
|
||||
// Bookmarks
|
||||
Route::post('/bookmarks/{id}', 'BookmarkController@store')->name('bookmarks.store');
|
||||
Route::delete('/unbookmark/{id}', 'BookmarkController@destroy')->name('bookmarks.destroy');
|
||||
Route::group(['prefix' => 'bookmarks'], function () {
|
||||
Route::post('/{id}/store', 'BookmarkController@store')->name('bookmarks.store');
|
||||
Route::delete('/{id}/destroy', 'BookmarkController@destroy')->name('bookmarks.destroy');
|
||||
});
|
||||
|
||||
// Reports
|
||||
Route::post('/report/torrent/{slug}.{id}', 'ReportController@torrent')->name('report_torrent');
|
||||
Route::post('/report/request/{id}', 'ReportController@request')->name('report_request');
|
||||
Route::post('/report/user/{id}', 'ReportController@user')->name('report_user');
|
||||
// Reports System
|
||||
Route::group(['prefix' => 'reports'], function () {
|
||||
Route::post('/torrent/{slug}.{id}', 'ReportController@torrent')->name('report_torrent');
|
||||
Route::post('/request/{id}', 'ReportController@request')->name('report_request');
|
||||
Route::post('/user/{id}', 'ReportController@user')->name('report_user');
|
||||
});
|
||||
|
||||
// Categories
|
||||
Route::get('/categories', 'CategoryController@index')->name('categories.index');
|
||||
Route::get('/categories/{id}', 'CategoryController@show')->name('categories.show');
|
||||
// Categories System
|
||||
Route::group(['prefix' => 'categories'], function () {
|
||||
Route::get('/', 'CategoryController@index')->name('categories.index');
|
||||
Route::get('/{id}', 'CategoryController@show')->name('categories.show');
|
||||
});
|
||||
|
||||
// Contact Us
|
||||
Route::get('/contact', 'ContactController@index')->name('contact.index');
|
||||
Route::post('/contact', 'ContactController@sotore')->name('contact.store');
|
||||
// Contact Us System
|
||||
Route::group(['prefix' => 'contact'], function () {
|
||||
Route::get('/', 'ContactController@index')->name('contact.index');
|
||||
Route::post('/store', 'ContactController@sotore')->name('contact.store');
|
||||
});
|
||||
|
||||
// Page
|
||||
Route::get('/page/{slug}.{id}', 'PageController@page')->name('page');
|
||||
|
||||
// Staff List
|
||||
Route::get('/staff', 'PageController@staff')->name('staff');
|
||||
|
||||
// Internals List
|
||||
Route::get('/internal', 'PageController@internal')->name('internal');
|
||||
|
||||
// Client Blacklist
|
||||
Route::get('/blacklist', 'PageController@blacklist')->name('blacklist');
|
||||
|
||||
// About Us
|
||||
Route::get('/aboutus', 'PageController@about')->name('about');
|
||||
|
||||
// Email Whitelist / Blacklist
|
||||
Route::get('/emaillist', 'PageController@emailList')->name('emaillist');
|
||||
// Pages System
|
||||
Route::group(['prefix' => 'pages'], function () {
|
||||
Route::get('/{slug}.{id}', 'PageController@show')->name('pages.show');
|
||||
Route::get('/staff', 'PageController@staff')->name('staff');
|
||||
Route::get('/internal', 'PageController@internal')->name('internal');
|
||||
Route::get('/blacklist', 'PageController@blacklist')->name('blacklist');
|
||||
Route::get('/aboutus', 'PageController@about')->name('about');
|
||||
Route::get('/emaillist', 'PageController@emailList')->name('emaillist');
|
||||
});
|
||||
|
||||
// Comments
|
||||
Route::post('/comments/article/{slug}.{id}', 'CommentController@article')->name('comment_article');
|
||||
Route::post('/comments/torrent/{slug}.{id}', 'CommentController@torrent')->name('comment_torrent');
|
||||
Route::get('/comments/thanks/{id}', 'CommentController@quickthanks')->name('comment_thanks');
|
||||
Route::post('/comments/request/{id}', 'CommentController@request')->name('comment_request');
|
||||
Route::post('/comments/playlist/{id}', 'CommentController@playlist')->name('comment_playlist');
|
||||
Route::post('/comments/edit/{comment_id}', 'CommentController@editComment')->name('comment_edit');
|
||||
Route::get('/comments/delete/{comment_id}', 'CommentController@deleteComment')->name('comment_delete');
|
||||
Route::group(['prefix' => 'comments'], function () {
|
||||
Route::post('/article/{slug}.{id}', 'CommentController@article')->name('comment_article');
|
||||
Route::post('/torrent/{slug}.{id}', 'CommentController@torrent')->name('comment_torrent');
|
||||
Route::get('/thanks/{id}', 'CommentController@quickthanks')->name('comment_thanks');
|
||||
Route::post('/request/{id}', 'CommentController@request')->name('comment_request');
|
||||
Route::post('/playlist/{id}', 'CommentController@playlist')->name('comment_playlist');
|
||||
Route::post('/edit/{comment_id}', 'CommentController@editComment')->name('comment_edit');
|
||||
Route::get('/delete/{comment_id}', 'CommentController@deleteComment')->name('comment_delete');
|
||||
});
|
||||
|
||||
//Extra-Stats
|
||||
Route::get('/stats', 'StatsController@index')->name('stats');
|
||||
//User
|
||||
Route::get('/stats/user/uploaded', 'StatsController@uploaded')->name('uploaded');
|
||||
Route::get('/stats/user/downloaded', 'StatsController@downloaded')->name('downloaded');
|
||||
Route::get('/stats/user/seeders', 'StatsController@seeders')->name('seeders');
|
||||
Route::get('/stats/user/leechers', 'StatsController@leechers')->name('leechers');
|
||||
Route::get('/stats/user/uploaders', 'StatsController@uploaders')->name('uploaders');
|
||||
Route::get('/stats/user/bankers', 'StatsController@bankers')->name('bankers');
|
||||
Route::get('/stats/user/seedtime', 'StatsController@seedtime')->name('seedtime');
|
||||
Route::get('/stats/user/seedsize', 'StatsController@seedsize')->name('seedsize');
|
||||
//Torrent
|
||||
Route::get('/stats/torrent/seeded', 'StatsController@seeded')->name('seeded');
|
||||
Route::get('/stats/torrent/leeched', 'StatsController@leeched')->name('leeched');
|
||||
Route::get('/stats/torrent/completed', 'StatsController@completed')->name('completed');
|
||||
Route::get('/stats/torrent/dying', 'StatsController@dying')->name('dying');
|
||||
Route::get('/stats/torrent/dead', 'StatsController@dead')->name('dead');
|
||||
//Request
|
||||
Route::get('/stats/request/bountied', 'StatsController@bountied')->name('bountied');
|
||||
//Groups
|
||||
Route::get('/stats/groups', 'StatsController@groups')->name('groups');
|
||||
Route::get('/stats/groups/group/{id}', 'StatsController@group')->name('group');
|
||||
// Languages
|
||||
Route::get('/stats/languages', 'StatsController@languages')->name('languages');
|
||||
Route::group(['prefix' => 'stats'], function () {
|
||||
Route::get('/', 'StatsController@index')->name('stats');
|
||||
Route::get('/user/uploaded', 'StatsController@uploaded')->name('uploaded');
|
||||
Route::get('/user/downloaded', 'StatsController@downloaded')->name('downloaded');
|
||||
Route::get('/user/seeders', 'StatsController@seeders')->name('seeders');
|
||||
Route::get('/user/leechers', 'StatsController@leechers')->name('leechers');
|
||||
Route::get('/user/uploaders', 'StatsController@uploaders')->name('uploaders');
|
||||
Route::get('/user/bankers', 'StatsController@bankers')->name('bankers');
|
||||
Route::get('/user/seedtime', 'StatsController@seedtime')->name('seedtime');
|
||||
Route::get('/user/seedsize', 'StatsController@seedsize')->name('seedsize');
|
||||
Route::get('/torrent/seeded', 'StatsController@seeded')->name('seeded');
|
||||
Route::get('/torrent/leeched', 'StatsController@leeched')->name('leeched');
|
||||
Route::get('/torrent/completed', 'StatsController@completed')->name('completed');
|
||||
Route::get('/torrent/dying', 'StatsController@dying')->name('dying');
|
||||
Route::get('/torrent/dead', 'StatsController@dead')->name('dead');
|
||||
Route::get('/request/bountied', 'StatsController@bountied')->name('bountied');
|
||||
Route::get('/groups', 'StatsController@groups')->name('groups');
|
||||
Route::get('/groups/group/{id}', 'StatsController@group')->name('group');
|
||||
Route::get('/languages', 'StatsController@languages')->name('languages');
|
||||
});
|
||||
|
||||
// Private Messages System
|
||||
Route::post('/mail/searchPMInbox', 'PrivateMessageController@searchPMInbox')->name('searchPMInbox');
|
||||
Route::post('/mail/searchPMOutbox', 'PrivateMessageController@searchPMOutbox')->name('searchPMOutbox');
|
||||
Route::get('/mail/inbox', 'PrivateMessageController@getPrivateMessages')->name('inbox');
|
||||
Route::get('/mail/message/{id}', 'PrivateMessageController@getPrivateMessageById')->name('message');
|
||||
Route::get('/mail/outbox', 'PrivateMessageController@getPrivateMessagesSent')->name('outbox');
|
||||
Route::get('/mail/create/{receiver_id}/{username}', 'PrivateMessageController@makePrivateMessage')->name('create');
|
||||
Route::get('/mail/mark-all-read', 'PrivateMessageController@markAllAsRead')->name('mark-all-read');
|
||||
Route::post('/mail/send', 'PrivateMessageController@sendPrivateMessage')->name('send-pm');
|
||||
Route::post('/mail/reply/{id}', 'PrivateMessageController@replyPrivateMessage')->name('reply-pm');
|
||||
Route::post('/mail/delete/{id}', 'PrivateMessageController@deletePrivateMessage')->name('delete-pm');
|
||||
Route::group(['prefix' => 'mail'], function () {
|
||||
Route::post('/searchPMInbox', 'PrivateMessageController@searchPMInbox')->name('searchPMInbox');
|
||||
Route::post('/searchPMOutbox', 'PrivateMessageController@searchPMOutbox')->name('searchPMOutbox');
|
||||
Route::get('/inbox', 'PrivateMessageController@getPrivateMessages')->name('inbox');
|
||||
Route::get('/message/{id}', 'PrivateMessageController@getPrivateMessageById')->name('message');
|
||||
Route::get('/outbox', 'PrivateMessageController@getPrivateMessagesSent')->name('outbox');
|
||||
Route::get('/create/{receiver_id}/{username}', 'PrivateMessageController@makePrivateMessage')->name('create');
|
||||
Route::get('/mark-all-read', 'PrivateMessageController@markAllAsRead')->name('mark-all-read');
|
||||
Route::post('/send', 'PrivateMessageController@sendPrivateMessage')->name('send-pm');
|
||||
Route::post('/reply/{id}', 'PrivateMessageController@replyPrivateMessage')->name('reply-pm');
|
||||
Route::post('/delete/{id}', 'PrivateMessageController@deletePrivateMessage')->name('delete-pm');
|
||||
});
|
||||
|
||||
// Requests
|
||||
Route::get('/filterRequests', 'RequestController@faceted');
|
||||
Route::get('/requests', 'RequestController@requests')->name('requests');
|
||||
Route::get('/request/add/{title?}/{imdb?}/{tmdb?}', 'RequestController@addRequestForm')->name('add_request_form');
|
||||
Route::post('/request/add', 'RequestController@addRequest')->name('add_request');
|
||||
Route::get('/request/{id}/edit', 'RequestController@editRequestForm')->name('edit_request_form');
|
||||
Route::post('/request/{id}/edit', 'RequestController@editRequest')->name('edit_request');
|
||||
Route::get('/request/{id}{hash?}', 'RequestController@request')->name('request');
|
||||
Route::get('/request/{id}/accept', 'RequestController@approveRequest')->name('approveRequest');
|
||||
Route::post('/request/{id}/delete', 'RequestController@deleteRequest')->name('deleteRequest');
|
||||
Route::post('/request/{id}/fill', 'RequestController@fillRequest')->name('fill_request');
|
||||
Route::get('/request/{id}/reject', 'RequestController@rejectRequest')->name('rejectRequest');
|
||||
Route::post('/request/{id}/vote', 'RequestController@addBonus')->name('add_votes');
|
||||
Route::post('/request/{id}/claim', 'RequestController@claimRequest')->name('claimRequest');
|
||||
Route::get('/request/{id}/unclaim', 'RequestController@unclaimRequest')->name('unclaimRequest');
|
||||
Route::group(['prefix' => 'requests'], function () {
|
||||
Route::get('/filter', 'RequestController@faceted');
|
||||
Route::get('/', 'RequestController@requests')->name('requests');
|
||||
Route::get('/add/{title?}/{imdb?}/{tmdb?}', 'RequestController@addRequestForm')->name('add_request_form');
|
||||
Route::post('/add', 'RequestController@addRequest')->name('add_request');
|
||||
Route::get('/{id}/edit', 'RequestController@editRequestForm')->name('edit_request_form');
|
||||
Route::post('/{id}/edit', 'RequestController@editRequest')->name('edit_request');
|
||||
Route::get('/{id}{hash?}', 'RequestController@request')->name('request');
|
||||
Route::get('/{id}/accept', 'RequestController@approveRequest')->name('approveRequest');
|
||||
Route::post('/{id}/delete', 'RequestController@deleteRequest')->name('deleteRequest');
|
||||
Route::post('/{id}/fill', 'RequestController@fillRequest')->name('fill_request');
|
||||
Route::get('/{id}/reject', 'RequestController@rejectRequest')->name('rejectRequest');
|
||||
Route::post('/{id}/vote', 'RequestController@addBonus')->name('add_votes');
|
||||
Route::post('/{id}/claim', 'RequestController@claimRequest')->name('claimRequest');
|
||||
Route::get('/{id}/unclaim', 'RequestController@unclaimRequest')->name('unclaimRequest');
|
||||
});
|
||||
|
||||
// Torrent
|
||||
Route::get('/feedizeTorrents/{type}', 'TorrentController@feedize')->name('feedizeTorrents')->middleware('modo');
|
||||
Route::get('/filterTorrents', 'TorrentController@faceted');
|
||||
Route::get('/filterSettings', 'TorrentController@filtered');
|
||||
Route::get('/torrents', 'TorrentController@torrents')->name('torrents');
|
||||
Route::get('/torrents/{slug}.{id}{hash?}', 'TorrentController@torrent')->name('torrent');
|
||||
Route::get('/torrents/{slug}.{id}/peers', 'TorrentController@peers')->name('peers');
|
||||
Route::get('/torrents/{slug}.{id}/history', 'TorrentController@history')->name('history');
|
||||
Route::get('/upload/{title?}/{imdb?}/{tmdb?}', 'TorrentController@uploadForm')->name('upload_form');
|
||||
Route::post('/upload', 'TorrentController@upload')->name('upload');
|
||||
Route::get('/download_check/{slug}.{id}', 'TorrentController@downloadCheck')->name('download_check');
|
||||
Route::get('/download/{slug}.{id}', 'TorrentController@download')->name('download');
|
||||
Route::get('/torrents/cards', 'TorrentController@cardLayout')->name('cards');
|
||||
Route::get('/torrents/groupings', 'TorrentController@groupingLayout')->name('groupings');
|
||||
Route::post('/torrents/delete', 'TorrentController@deleteTorrent')->name('delete');
|
||||
Route::get('/torrents/{slug}.{id}/edit', 'TorrentController@editForm')->name('edit_form');
|
||||
Route::post('/torrents/{slug}.{id}/edit', 'TorrentController@edit')->name('edit');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_fl', 'TorrentController@grantFL')->name('torrent_fl');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_doubleup', 'TorrentController@grantDoubleUp')->name('torrent_doubleup');
|
||||
Route::get('/torrents/{slug}.{id}/bumpTorrent', 'TorrentController@bumpTorrent')->name('bumpTorrent');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_sticky', 'TorrentController@sticky')->name('torrent_sticky');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_feature', 'TorrentController@grantFeatured')->name('torrent_feature');
|
||||
Route::get('/torrents/{slug}.{id}/reseed', 'TorrentController@reseedTorrent')->name('reseed');
|
||||
Route::post('/torrents/{slug}.{id}/tip_uploader', 'BonusController@tipUploader')->name('tip_uploader');
|
||||
Route::get('/torrents/{slug}.{id}/freeleech_token', 'TorrentController@freeleechToken')->name('freeleech_token');
|
||||
Route::get('/torrents/similar/{category_id}.{tmdb}', 'TorrentController@similar')->name('torrents.similar');
|
||||
Route::group(['prefix' => 'torrents'], function () {
|
||||
Route::get('/feedizeTorrents/{type}', 'TorrentController@feedize')->name('feedizeTorrents')->middleware('modo');
|
||||
Route::get('/filterTorrents', 'TorrentController@faceted');
|
||||
Route::get('/filterSettings', 'TorrentController@filtered');
|
||||
Route::get('/torrents', 'TorrentController@torrents')->name('torrents');
|
||||
Route::get('/torrents/{slug}.{id}{hash?}', 'TorrentController@torrent')->name('torrent');
|
||||
Route::get('/torrents/{slug}.{id}/peers', 'TorrentController@peers')->name('peers');
|
||||
Route::get('/torrents/{slug}.{id}/history', 'TorrentController@history')->name('history');
|
||||
Route::get('/upload/{title?}/{imdb?}/{tmdb?}', 'TorrentController@uploadForm')->name('upload_form');
|
||||
Route::post('/upload', 'TorrentController@upload')->name('upload');
|
||||
Route::get('/download_check/{slug}.{id}', 'TorrentController@downloadCheck')->name('download_check');
|
||||
Route::get('/download/{slug}.{id}', 'TorrentController@download')->name('download');
|
||||
Route::get('/torrents/cards', 'TorrentController@cardLayout')->name('cards');
|
||||
Route::get('/torrents/groupings', 'TorrentController@groupingLayout')->name('groupings');
|
||||
Route::post('/torrents/delete', 'TorrentController@deleteTorrent')->name('delete');
|
||||
Route::get('/torrents/{slug}.{id}/edit', 'TorrentController@editForm')->name('edit_form');
|
||||
Route::post('/torrents/{slug}.{id}/edit', 'TorrentController@edit')->name('edit');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_fl', 'TorrentController@grantFL')->name('torrent_fl');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_doubleup', 'TorrentController@grantDoubleUp')->name('torrent_doubleup');
|
||||
Route::get('/torrents/{slug}.{id}/bumpTorrent', 'TorrentController@bumpTorrent')->name('bumpTorrent');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_sticky', 'TorrentController@sticky')->name('torrent_sticky');
|
||||
Route::get('/torrents/{slug}.{id}/torrent_feature', 'TorrentController@grantFeatured')->name('torrent_feature');
|
||||
Route::get('/torrents/{slug}.{id}/reseed', 'TorrentController@reseedTorrent')->name('reseed');
|
||||
Route::post('/torrents/{slug}.{id}/tip_uploader', 'BonusController@tipUploader')->name('tip_uploader');
|
||||
Route::get('/torrents/{slug}.{id}/freeleech_token', 'TorrentController@freeleechToken')->name('freeleech_token');
|
||||
Route::get('/torrents/similar/{category_id}.{tmdb}', 'TorrentController@similar')->name('torrents.similar');
|
||||
});
|
||||
|
||||
// Achievements
|
||||
Route::get('/achievements', 'AchievementsController@index')->name('achievements.index');
|
||||
@@ -265,7 +278,6 @@ Route::group(['middleware' => 'language'], function () {
|
||||
Route::get('/{username}/followers', 'UserController@followers')->name('user_followers');
|
||||
Route::get('/{username}/bookmarks', 'BookmarkController@index')->name('bookmarks.index');
|
||||
|
||||
// User Settings
|
||||
Route::get('/{username}/settings', 'UserController@settings')->name('user_settings');
|
||||
Route::get('/{username}/settings/privacy{hash?}', 'UserController@privacy')->name('user_privacy');
|
||||
Route::get('/{username}/settings/profile', 'UserController@profile')->name('user_profile');
|
||||
@@ -301,12 +313,9 @@ Route::group(['middleware' => 'language'], function () {
|
||||
Route::get('/{username}/invites', 'InviteController@invites')->name('user_invites');
|
||||
Route::post('/accept-rules', 'UserController@acceptRules')->name('accept.rules');
|
||||
|
||||
// User Seedboxes
|
||||
Route::get('/{username}/seedboxes', 'SeedboxController@index')->name('seedboxes.index');
|
||||
Route::post('/{username}/seedboxes', 'SeedboxController@store')->name('seedboxes.store');
|
||||
Route::delete('/{username}/seedboxes/{id}', 'SeedboxController@destroy')->name('seedboxes.destroy');
|
||||
|
||||
// User Wishlist
|
||||
Route::get('/{username}/wishlist', 'UserController@wishes')->name('user_wishlist');
|
||||
});
|
||||
|
||||
@@ -330,49 +339,61 @@ Route::group(['middleware' => 'language'], function () {
|
||||
Route::post('/resendinvite/{id}', 'InviteController@reProcess')->name('reProcess');
|
||||
|
||||
// Poll System
|
||||
Route::get('/polls', 'PollController@index')->name('polls');
|
||||
Route::get('/poll/{slug}', 'PollController@show')->name('poll');
|
||||
Route::post('/poll/vote', 'PollController@vote')->middleware('check_ip');
|
||||
Route::get('/poll/{slug}/result', 'PollController@result')->name('poll_results');
|
||||
Route::group(['prefix' => 'polls'], function () {
|
||||
Route::get('/', 'PollController@index')->name('polls');
|
||||
Route::get('/{slug}', 'PollController@show')->name('poll');
|
||||
Route::post('/vote', 'PollController@vote')->middleware('check_ip');
|
||||
Route::get('/{slug}/result', 'PollController@result')->name('poll_results');
|
||||
});
|
||||
|
||||
// Graveyard System
|
||||
Route::get('/filterGraveyard', 'GraveyardController@faceted');
|
||||
Route::get('/graveyard', 'GraveyardController@index')->name('graveyard.index');
|
||||
Route::post('/graveyard/{id}', 'GraveyardController@store')->name('graveyard.store');
|
||||
Route::delete('/graveyard/{id}', 'GraveyardController@destroy')->name('graveyard.destroy');
|
||||
Route::group(['prefix' => 'graveyard'], function () {
|
||||
Route::get('/filter', 'GraveyardController@faceted');
|
||||
Route::get('/', 'GraveyardController@index')->name('graveyard.index');
|
||||
Route::post('/{id}/store', 'GraveyardController@store')->name('graveyard.store');
|
||||
Route::delete('/{id}/destroy', 'GraveyardController@destroy')->name('graveyard.destroy');
|
||||
});
|
||||
|
||||
// Notifications System
|
||||
Route::get('/filterNotifications', 'NotificationController@faceted');
|
||||
Route::get('/notifications', 'NotificationController@index')->name('notifications.index');
|
||||
Route::get('/notifications/{id}', 'NotificationController@show')->name('notifications.show');
|
||||
Route::get('/notification/update/{id}', 'NotificationController@update')->name('notifications.update');
|
||||
Route::get('/notification/updateall', 'NotificationController@updateAll')->name('notifications.updateall');
|
||||
Route::get('/notification/destroy/{id}', 'NotificationController@destroy')->name('notifications.destroy');
|
||||
Route::get('/notification/destroyall', 'NotificationController@destroyAll')->name('notifications.destroyall');
|
||||
Route::group(['prefix' => 'notifications'], function () {
|
||||
Route::get('/filter', 'NotificationController@faceted');
|
||||
Route::get('/', 'NotificationController@index')->name('notifications.index');
|
||||
Route::get('/{id}', 'NotificationController@show')->name('notifications.show');
|
||||
Route::get('/{id}/update', 'NotificationController@update')->name('notifications.update');
|
||||
Route::get('/updateall', 'NotificationController@updateAll')->name('notifications.updateall');
|
||||
Route::get('/{id}/destroy', 'NotificationController@destroy')->name('notifications.destroy');
|
||||
Route::get('/destroyall', 'NotificationController@destroyAll')->name('notifications.destroyall');
|
||||
});
|
||||
|
||||
// Image Albums System
|
||||
Route::get('/albums', 'AlbumController@index')->name('albums.index');
|
||||
Route::get('/albums/create', 'AlbumController@create')->name('albums.create');
|
||||
Route::post('/albums', 'AlbumController@store')->name('albums.store');
|
||||
Route::get('/albums/{id}', 'AlbumController@show')->name('albums.show');
|
||||
Route::delete('/albums/{id}', 'AlbumController@destroy')->name('albums.destroy');
|
||||
// Albums System
|
||||
Route::group(['prefix' => 'albums'], function () {
|
||||
Route::get('/', 'AlbumController@index')->name('albums.index');
|
||||
Route::get('/create', 'AlbumController@create')->name('albums.create');
|
||||
Route::post('/store', 'AlbumController@store')->name('albums.store');
|
||||
Route::get('/{id}', 'AlbumController@show')->name('albums.show');
|
||||
Route::delete('/{id}/destroy', 'AlbumController@destroy')->name('albums.destroy');
|
||||
});
|
||||
|
||||
Route::get('/images/create/{id}', 'ImageController@create')->name('images.create');
|
||||
Route::post('/images', 'ImageController@store')->name('images.store');
|
||||
Route::get('/image/download/{id}', 'ImageController@download')->name('images.download');
|
||||
Route::delete('/images/{id}', 'ImageController@destroy')->name('images.destroy');
|
||||
// Images System
|
||||
Route::group(['prefix' => 'images'], function () {
|
||||
Route::get('/{id}/create', 'ImageController@create')->name('images.create');
|
||||
Route::post('/store', 'ImageController@store')->name('images.store');
|
||||
Route::get('/{id}/download', 'ImageController@download')->name('images.download');
|
||||
Route::delete('/{id}/destroy', 'ImageController@destroy')->name('images.destroy');
|
||||
});
|
||||
|
||||
// Playlist System
|
||||
Route::get('/playlists', 'PlaylistController@index')->name('playlists.index');
|
||||
Route::get('/playlists/create', 'PlaylistController@create')->name('playlists.create');
|
||||
Route::post('/playlists', 'PlaylistController@store')->name('playlists.store');
|
||||
Route::get('/playlists/{id}', 'PlaylistController@show')->name('playlists.show');
|
||||
Route::get('/playlists/{id}/edit', 'PlaylistController@edit')->name('playlists.edit');
|
||||
Route::patch('/playlists/{id}', 'PlaylistController@update')->name('playlists.update');
|
||||
Route::delete('/playlists/{id}', 'PlaylistController@destroy')->name('playlists.destroy');
|
||||
|
||||
Route::post('/playlists/attach', 'PlaylistTorrentController@store')->name('playlists.attach');
|
||||
Route::delete('/playlists/{id}/detach', 'PlaylistTorrentController@destroy')->name('playlists.detach');
|
||||
Route::group(['prefix' => 'playlists'], function () {
|
||||
Route::get('/', 'PlaylistController@index')->name('playlists.index');
|
||||
Route::get('/create', 'PlaylistController@create')->name('playlists.create');
|
||||
Route::post('/store', 'PlaylistController@store')->name('playlists.store');
|
||||
Route::get('/{id}', 'PlaylistController@show')->name('playlists.show');
|
||||
Route::get('/{id}/edit', 'PlaylistController@edit')->name('playlists.edit');
|
||||
Route::patch('/{id}/update', 'PlaylistController@update')->name('playlists.update');
|
||||
Route::delete('/{id}/destroy', 'PlaylistController@destroy')->name('playlists.destroy');
|
||||
Route::post('/attach', 'PlaylistTorrentController@store')->name('playlists.attach');
|
||||
Route::delete('/{id}/detach', 'PlaylistTorrentController@destroy')->name('playlists.detach');
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
@@ -394,6 +415,7 @@ Route::group(['middleware' => 'language'], function () {
|
||||
|------------------------------------------
|
||||
*/
|
||||
Route::group(['prefix' => 'forums', 'middleware' => ['auth', 'twostep', 'banned']], function () {
|
||||
|
||||
// Display Forum Index
|
||||
Route::get('/', 'ForumController@index')->name('forum_index');
|
||||
|
||||
@@ -462,34 +484,40 @@ Route::group(['middleware' => 'language'], function () {
|
||||
| Staff Dashboard Routes Group (When Authorized And A Staff Group)
|
||||
|-----------------------------------------------------------------
|
||||
*/
|
||||
Route::group(['prefix' => 'staff_dashboard', 'middleware' => ['auth', 'twostep', 'modo', 'banned'], 'namespace' => 'Staff'], function () {
|
||||
|
||||
// RSS System
|
||||
Route::get('/rss', 'RssController@index')->name('staff.rss.index');
|
||||
Route::get('/rss/create', 'RssController@create')->name('staff.rss.create');
|
||||
Route::post('/rss', 'RssController@store')->name('staff.rss.store');
|
||||
Route::get('/rss/{id}/edit', 'RssController@edit')->name('staff.rss.edit');
|
||||
Route::patch('/rss/{id}', 'RssController@update')->name('staff.rss.update');
|
||||
Route::delete('/rss/{id}', 'RssController@destroy')->name('staff.rss.destroy');
|
||||
|
||||
// Chat Bots
|
||||
Route::get('/bots', 'BotsController@index')->name('staff.bots.index');
|
||||
Route::get('/bots/{id}/edit', 'BotsController@edit')->name('staff.bots.edit');
|
||||
Route::patch('/bots/{id}', 'BotsController@update')->name('staff.bots.update');
|
||||
Route::delete('/bots/{id}', 'BotsController@destroy')->name('staff.bots.destroy');
|
||||
Route::get('/bots/{id}/disable', 'BotsController@disable')->name('Staff.bots.disable');
|
||||
Route::get('/bots/{id}/enable', 'BotsController@enable')->name('Staff.bots.enable');
|
||||
Route::group(['prefix' => 'dashboard', 'middleware' => ['auth', 'twostep', 'modo', 'banned'], 'namespace' => 'Staff'], function () {
|
||||
|
||||
// Staff Dashboard
|
||||
Route::get('/', 'HomeController@home')->name('staff_dashboard');
|
||||
Route::get('/', 'HomeController@index')->name('staff.dashboard.index');
|
||||
|
||||
// RSS System
|
||||
Route::group(['prefix' => 'rss'], function () {
|
||||
Route::get('/', 'RssController@index')->name('staff.rss.index');
|
||||
Route::get('/create', 'RssController@create')->name('staff.rss.create');
|
||||
Route::post('/store', 'RssController@store')->name('staff.rss.store');
|
||||
Route::get('/{id}/edit', 'RssController@edit')->name('staff.rss.edit');
|
||||
Route::patch('/{id}/update', 'RssController@update')->name('staff.rss.update');
|
||||
Route::delete('/{id}/destroy', 'RssController@destroy')->name('staff.rss.destroy');
|
||||
});
|
||||
|
||||
// Chat Bots
|
||||
Route::group(['prefix' => 'bots'], function () {
|
||||
Route::get('/', 'BotsController@index')->name('staff.bots.index');
|
||||
Route::get('/{id}/edit', 'BotsController@edit')->name('staff.bots.edit');
|
||||
Route::patch('/{id}/update', 'BotsController@update')->name('staff.bots.update');
|
||||
Route::delete('/{id}/destroy', 'BotsController@destroy')->name('staff.bots.destroy');
|
||||
Route::get('/{id}/disable', 'BotsController@disable')->name('staff.bots.disable');
|
||||
Route::get('/{id}/enable', 'BotsController@enable')->name('staff.bots.enable');
|
||||
});
|
||||
|
||||
// Codebase Version Check
|
||||
Route::get('/check-update', 'VersionController@checkVersion');
|
||||
|
||||
// Ban
|
||||
Route::get('/bans', 'BanController@getBans')->name('getBans');
|
||||
Route::post('/ban/{id}', 'BanController@ban')->name('ban');
|
||||
Route::post('/unban/{id}', 'BanController@unban')->name('unban');
|
||||
// Ban System
|
||||
Route::group(['prefix' => 'bans'], function () {
|
||||
Route::get('/', 'BanController@getBans')->name('getBans');
|
||||
Route::post('/ban/{id}', 'BanController@ban')->name('ban');
|
||||
Route::post('/unban/{id}', 'BanController@unban')->name('unban');
|
||||
});
|
||||
|
||||
// Flush Ghost Peers
|
||||
Route::get('/flush', 'FlushController@deleteOldPeers')->name('flush');
|
||||
|
||||
Reference in New Issue
Block a user