(Update) CRUDDY PT.4 🚀

This commit is contained in:
HDVinnie
2019-10-23 14:49:39 -04:00
parent dc2cf66405
commit 2979750a8f
97 changed files with 433 additions and 413 deletions
+6 -6
View File
@@ -35,19 +35,19 @@ use App\Achievements\UserMade900Uploads;
class TorrentHelper
{
public static function approveHelper($slug, $id)
public static function approveHelper($id)
{
$appurl = config('app.url');
$appname = config('app.name');
Torrent::approve($id);
$torrent = Torrent::with('uploader')->withAnyStatus()->where('id', '=', $id)->where('slug', '=', $slug)->first();
$torrent = Torrent::with('uploader')->withAnyStatus()->where('id', '=', $id)->first();
$uploader = $torrent->uploader;
$wishes = Wish::where('imdb', '=', 'tt'.$torrent->imdb)->whereNull('source')->get();
if ($wishes) {
foreach ($wishes as $wish) {
$wish->source = "{$appurl}/torrents/{$torrent->slug}.{$torrent->id}";
$wish->source = "{$appurl}/torrents/{$torrent->id}";
$wish->save();
// Send Private Message
@@ -55,7 +55,7 @@ class TorrentHelper
$pm->sender_id = 1;
$pm->receiver_id = $wish->user_id;
$pm->subject = 'Wish List Notice!';
$pm->message = "The following item, {$wish->title}, from your wishlist has been uploaded to {$appname}! You can view it [url={$appurl}/torrents/".$torrent->slug.'.'.$torrent->id.'] HERE [/url]
$pm->message = "The following item, {$wish->title}, from your wishlist has been uploaded to {$appname}! You can view it [url={$appurl}/torrents/".$torrent->id.'] HERE [/url]
[color=red][b]THIS IS AN AUTOMATED SYSTEM MESSAGE, PLEASE DO NOT REPLY![/b][/color]';
$pm->save();
}
@@ -100,11 +100,11 @@ class TorrentHelper
if ($anon == 0) {
$bot->message(config('irc-bot.channels'), '['.$appname.'] User '.$username.' has uploaded '.$torrent->name.' grab it now!');
$bot->message(config('irc-bot.channels'), '[Category: '.$torrent->category->name.'] [Type: '.$torrent->type.'] [Size:'.$torrent->getSize().']');
$bot->message(config('irc-bot.channels'), "[Link: {$appurl}/torrents/".$slug.'.'.$id.']');
$bot->message(config('irc-bot.channels'), "[Link: {$appurl}/torrents/".$id.']');
} else {
$bot->message(config('irc-bot.channels'), '['.$appname.'] An anonymous user has uploaded '.$torrent->name.' grab it now!');
$bot->message(config('irc-bot.channels'), '[Category: '.$torrent->category->name.'] [Type: '.$torrent->type.'] [Size: '.$torrent->getSize().']');
$bot->message(config('irc-bot.channels'), "[Link: {$appurl}/torrents/".$slug.'.'.$id.']');
$bot->message(config('irc-bot.channels'), "[Link: {$appurl}/torrents/".$id.']');
}
}
+8 -8
View File
@@ -425,15 +425,15 @@ class BonusController extends Controller
$tip_amount = $request->input('tip');
if ($tip_amount > $user->seedbonus) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('Your To Broke To Tip The Uploader!');
}
if ($user->id == $torrent->user_id) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('You Cannot Tip Yourself!');
}
if ($tip_amount <= 0) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('You Cannot Tip A Negative Amount!');
}
$uploader->seedbonus += $tip_amount;
@@ -456,7 +456,7 @@ class BonusController extends Controller
$uploader->notify(new NewUploadTip('torrent', $user->username, $tip_amount, $torrent));
}
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Your Tip Was Successfully Applied!');
}
@@ -481,15 +481,15 @@ class BonusController extends Controller
$tip_amount = $request->input('tip');
if ($tip_amount > $user->seedbonus) {
return redirect()->route('forum_topic', ['slug' => $post->topic->slug, 'id' => $post->topic->id])
return redirect()->route('forum_topic', ['id' => $post->topic->id])
->withErrors('You Are To Broke To Tip The Poster!');
}
if ($user->id == $poster->id) {
return redirect()->route('forum_topic', ['slug' => $post->topic->slug, 'id' => $post->topic->id])
return redirect()->route('forum_topic', ['id' => $post->topic->id])
->withErrors('You Cannot Tip Yourself!');
}
if ($tip_amount <= 0) {
return redirect()->route('forum_topic', ['slug' => $post->topic->slug, 'id' => $post->topic->id])
return redirect()->route('forum_topic', ['id' => $post->topic->id])
->withErrors('You Cannot Tip A Negative Amount!');
}
$poster->seedbonus += $tip_amount;
@@ -510,7 +510,7 @@ class BonusController extends Controller
$poster->notify(new NewPostTip('forum', $user->username, $tip_amount, $post));
return redirect()->route('forum_topic', ['slug' => $post->topic->slug, 'id' => $post->topic->id])
return redirect()->route('forum_topic', ['id' => $post->topic->id])
->withSuccess('Your Tip Was Successfully Applied!');
}
+3 -3
View File
@@ -58,12 +58,12 @@ class BookmarkController extends Controller
$torrent = Torrent::withAnyStatus()->findOrFail($id);
if ($request->user()->isBookmarked($torrent->id)) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('Torrent has already been bookmarked.');
} else {
$request->user()->bookmarks()->attach($torrent->id);
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent Has Been Bookmarked Successfully!');
}
}
@@ -81,7 +81,7 @@ class BookmarkController extends Controller
$torrent = Torrent::withAnyStatus()->findOrFail($id);
$request->user()->bookmarks()->detach($torrent->id);
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent Has Been Unbookmarked Successfully!');
}
}
+1 -1
View File
@@ -43,7 +43,7 @@ class CategoryController extends Controller
public function show(Request $request, $id)
{
$user = $request->user();
$category = Category::select(['id', 'name', 'slug'])->findOrFail($id);
$category = Category::select(['id', 'name'])->findOrFail($id);
$torrents = Torrent::with(['user', 'category'])->withCount(['thanks', 'comments'])->where('category_id', '=', $id)->orderBy('sticky', 'desc')->latest()->paginate(25);
$personal_freeleech = PersonalFreeleech::where('user_id', '=', $user->id)->first();
+6 -6
View File
@@ -274,7 +274,7 @@ class CommentController extends Controller
$user = $request->user();
if ($user->can_comment == 0) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErros('Your Comment Rights Have Benn Revoked!');
}
@@ -292,7 +292,7 @@ class CommentController extends Controller
]);
if ($v->fails()) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors($v->errors());
} else {
$comment->save();
@@ -360,7 +360,7 @@ class CommentController extends Controller
$user->addProgress(new UserMade800Comments(), 1);
$user->addProgress(new UserMade900Comments(), 1);
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id, 'hash' => '#comments'])
return redirect()->route('torrent', ['id' => $torrent->id, 'hash' => '#comments'])
->withSuccess('Your Comment Has Been Added!');
}
}
@@ -483,7 +483,7 @@ class CommentController extends Controller
$user = $request->user();
if ($user->can_comment == 0) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErros('Your Comment Rights Have Benn Revoked!');
}
@@ -518,7 +518,7 @@ class CommentController extends Controller
]);
if ($v->fails()) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors($v->errors());
} else {
$comment->save();
@@ -550,7 +550,7 @@ class CommentController extends Controller
"[url={$profile_url}]{$user->username}[/url] has left a comment on Torrent [url={$torrent_url}]{$torrent->name}[/url]"
);
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Your Comment Has Been Added!');
}
}
+18 -18
View File
@@ -364,7 +364,7 @@ class ForumController extends Controller
// Check if this is a category or forum
if ($forum->parent_id != 0) {
return redirect()->route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]);
return redirect()->route('forum_display', ['id' => $forum->id]);
}
// Check if the user has permission to view the forum
@@ -408,7 +408,7 @@ class ForumController extends Controller
// Check if this is a category or forum
if ($forum->parent_id == 0) {
return redirect()->route('forum_category', ['slug' => $forum->slug, 'id' => $forum->id]);
return redirect()->route('forum_category', ['id' => $forum->id]);
}
// Check if the user has permission to view the forum
@@ -508,7 +508,7 @@ class ForumController extends Controller
]);
if ($v->fails()) {
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withErrors($v->errors());
} else {
$post->save();
@@ -729,7 +729,7 @@ class ForumController extends Controller
$user->addProgress(new UserMade800Posts(), 1);
$user->addProgress(new UserMade900Posts(), 1);
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withSuccess('Topic Created Successfully!');
}
}
@@ -770,7 +770,7 @@ class ForumController extends Controller
$topic->forum_id = $forum_id;
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withSuccess('Topic Successfully Edited');
}
@@ -835,7 +835,7 @@ class ForumController extends Controller
abort_unless($user->group->is_modo || $user->id === $post->user_id, 403);
$post->delete();
return redirect()->route('forum_topic', ['slug' => $post->topic->slug, 'id' => $post->topic->id])
return redirect()->route('forum_topic', ['id' => $post->topic->id])
->withSuccess('This Post Is Now Deleted!');
}
@@ -856,7 +856,7 @@ class ForumController extends Controller
$topic->state = 'close';
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withSuccess('This Topic Is Now Closed!');
}
@@ -877,7 +877,7 @@ class ForumController extends Controller
$topic->state = 'open';
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withSuccess('This Topic Is Now Open!');
}
@@ -899,7 +899,7 @@ class ForumController extends Controller
$posts->delete();
$topic->delete();
return redirect()->route('forum_display', ['slug' => $topic->forum->slug, 'id' => $topic->forum->id])
return redirect()->route('forum_display', ['id' => $topic->forum->id])
->withSuccess('This Topic Is Now Deleted!');
}
@@ -916,7 +916,7 @@ class ForumController extends Controller
$topic->pinned = 1;
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withSuccess('This Topic Is Now Pinned!');
}
@@ -933,7 +933,7 @@ class ForumController extends Controller
$topic->pinned = 0;
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withSuccess('This Topic Is Now Unpinned!');
}
@@ -954,7 +954,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
@@ -968,7 +968,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
@@ -982,7 +982,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
@@ -996,7 +996,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
@@ -1010,7 +1010,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
@@ -1024,7 +1024,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
@@ -1038,7 +1038,7 @@ class ForumController extends Controller
}
$topic->save();
return redirect()->route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id])
return redirect()->route('forum_topic', ['id' => $topic->id])
->withInfo('Label Change Has Been Applied');
}
}
+2 -2
View File
@@ -139,7 +139,7 @@ class InviteController extends Controller
abort_unless($invite->user_id === $user->id, 403);
if ($invite->accepted_by !== null) {
return redirect()->route('user_invites', ['slug' => $user->slug, 'id' => $user->id])
return redirect()->route('user_invites', ['id' => $user->id])
->withErrors('The invite you are trying to resend has already been used.');
}
@@ -148,7 +148,7 @@ class InviteController extends Controller
// Activity Log
\LogActivity::addToLog("Member {$user->username} has resent invite to {$invite->email} .");
return redirect()->route('user_invites', ['slug' => $user->slug, 'id' => $user->id])
return redirect()->route('user_invites', ['id' => $user->id])
->withSuccess('Invite was resent successfully!');
}
+2 -2
View File
@@ -30,7 +30,7 @@ class LikeController extends Controller
public function store(Request $request, $postId)
{
$post = Post::findOrFail($postId);
$postUrl = "forums/topic/{$post->topic->slug}.{$post->topic->id}?page={$post->getPageNumber()}#post-{$postId}";
$postUrl = "forums/topic/{$post->topic->id}?page={$post->getPageNumber()}#post-{$postId}";
$user = $request->user();
$like = $user->likes()->where('post_id', '=', $post->id)->where('like', '=', 1)->first();
@@ -65,7 +65,7 @@ class LikeController extends Controller
public function destroy(Request $request, $postId)
{
$post = Post::findOrFail($postId);
$postUrl = "forums/topic/{$post->topic->slug}.{$post->topic->id}?page={$post->getPageNumber()}#post-{$postId}";
$postUrl = "forums/topic/{$post->topic->id}?page={$post->getPageNumber()}#post-{$postId}";
$user = $request->user();
$like = $user->likes()->where('post_id', '=', $post->id)->where('like', '=', 1)->first();
+3 -4
View File
@@ -81,12 +81,11 @@ class ReportController extends Controller
* Create A Torrent Report.
*
* @param \Illuminate\Http\Request $request
* @param $slug
* @param $id
*
* @return Illuminate\Http\RedirectResponse
*/
public function torrent(Request $request, $slug, int $id)
public function torrent(Request $request, int $id)
{
$torrent = Torrent::findOrFail($id);
$reported_by = $request->user();
@@ -97,7 +96,7 @@ class ReportController extends Controller
]);
if ($v->fails()) {
return redirect()->route('torrent', ['slug' => $slug, 'id' => $id])
return redirect()->route('torrent', ['id' => $id])
->withErrors($v->errors());
} else {
$this->report->create([
@@ -114,7 +113,7 @@ class ReportController extends Controller
// Activity Log
\LogActivity::addToLog("Member {$reported_by->username} has made a new Torrent report.");
return redirect()->route('torrent', ['slug' => $slug, 'id' => $id])
return redirect()->route('torrent', ['id' => $id])
->withSuccess('Your report has been successfully sent');
}
}
@@ -62,14 +62,13 @@ class ModerationController extends Controller
/**
* Approve A Torrent.
*
* @param $slug
* @param $id
*
* @return Illuminate\Http\RedirectResponse
*/
public function approve($slug, $id)
public function approve($id)
{
$torrent = Torrent::withAnyStatus()->where('id', '=', $id)->where('slug', '=', $slug)->first();
$torrent = Torrent::withAnyStatus()->where('id', '=', $id)->first();
if ($torrent->status !== 1) {
$appurl = config('app.url');
@@ -81,15 +80,15 @@ class ModerationController extends Controller
// Announce To Shoutbox
if ($anon == 0) {
$this->chat->systemMessage(
"User [url={$appurl}/".$username.'.'.$user_id.']'.$username."[/url] has uploaded [url={$appurl}/torrents/".$torrent->slug.'.'.$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
"User [url={$appurl}/".$username.'.'.$user_id.']'.$username."[/url] has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
);
} else {
$this->chat->systemMessage(
"An anonymous user has uploaded [url={$appurl}/torrents/".$torrent->slug.'.'.$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
"An anonymous user has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
);
}
TorrentHelper::approveHelper($torrent->slug, $torrent->id);
TorrentHelper::approveHelper($torrent->id);
return redirect()->route('moderation')
->withSuccess('Torrent Approved');
@@ -37,7 +37,7 @@ class SubscriptionController extends Controller
}
if (! isset($logger)) {
$logger = 'forum_topic';
$params = ['slug' => $topic->slug, 'id' => $topic->id];
$params = ['id' => $topic->id];
}
if (! $request->user()->isSubscribed('topic', $topic->id)) {
@@ -71,7 +71,7 @@ class SubscriptionController extends Controller
}
if (! isset($logger)) {
$logger = 'forum_topic';
$params = ['slug' => $topic->slug, 'id' => $topic->id];
$params = ['id' => $topic->id];
}
if ($request->user()->isSubscribed('topic', $topic->id)) {
@@ -103,7 +103,7 @@ class SubscriptionController extends Controller
}
if (! isset($logger)) {
$logger = 'forum_display';
$params = ['slug' => $forum->slug, 'id' => $forum->id];
$params = ['id' => $forum->id];
}
if (! $request->user()->isSubscribed('forum', $forum->id)) {
@@ -137,7 +137,7 @@ class SubscriptionController extends Controller
}
if (! isset($logger)) {
$logger = 'forum_display';
$params = ['slug' => $forum->slug, 'id' => $forum->id];
$params = ['id' => $forum->id];
}
if ($request->user()->isSubscribed('forum', $forum->id)) {
+3 -3
View File
@@ -33,13 +33,13 @@ class ThankController extends Controller
$torrent = Torrent::findOrFail($id);
if ($user->id === $torrent->user_id) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('You Cannot Thank Your Own Torrent!');
}
$thank = Thank::where('user_id', '=', $user->id)->where('torrent_id', '=', $torrent->id)->first();
if ($thank) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('You Have Already Thanked On This Torrent!');
}
@@ -53,7 +53,7 @@ class ThankController extends Controller
$torrent->notifyUploader('thank', $thank);
}
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Your Thank Was Successfully Applied!');
}
}
+19 -19
View File
@@ -1074,7 +1074,7 @@ class TorrentController extends Controller
]);
if ($v->fails()) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors($v->errors());
} else {
$torrent->save();
@@ -1114,7 +1114,7 @@ class TorrentController extends Controller
\LogActivity::addToLog("Member {$user->username} has edited torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
}
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Successfully Edited!');
}
}
@@ -1423,18 +1423,18 @@ class TorrentController extends Controller
);
} else {
$this->chat->systemMessage(
"An anonymous user has uploaded [url={$appurl}/torrents/".$torrent->slug.'.'.$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
"An anonymous user has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
);
}
TorrentHelper::approveHelper($torrent->slug, $torrent->id);
TorrentHelper::approveHelper($torrent->id);
\LogActivity::addToLog("Member {$user->username} has uploaded torrent, ID: {$torrent->id} NAME: {$torrent->name} . \nThis torrent has been auto approved by the System.");
} else {
\LogActivity::addToLog("Member {$user->username} has uploaded torrent, ID: {$torrent->id} NAME: {$torrent->name} . \nThis torrent is pending approval from satff.");
}
return redirect()->route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('download_check', ['id' => $torrent->id])
->withSuccess('Your torrent file is ready to be downloaded and seeded!');
}
}
@@ -1475,19 +1475,19 @@ class TorrentController extends Controller
// User's ratio is too low
if ($user->getRatio() < config('other.ratio')) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('Your Ratio Is To Low To Download!');
}
// User's download rights are revoked
if ($user->can_download == 0 && $torrent->user_id != $user->id) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('Your Download Rights Have Been Revoked!');
}
// Torrent Status Is Rejected
if ($torrent->isRejected()) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('This Torrent Has Been Rejected By Staff');
}
@@ -1496,7 +1496,7 @@ class TorrentController extends Controller
// The torrent file exist ?
if (! file_exists(getcwd().'/files/torrents/'.$torrent->file_name)) {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('Torrent File Not Found! Please Report This Torrent!');
} else {
// Delete the last torrent tmp file
@@ -1558,7 +1558,7 @@ class TorrentController extends Controller
$bot->message('#announce', "[Link: $torrent_url]");
}
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent Has Been Bumped To The Top Successfully!');
}
@@ -1586,7 +1586,7 @@ class TorrentController extends Controller
// Activity Log
\LogActivity::addToLog('Staff Member '.$request->user()->username." has stickied torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent Sticky Status Has Been Adjusted!');
}
@@ -1625,7 +1625,7 @@ class TorrentController extends Controller
// Activity Log
\LogActivity::addToLog('Staff Member '.$user->username." has revoked freeleech on torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent FL Has Been Adjusted!');
}
@@ -1664,10 +1664,10 @@ class TorrentController extends Controller
// Activity Log
\LogActivity::addToLog('Staff Member '.$request->user()->username." has featured torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent Is Now Featured!');
} else {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('Torrent Is Already Featured!');
}
}
@@ -1705,7 +1705,7 @@ class TorrentController extends Controller
// Activity Log
\LogActivity::addToLog('Staff Member '.$user->username." has granted double upload on torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('Torrent DoubleUpload Has Been Adjusted!');
}
@@ -1740,10 +1740,10 @@ class TorrentController extends Controller
// Activity Log
\LogActivity::addToLog("Member {$user->username} has requested a reseed request on torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('A notification has been sent to all users that downloaded this torrent along with original uploader!');
} else {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('This torrent doesnt meet the rules for a reseed request.');
}
}
@@ -1774,10 +1774,10 @@ class TorrentController extends Controller
// Activity Log
\LogActivity::addToLog("Member {$user->username} has used a freeleech token on torrent, ID: {$torrent->id} NAME: {$torrent->name} .");
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withSuccess('You Have Successfully Activated A Freeleech Token For This Torrent!');
} else {
return redirect()->route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id])
return redirect()->route('torrent', ['id' => $torrent->id])
->withErrors('You Dont Have Enough Freeleech Tokens Or Already Have One Activated On This Torrent.');
}
}
+4 -4
View File
@@ -59,14 +59,14 @@ class WishController extends Controller
if ($this->wish->exists($uid, $imdb)) {
return redirect()
->route('user_wishlist', ['slug' => $request->user()->slug, 'id' => $uid])
->route('user_wishlist', ['id' => $uid])
->withErrors('Wish already exists!');
}
$omdb = $this->wish->omdbRequest($imdb);
if ($omdb === null || $omdb === false) {
return redirect()
->route('user_wishlist', ['slug' => $request->user()->slug, 'id' => $uid])
->route('user_wishlist', ['id' => $uid])
->withErrors('IMDB Bad Request!');
}
@@ -81,7 +81,7 @@ class WishController extends Controller
]);
return redirect()
->route('user_wishlist', ['slug' => $request->user()->slug, 'id' => $uid])
->route('user_wishlist', ['id' => $uid])
->withSuccess('Wish Successfully Added!');
}
@@ -99,7 +99,7 @@ class WishController extends Controller
$this->wish->delete($id);
return redirect()
->route('user_wishlist', ['slug' => $request->user()->slug, 'id' => $uid])
->route('user_wishlist', ['id' => $uid])
->withSuccess('Wish Successfully Removed!');
}
}
+1 -1
View File
@@ -143,7 +143,7 @@ class WishRepository implements WishInterface
->where('status', '=', 1)
->first();
return route('torrent', ['slug' => Str::slug($source->name), 'id' => $source->id]);
return route('torrent', ['id' => $source->id]);
}
return $this->findById($id)->source ?? null;
+2 -2
View File
@@ -16,7 +16,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff_article_edit', ['slug' => $article->slug, 'id' => $article->id]) }}" itemprop="url"
<a href="{{ route('staff_article_edit', ['id' => $article->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Article Edit</span>
</a>
@@ -27,7 +27,7 @@
<div class="container box">
<h2>Add a post</h2>
<form role="form" method="POST" enctype="multipart/form-data"
action="{{ route('staff_article_edit',['slug' => $article->slug, 'id' => $article->id]) }}">
action="{{ route('staff_article_edit',['id' => $article->id]) }}">
@csrf
<div class="form-group">
<label for="title">Title</label>
@@ -35,16 +35,16 @@
@foreach ($articles as $article)
<tr>
<td>
<a href="{{ route('staff_article_edit_form', ['slug' => $article->slug, 'id' => $article->id]) }}">{{ $article->title }}</a>
<a href="{{ route('staff_article_edit_form', ['id' => $article->id]) }}">{{ $article->title }}</a>
</td>
<td>
<a href="{{ route('users.show', ['username' => $article->user->username]) }}">{{ $article->user->username }}</a>
</td>
<td>{{ $article->created_at->toDayDateTimeString() }}</td>
<td>
<a href="{{ route('staff_article_edit_form', ['slug' => $article->slug, 'id' => $article->id]) }}"
<a href="{{ route('staff_article_edit_form', ['id' => $article->id]) }}"
class="btn btn-warning">Edit</a>
<a href="{{ route('staff_article_delete', ['slug' => $article->slug, 'id' => $article->id]) }}"
<a href="{{ route('staff_article_delete', ['id' => $article->id]) }}"
class="btn btn-danger">Delete</a>
</td>
</tr>
@@ -12,7 +12,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff.categories.edit', ['slug' => $category->slug, 'id' => $category->id]) }}"
<a href="{{ route('staff.categories.edit', ['id' => $category->id]) }}"
itemprop="url" class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Torrent Category</span>
</a>
@@ -22,7 +22,7 @@
@section('content')
<div class="container box">
<h2>Edit A Category</h2>
<form role="form" method="POST" action="{{ route('staff.categories.update', ['slug' => $category->slug, 'id' => $category->id]) }}"
<form role="form" method="POST" action="{{ route('staff.categories.update', ['id' => $category->id]) }}"
enctype="multipart/form-data">
@method('PATCH')
@csrf
+15 -14
View File
@@ -35,63 +35,64 @@
</tr>
</thead>
<tbody>
@foreach ($categories as $c)
@foreach ($categories as $category)
<tr>
<td>
{{ $c->position }}
{{ $category->position }}
</td>
<td>
<a href="{{ route('staff.categories.edit', ['slug' => $c->slug, 'id' => $c->id]) }}">{{ $c->name }}</a>
<a href="{{ route('staff.categories.edit', ['id' => $category->id]) }}">{{ $category->name }}</a>
</td>
<td>
<i class="{{ $c->icon }}" aria-hidden="true"></i>
<i class="{{ $category->icon }}" aria-hidden="true"></i>
</td>
<td>
@if ($c->image != null)
<img alt="{{ $c->name }}" src="{{ url('files/img/' . $c->image) }}">
@if ($category->image != null)
<img alt="{{ $category->name }}" src="{{ url('files/img/' . $category->image) }}">
@else
<span>N/A</span>
@endif
</td>
<td>
@if ($c->movie_meta)
@if ($category->movie_meta)
<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 ($c->tv_meta)
@if ($category->tv_meta)
<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 ($c->game_meta)
@if ($category->game_meta)
<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 ($c->music_meta)
@if ($category->music_meta)
<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 ($c->no_meta)
@if ($category->no_meta)
<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>
<a href="{{ route('staff.categories.edit', ['slug' => $c->slug, 'id' => $c->id]) }}"
class="btn btn-warning">Edit</a>
<form action="{{ route('staff.categories.destroy', ['slug' => $c->slug, 'id' => $c->id]) }}" method="POST">
<a href="{{ route('staff.categories.edit', ['id' => $category->id]) }}" class="btn btn-warning">
Edit
</a>
<form action="{{ route('staff.categories.destroy', ['id' => $category->id]) }}" method="POST">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger">Delete</button>
+2 -2
View File
@@ -15,7 +15,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff.forums.edit', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url" class="l-breadcrumb-item-link">
<a href="{{ route('staff.forums.edit', ['id' => $forum->id]) }}" itemprop="url" class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Forums</span>
</a>
</li>
@@ -25,7 +25,7 @@
<div class="container box">
<h2>Edit: {{ $forum->name }}</h2>
<form role="form" method="POST" action="{{ route('staff.forums.update', ['slug' => $forum->slug, 'id' => $forum->id]) }}">
<form role="form" method="POST" action="{{ route('staff.forums.update', ['id' => $forum->id]) }}">
@csrf
<div class="form-group">
<label for="title">Title</label>
+4 -4
View File
@@ -39,21 +39,21 @@
@foreach ($categories as $c)
<tr class="success">
<td>
<a href="{{ route('staff.forums.update', ['slug' => $c->slug, 'id' => $c->id]) }}">{{ $c->name }}</a>
<a href="{{ route('staff.forums.update', ['id' => $c->id]) }}">{{ $c->name }}</a>
</td>
<td>Category</td>
<td>{{ $c->position }}</td>
<td><a href="{{ route('staff.forums.destroy', ['slug' => $c->slug, 'id' => $c->id]) }}"
<td><a href="{{ route('staff.forums.destroy', ['id' => $c->id]) }}"
class="btn btn-danger">Delete</a></td>
</tr>
@foreach ($c->getForumsInCategory()->sortBy('position') as $f)
<tr>
<td>
<a href="{{ route('staff.forums.update', ['slug' => $f->slug, 'id' => $f->id]) }}">---- {{ $f->name }}</a>
<a href="{{ route('staff.forums.update', ['id' => $f->id]) }}">---- {{ $f->name }}</a>
</td>
<td>Forum</td>
<td>{{ $f->position }}</td>
<td><a href="{{ route('staff.forums.destroy', ['slug' => $f->slug, 'id' => $f->id]) }}"
<td><a href="{{ route('staff.forums.destroy', ['id' => $f->id]) }}"
class="btn btn-danger">Delete</a></td>
</tr>
@endforeach
+2 -3
View File
@@ -12,7 +12,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff_page_edit_form', ['slug' => $page->slug, 'id' => $page->id]) }}" itemprop="url"
<a href="{{ route('staff_page_edit_form', ['id' => $page->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Page</span>
</a>
@@ -22,8 +22,7 @@
@section('content')
<div class="container box">
<h2>Add a new page</h2>
<form role="form" method="POST"
action="{{ route('staff_page_edit',['slug' => $page->slug, 'id' => $page->id]) }}">
<form role="form" method="POST" action="{{ route('staff_page_edit',['id' => $page->id]) }}">
@csrf
<div class="form-group">
<label for="name">Page Name</label>
+24 -18
View File
@@ -27,23 +27,29 @@
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($page as $p)
<tr>
<td>
<a href="{{ route('staff_page_edit_form', ['slug' => $p->slug, 'id' => $p->id]) }}">{{ $p->name }}</a>
</td>
<td>{{ date('d M Y', $p->created_at->getTimestamp()) }}</td>
<td>
<a href="{{ route('staff_page_edit_form', ['slug' => $p->slug, 'id' => $p->id]) }}"
class="btn btn-warning">Edit</a>
<a href="{{ route('staff_page_delete', ['slug' => $p->slug, 'id' => $p->id]) }}"
class="btn btn-danger">Delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<tbody>
@foreach ($pages as $page)
<tr>
<td>
<a href="{{ route('staff_page_edit_form', ['id' => $page->id]) }}">
{{ $page->name }}
</a>
</td>
<td>
{{ date('d M Y', $page->created_at->getTimestamp()) }}
</td>
<td>
<a href="{{ route('staff_page_edit_form', ['id' => $page->id]) }}" class="btn btn-warning">
Edit
</a>
<a href="{{ route('staff_page_delete', ['id' => $page->id]) }}" class="btn btn-danger">
Delete
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@@ -59,7 +59,7 @@
@if ($report->torrent)
<h3>@lang('torrent.torrent') Title:</h3>
<p class="well well-sm">
<a href="{{ route('torrent', ['slug' => Str::slug($report->title), 'id' => $report->torrent->id]) }}">
<a href="{{ route('torrent', ['id' => $report->torrent->id]) }}">
{{ $report->title }}
</a>
</p>
+12 -10
View File
@@ -12,7 +12,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff_tag_edit_form', ['slug' => $tag->slug, 'id' => $tag->id]) }}" itemprop="url"
<a href="{{ route('staff_tag_edit_form', ['id' => $tag->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Torrent Tag</span>
</a>
@@ -22,17 +22,19 @@
@section('content')
<div class="container box">
<h2>Edit A Torrent Tag (Genre)</h2>
<form role="form" method="POST" action="{{ route('staff.types.update', ['slug' => $tag->slug, 'id' => $tag->id]) }}">
@csrf
<form role="form" method="POST" action="{{ route('staff.types.update', ['id' => $tag->id]) }}">
@csrf
<div class="form-group">
<label for="name">Name</label>
<label>
<input type="text" class="form-control" name="name" value="{{ $tag->name }}">
</label>
</div>
<div class="form-group">
<label for="name">Name</label>
<label>
<input type="text" class="form-control" name="name" value="{{ $tag->name }}">
</label>
</div>
<button type="submit" class="btn btn-default">{{ trans('common.submit') }}</button>
<button type="submit" class="btn btn-default">
{{ trans('common.submit') }}
</button>
</form>
</div>
@endsection
+23 -20
View File
@@ -20,26 +20,29 @@
<div class="table-responsive">
<table class="table table-condensed table-striped table-bordered table-hover">
<thead>
<tr>
<th>Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($tags as $tag)
<tr>
<td>
<a href="{{ route('staff_tag_edit_form', ['slug' => $tag->slug, 'id' => $tag->id]) }}">{{ $tag->name }}</a>
</td>
<td>
<a href="{{ route('staff_tag_edit_form', ['slug' => $tag->slug, 'id' => $tag->id]) }}"
class="btn btn-warning">Edit</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<thead>
<tr>
<th>Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($tags as $tag)
<tr>
<td>
<a href="{{ route('staff_tag_edit_form', ['id' => $tag->id]) }}">
{{ $tag->name }}
</a>
</td>
<td>
<a href="{{ route('staff_tag_edit_form', ['id' => $tag->id]) }}" class="btn btn-warning">
Edit
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@@ -38,8 +38,8 @@
<tr>
<td>{{ $t->id }}
</td>
<td><a href="{{ route('edit', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a></td>
<td><a href="{{ route('edit', ['slug' => $t->slug, 'id' => $t->id]) }}"
<td><a href="{{ route('edit', ['id' => $t->id]) }}">{{ $t->name }}</a></td>
<td><a href="{{ route('edit', ['id' => $t->id]) }}"
class="btn btn-warning">Edit</a>
<button data-target="#staffdelete-{{ $t->id }}" data-toggle="modal" class="btn btn-danger">
Delete
@@ -38,7 +38,7 @@
@foreach ($pending as $p)
<tr>
<td><span class="text-red text-bold">{{ $p->created_at->diffForHumans() }}</span></td>
<td><a href="{{ route('torrent', ['slug' => $p->slug, 'id' => $p->id]) }}" itemprop="url"
<td><a href="{{ route('torrent', ['id' => $p->id]) }}" itemprop="url"
class="l-breadcrumb-item-link"><span itemprop="title"
class="l-breadcrumb-item-link-title">{{ $p->name }}</span></a>
</td>
@@ -50,7 +50,7 @@
itemprop="url" class="l-breadcrumb-item-link"><span itemprop="title"
class="l-breadcrumb-item-link-title">{{ $p->user->username }}
({{ $p->user->group->name }})</span></a></td>
<td><a href="{{ route('moderation_approve', ['slug' => $p->slug, 'id' => $p->id]) }}"
<td><a href="{{ route('moderation_approve', ['id' => $p->id]) }}"
role='button' class='btn btn-labeled btn-success'><span class="btn-label"><i
class="{{ config('other.font-awesome') }} fa-thumbs-up"></i></span>Approve</a></td>
<td>
@@ -183,7 +183,7 @@
@foreach ($postponed as $post)
<tr>
<td><span class="text-red text-bold">{{ $post->moderated_at->diffForHumans() }}</span></td>
<td><a href="{{ route('torrent', ['slug' => $post->slug, 'id' => $post->id]) }}" itemprop="url"
<td><a href="{{ route('torrent', ['id' => $post->id]) }}" itemprop="url"
class="l-breadcrumb-item-link"><span itemprop="title"
class="l-breadcrumb-item-link-title">{{ $post->name }}</span></a>
</td>
@@ -201,10 +201,10 @@
itemprop="url" class="l-breadcrumb-item-link"><span itemprop="title"
class="l-breadcrumb-item-link-title">{{ $post->moderated->username }}
({{ $post->moderated->group->name }})</span></a></td>
<td><a href="{{ route('moderation_approve', ['slug' => $post->slug, 'id' => $post->id]) }}"
<td><a href="{{ route('moderation_approve', ['id' => $post->id]) }}"
role='button' class='btn btn-labeled btn-success'><span class="btn-label"><i
class="{{ config('other.font-awesome') }} fa-thumbs-up"></i></span>Approve</a></td>
<td><a href="{{ route('edit', ['slug' => $post->slug, 'id' => $post->id]) }}" role='button'
<td><a href="{{ route('edit', ['id' => $post->id]) }}" role='button'
class='btn btn-labeled btn-info'><span class="btn-label"><i
class="{{ config('other.font-awesome') }} fa-pencil"></i></span>Edit</a></td>
<td>
@@ -293,7 +293,7 @@
@foreach ($rejected as $reject)
<tr>
<td><span class="text-red text-red">{{ $reject->created_at->diffForHumans() }}</span></td>
<td><a href="{{ route('torrent', ['slug' => $reject->slug, 'id' => $reject->id]) }}"
<td><a href="{{ route('torrent', ['id' => $reject->id]) }}"
itemprop="url" class="l-breadcrumb-item-link"><span itemprop="title"
class="l-breadcrumb-item-link-title">{{ $reject->name }}</span></a>
</td>
@@ -311,7 +311,7 @@
itemprop="url" class="l-breadcrumb-item-link"><span itemprop="title"
class="l-breadcrumb-item-link-title">{{ $reject->moderated->username }}
({{ $reject->moderated->group->name }})</span></a></td>
<td><a href="{{ route('moderation_approve', ['slug' => $reject->slug, 'id' => $reject->id]) }}"
<td><a href="{{ route('moderation_approve', ['id' => $reject->id]) }}"
role='button' class='btn btn-labeled btn-success'><span class="btn-label"><i
class="{{ config('other.font-awesome') }} fa-thumbs-up"></i></span>Approve</a></td>
<td>
@@ -361,7 +361,7 @@
</div>
<!-- End Torrent Postpone Modal -->
</td>
<td><a href="{{ route('edit', ['slug' => $reject->slug, 'id' => $reject->id]) }}" role='button'
<td><a href="{{ route('edit', ['id' => $reject->id]) }}" role='button'
class='btn btn-labeled btn-info'><span class="btn-label"><i
class="{{ config('other.font-awesome') }} fa-pencil"></i></span>Edit</a></td>
<td>
+17 -16
View File
@@ -12,7 +12,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('staff.types.edit', ['slug' => $type->slug, 'id' => $type->id]) }}" itemprop="url"
<a href="{{ route('staff.types.edit', ['id' => $type->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">Edit Torrent Type</span>
</a>
@@ -22,23 +22,24 @@
@section('content')
<div class="container box">
<h2>Edit A Torrent Type</h2>
<form role="form" method="POST" action="{{ route('staff.types.update', ['slug' => $type->slug, 'id' => $type->id]) }}">
@csrf
<div class="form-group">
<label for="name">Name</label>
<label>
<input type="text" class="form-control" name="name" value="{{ $type->name }}">
</label>
</div>
<form role="form" method="POST" action="{{ route('staff.types.update', ['id' => $type->id]) }}">
@method('PATCH')
@csrf
<div class="form-group">
<label for="name">Name</label>
<label>
<input type="text" class="form-control" name="name" value="{{ $type->name }}">
</label>
</div>
<div class="form-group">
<label for="name">Position</label>
<label>
<input type="text" class="form-control" name="position" value="{{ $type->position }}">
</label>
</div>
<div class="form-group">
<label for="name">Position</label>
<label>
<input type="text" class="form-control" name="position" value="{{ $type->position }}">
</label>
</div>
<button type="submit" class="btn btn-default">@lang('common.submit')</button>
<button type="submit" class="btn btn-default">@lang('common.submit')</button>
</form>
</div>
@endsection
+15 -7
View File
@@ -28,17 +28,25 @@
</tr>
</thead>
<tbody>
@foreach ($types as $t)
@foreach ($types as $type)
<tr>
<td>{{ $t->position }}</td>
<td>
<a href="{{ route('staff.types.edit', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a>
{{ $type->position }}
</td>
<td>
<a href="{{ route('staff.types.edit', ['slug' => $t->slug, 'id' => $t->id]) }}"
class="btn btn-warning">Edit</a>
<a href="{{ route('staff.types.destroy', ['slug' => $t->slug, 'id' => $t->id]) }}"
class="btn btn-danger">Delete</a>
<a href="{{ route('staff.types.edit', ['id' => $type->id]) }}">
{{ $type->name }}
</a>
</td>
<td>
<a href="{{ route('staff.types.edit', ['id' => $type->id]) }}" class="btn btn-warning">
Edit
</a>
<form action="{{ route('staff.types.destroy', ['id' => $type->id]) }}" method="POST">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger">Delete</button>
</form>
</td>
</tr>
@endforeach
@@ -63,7 +63,7 @@
</a>
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' =>$warning->torrenttitle->slug, 'id' => $warning->torrenttitle->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $warning->torrenttitle->id]) }}">
{{ $warning->torrenttitle->name }}
</a>
</td>
+1 -1
View File
@@ -106,7 +106,7 @@
<br>
<div class="col-md-12">
<form role="form" method="POST" action="{{ route('comment_article', ['slug' => $article->slug, 'id' => $article->id]) }}">
<form role="form" method="POST" action="{{ route('comment_article', ['id' => $article->id]) }}">
@csrf
<div class="form-group">
<label for="content">@lang('common.your-comment'):</label><span class="badge-extra">@lang('common.type')
+1 -1
View File
@@ -72,7 +72,7 @@
<div class="color-overlay">
<div class="movie-content">
<div class="movie-header">
<a href="{{ route('torrent', ['slug' => $feature->torrent->slug, 'id' => $feature->torrent->id]) }}">
<a href="{{ route('torrent', ['id' => $feature->torrent->id]) }}">
<h1 class="movie-title">{{ $feature->torrent->name }}</h1></a>
<h4 class="movie-info">
@if (isset($meta) && $meta->genres)
@@ -19,7 +19,7 @@
@if ($p->topic->viewable())
<tr>
<td>
<a href="{{ route('forum_topic', ['slug' => $p->topic->slug, 'id' => $p->topic->id]) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">{{ preg_replace('#\[[^\]]+\]#', '', Str::limit($p->content), 75) }}
<a href="{{ route('forum_topic', ['id' => $p->topic->id]) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">{{ preg_replace('#\[[^\]]+\]#', '', Str::limit($p->content), 75) }}
...</a></td>
<td>{{ $p->topic->name }}</td>
<td>{{ $p->user->username }}</td>
@@ -19,13 +19,13 @@
@if ($topic->viewable())
<tr>
<td>
<a href="{{ route('forum_display', ['slug' => $topic->forum->slug, 'id' => $topic->forum->id]) }}">
<a href="{{ route('forum_display', ['id' => $topic->forum->id]) }}">
{{ $topic->forum->name }}
</a>
</td>
<td>
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}">
<a href="{{ route('forum_topic', ['id' => $topic->id]) }}">
{{ $topic->name }}
</a>
</td>
+15 -15
View File
@@ -82,18 +82,18 @@
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $new->slug, 'id' => $new->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $new->id]) }}">
{{ $new->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $new->slug, 'id' => $new->id]) }}">
<a href="{{ route('download_check', ['id' => $new->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $new->slug, 'id' => $new->id]) }}">
<a href="{{ route('download', ['id' => $new->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -303,18 +303,18 @@
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $seed->slug, 'id' => $seed->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $seed->id]) }}">
{{ $seed->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $seed->slug, 'id' => $seed->id]) }}">
<a href="{{ route('download_check', ['id' => $seed->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $seed->slug, 'id' => $seed->id]) }}">
<a href="{{ route('download', ['id' => $seed->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -525,18 +525,18 @@
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $leech->slug, 'id' => $leech->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $leech->id]) }}">
{{ $leech->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $leech->slug, 'id' => $leech->id]) }}">
<a href="{{ route('download_check', ['id' => $leech->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $leech->slug, 'id' => $leech->id]) }}">
<a href="{{ route('download', ['id' => $leech->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -747,18 +747,18 @@
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $d->id]) }}">
{{ $d->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a href="{{ route('download_check', ['id' => $d->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a href="{{ route('download', ['id' => $d->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -968,18 +968,18 @@
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $d->id]) }}">
{{ $d->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a href="{{ route('download_check', ['id' => $d->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a href="{{ route('download', ['id' => $d->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
+6 -6
View File
@@ -109,18 +109,18 @@
</td>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('download_check', ['id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="Download Torrent">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('download', ['id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="Download Torrent">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -332,21 +332,21 @@
<span class='badge-extra text-blue text-bold'>{{ $torrent->getSize() }}</span>
</td>
<td>
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class='badge-extra text-green text-bold'>
{{ $torrent->seeders }}
</span>
</a>
</td>
<td>
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class='badge-extra text-red text-bold'>
{{ $torrent->leechers }}
</span>
</a>
</td>
<td>
<a href="{{ route('history', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<span class='badge-extra text-orange text-bold'>
{{ $torrent->times_completed }} @lang('common.times')
</span>
+2 -2
View File
@@ -2,8 +2,8 @@
# @lang('email.newreply-header'): {{ $topic->name }}
**@lang('email.newreply-message'):**
<a href="{{ route('users.show', ['username' => $user->username]) }}">{{ $user->username }}</a> {{ strtolower(trans('email.newreply-replied')) }}
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}">{{ $topic->name }}</a>
@component('mail::button', ['url' => route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]), 'color' => 'blue'])
<a href="{{ route('forum_topic', ['id' => $topic->id]) }}">{{ $topic->name }}</a>
@component('mail::button', ['url' => route('forum_topic', ['id' => $topic->id]), 'color' => 'blue'])
@lang('email.newreply-view')
@endcomponent
@endcomponent
+2 -2
View File
@@ -15,7 +15,7 @@
</a>
</li>
<li>
<a href="{{ route('forum_category', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
<a href="{{ route('forum_category', ['id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
@@ -68,7 +68,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $t->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $t->id]) }}">{{ $t->name }}</a></strong>
@if ($t->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($t->approved == "1") <span
+3 -3
View File
@@ -15,7 +15,7 @@
</a>
</li>
<li>
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
<a href="{{ route('forum_display', ['id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
@@ -53,7 +53,7 @@
<div class="button-left"></div>
<div class="button-right">
@if ($category->getPermission()->start_topic == true)
<a href="{{ route('forum_new_topic_form', ['slug' => $forum->slug, 'id' => $forum->id]) }}"
<a href="{{ route('forum_new_topic_form', ['id' => $forum->id]) }}"
class="btn btn-sm btn-primary">@lang('forum.create-new-topic')</a>
@endif
@if ($category->getPermission()->show_forum == true)
@@ -89,7 +89,7 @@
class="{{ config('other.font-awesome') }} fa-thumbtack fa-2x"></i></span></td>
@endif
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $t->id]) }}">{{ $t->name }}</a></strong>
@if ($t->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($t->approved == "1") <span
+3 -3
View File
@@ -15,13 +15,13 @@
</a>
</li>
<li>
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
<a href="{{ route('forum_topic', ['id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $topic->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_edit_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
<a href="{{ route('forum_edit_topic', ['id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('forum.edit-topic')</span>
</a>
@@ -33,7 +33,7 @@
<div class="col-md-12">
<h2><span>@lang('forum.edit-topic')</span></h2>
<form role="form" method="POST"
action="{{ route('forum_edit_topic',['slug' => $topic->slug, 'id' => $topic->id]) }}">
action="{{ route('forum_edit_topic',['id' => $topic->id]) }}">
@csrf
<div class="form-group">
<label for="forum_name">@lang('forum.topic-name')</label>
+4 -4
View File
@@ -48,7 +48,7 @@
<div class="button-holder">
<div class="button-left"></div>
<div class="button-right">
<a href="{{ route('forum_category', ['slug' => $category->slug, 'id' => $category->id]) }}"
<a href="{{ route('forum_category', ['id' => $category->id]) }}"
class="btn btn-sm btn-primary">@lang('forum.view-all')</a>
</div>
</div>
@@ -70,8 +70,8 @@
<tr>
<td><img src="{{ url('img/forum.png') }}" alt="forum"></td>
<td>
<span><h4><a href="{{ route('forum_display', ['slug' => $categoryChild->slug, 'id' => $categoryChild->id]) }}"><span
class="text-bold">{{ $categoryChild->name }}</span></a><h4></span>
<span><h4><a href="{{ route('forum_display', ['id' => $categoryChild->id]) }}"><span
class="text-bold">{{ $categoryChild->name }}</span></a></h4></span>
<span class="">{{ $categoryChild->description }}</span>
</td>
<td>{{ $categoryChild->num_post }}</td>
@@ -82,7 +82,7 @@
href="{{ route('users.show', ['username' => $categoryChild->last_post_user_username]) }}"> {{ $categoryChild->last_post_user_username }}</a></span>
<br>
<span>@lang('forum.topic') <i class="{{ config('other.font-awesome') }} fa-chevron-right"></i><a
href="{{ route('forum_topic', ['slug' => $categoryChild->last_topic_slug, 'id' => $categoryChild->last_topic_id]) }}"> {{ $categoryChild->last_topic_name }}</a></span>
href="{{ route('forum_topic', ['id' => $categoryChild->last_topic_id]) }}"> {{ $categoryChild->last_topic_name }}</a></span>
<br>
<span><i class="{{ config('other.font-awesome') }} fa-clock"></i> {{ $categoryChild->updated_at->diffForHumans() }}</span>
</td>
+2 -2
View File
@@ -60,7 +60,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->topic->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $r->topic->slug, 'id' => $r->topic->id]) }}">{{ $r->topic->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $r->topic->id]) }}">{{ $r->topic->name }}</a></strong>
@if ($r->topic->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($r->topic->approved == "1") <span
@@ -101,7 +101,7 @@
</div>
<div class="button-right">
<a class="text-bold"
href="{{ route('forum_topic', ['slug' => $r->topic->slug, 'id' => $r->topic->id]) }}?page={{$r->getPageNumber()}}#post-{{$r->id}}">#{{$r->id}}</a>
href="{{ route('forum_topic', ['id' => $r->topic->id]) }}?page={{$r->getPageNumber()}}#post-{{$r->id}}">#{{$r->id}}</a>
</div>
</div>
<hr class="some-margin">
@@ -59,7 +59,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $r->slug, 'id' => $r->id]) }}">{{ $r->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $r->id]) }}">{{ $r->name }}</a></strong>
@if ($r->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($r->approved == "1") <span
+3 -3
View File
@@ -15,13 +15,13 @@
</a>
</li>
<li>
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
<a href="{{ route('forum_display', ['id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_new_topic_form', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
<a href="{{ route('forum_new_topic_form', ['id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('forum.create-new-topic')</span>
</a>
@@ -33,7 +33,7 @@
<div class="col-md-12">
<h2><span>@lang('forum.create-new-topic')</span><span id="thread-title">{{ $title }}</span></h2>
<form role="form" method="POST"
action="{{ route('forum_new_topic',['slug' => $forum->slug, 'id' => $forum->id]) }}">
action="{{ route('forum_new_topic',['id' => $forum->id]) }}">
@csrf
<div class="form-group">
<label for="input-thread-title"></label><input id="input-thread-title" type="text" name="title" maxlength="75" class="form-control"
+5 -5
View File
@@ -16,25 +16,25 @@
</a>
</li>
<li>
<a href="{{ route('forum_category', ['slug' => $category->slug, 'id' => $category->id]) }}" itemprop="url"
<a href="{{ route('forum_category', ['id' => $category->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $category->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
<a href="{{ route('forum_display', ['id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
<a href="{{ route('forum_topic', ['id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $topic->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_post_edit_form', ['slug' => $topic->slug, 'id' => $topic->id, 'postId' => $post->id]) }}"
<a href="{{ route('forum_post_edit_form', ['id' => $topic->id, 'postId' => $post->id]) }}"
itemprop="url" class="l-breadcrumb-item-link">
<span itemprop="title"
class="l-breadcrumb-item-link-title">@lang('common.edit') @lang('forum.post')</span>
@@ -48,7 +48,7 @@
<h2>@lang('common.edit') @lang('forum.post') {{ strtolower(trans('forum.in')) }}
: {{ $forum->name }}</h2>
<form role="form" method="POST"
action="{{ route('forum_post_edit',['slug' => $topic->slug, 'id' => $topic->id, 'postId' => $post->id]) }}">
action="{{ route('forum_post_edit',['id' => $topic->id, 'postId' => $post->id]) }}">
@csrf
<div class="form-group">
<label for="content"></label><textarea id="content" name="content" cols="30" rows="10"
@@ -245,7 +245,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->topic->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $r->topic->slug, 'id' => $r->topic->id]) }}">{{ $r->topic->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $r->topic->id]) }}">{{ $r->topic->name }}</a></strong>
@if ($r->topic->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($r->topic->approved == "1") <span
@@ -287,7 +287,7 @@
</div>
<div class="button-right">
<a class="text-bold"
href="{{ route('forum_topic', ['slug' => $r->topic->slug, 'id' => $r->topic->id]) }}?page={{$r->getPageNumber()}}#post-{{$r->id}}">#{{$r->id}}</a>
href="{{ route('forum_topic', ['id' => $r->topic->id]) }}?page={{$r->getPageNumber()}}#post-{{$r->id}}">#{{$r->id}}</a>
</div>
</div>
<hr class="some-margin">
@@ -242,7 +242,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $r->slug, 'id' => $r->id]) }}">{{ $r->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $r->id]) }}">{{ $r->name }}</a></strong>
@if ($r->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($r->approved == "1") <span
@@ -61,7 +61,7 @@
if(in_array($r->id,$forum_neos)) {
@endphp
<tr>
<td class="f-display-topic-icon"><a href="{{ route('forum_display', ['slug' => $r->slug, 'id' => $r->id]) }}"><span
<td class="f-display-topic-icon"><a href="{{ route('forum_display', ['id' => $r->id]) }}"><span
class="badge-extra text-bold">{{ $r->name }}</span></a></td>
<td class="f-display-topic-title">
--
@@ -94,7 +94,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $t->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $t->id]) }}">{{ $t->name }}</a></strong>
@if ($t->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($t->approved == "1") <span
+30 -30
View File
@@ -11,13 +11,13 @@
</a>
</li>
<li>
<a href="{{ route('forum_display', ['slug' => $forum->slug, 'id' => $forum->id]) }}" itemprop="url"
<a href="{{ route('forum_display', ['id' => $forum->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $forum->name }}</span>
</a>
</li>
<li>
<a href="{{ route('forum_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}" itemprop="url"
<a href="{{ route('forum_topic', ['id' => $topic->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $topic->name }}</span>
</a>
@@ -44,7 +44,7 @@
<span style="float: right;"> {{ $posts->links() }}</span>
</div>
<br>
<div class="topic-posts" id="forumTip" route="{{ route('tip_poster', ['slug' => $topic->slug, 'id' => $topic->id]) }}" leaveTip="@lang('torrent.leave-tip')" quickTip="@lang('torrent.quick-tip')">
<div class="topic-posts" id="forumTip" route="{{ route('tip_poster', ['id' => $topic->id]) }}" leaveTip="@lang('torrent.leave-tip')" quickTip="@lang('torrent.quick-tip')">
@foreach ($posts as $k => $p)
<div class="post" id="post-{{$p->id}}">
<div class="block">
@@ -52,7 +52,7 @@
<div class="head">
<p>{{ date('M d Y', $p->created_at->getTimestamp()) }}
({{ $p->created_at->diffForHumans() }}) <a class="text-bold permalink"
href="{{ route('forum_topic', ['slug' => $p->topic->slug, 'id' => $p->topic->id]) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">@lang('forum.permalink')</a>
href="{{ route('forum_topic', ['id' => $p->topic->id]) }}?page={{$p->getPageNumber()}}#post-{{$p->id}}">@lang('forum.permalink')</a>
</p>
</div>
<aside class="col-md-2 post-info">
@@ -92,13 +92,13 @@
<p>
@if($p->user->topics && $p->user->topics->count() > 0)
<span class="badge-user text-bold">
<a href="{{ route('user_topics', ['slug' => $p->user->slug, 'id' => $p->user->id]) }}"
<a href="{{ route('user_topics', ['id' => $p->user->id]) }}"
class="post-info-username">{{ $p->user->topics->count() }} @lang('forum.topics')</a>
</span>
@endauth
@if($p->user->posts && $p->user->posts->count() > 0)
<span class="badge-user text-bold">
<a href="{{ route('user_posts', ['slug' => $p->user->slug, 'id' => $p->user->id]) }}"
<a href="{{ route('user_posts', ['id' => $p->user->id]) }}"
class="post-info-username">{{ $p->user->posts->count() }} @lang('forum.posts')</a>
</span>
@endauth
@@ -111,11 +111,11 @@
class="btn btn-xs btn-xxs btn-info">@lang('forum.quote')</button>
@endauth
@if (auth()->user()->group->is_modo || $p->user_id == auth()->user()->id)
<a href="{{ route('forum_post_edit_form', ['slug' => $topic->slug, 'id' => $topic->id, 'postId' => $p->id]) }}"><button
<a href="{{ route('forum_post_edit_form', ['id' => $topic->id, 'postId' => $p->id]) }}"><button
class="btn btn-xs btn-xxs btn-warning">@lang('common.edit')</button></a>
@endauth
@if (auth()->user()->group->is_modo || $p->user_id == auth()->user()->id && $topic->state == 'open')
<a href="{{ route('forum_post_delete', ['slug' => $topic->slug, 'id' => $topic->id, 'postId' => $p->id]) }}"><button
<a href="{{ route('forum_post_delete', ['id' => $topic->id, 'postId' => $p->id]) }}"><button
class="btn btn-xs btn-xxs btn-danger">@lang('common.delete')</button></a>
@endauth
</span>
@@ -185,7 +185,7 @@
<div class="topic-new-post">
@if ($topic->state == "close" && auth()->user()->group->is_modo)
<form role="form" method="POST"
action="{{ route('forum_reply',['slug' => $topic->slug, 'id' => $topic->id]) }}">
action="{{ route('forum_reply',['id' => $topic->id]) }}">
@csrf
<div class="text-danger">This topic is closed, but you can still reply due to you
being {{auth()->user()->group->name}}.
@@ -199,7 +199,7 @@
<div class="col-md-12 alert alert-danger">@lang('forum.topic-closed')</div>
@else
<form role="form" method="POST"
action="{{ route('forum_reply',['slug' => $topic->slug, 'id' => $topic->id]) }}">
action="{{ route('forum_reply',['id' => $topic->id]) }}">
@csrf
<div class="from-group">
<label for="topic-response"></label><textarea name="content" id="topic-response" cols="30" rows="10"></textarea>
@@ -212,25 +212,25 @@
@if (auth()->user()->group->is_modo || $topic->first_post_user_id == auth()->user()->id)
<h3>@lang('forum.moderation')</h3>
@if ($topic->state == "close")
<a href="{{ route('forum_open', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_open', ['id' => $topic->id, ])}}"
class="btn btn-success">@lang('forum.open-topic')</a>
@else
<a href="{{ route('forum_close', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_close', ['id' => $topic->id, ])}}"
class="btn btn-info">@lang('forum.close-topic')</a>
@endif
@endif
@if (auth()->user()->group->is_modo || $topic->first_post_user_id == auth()->user()->id)
<a href="{{ route('forum_edit_topic_form', ['slug' => $topic->slug, 'id' => $topic->id]) }}"
<a href="{{ route('forum_edit_topic_form', ['id' => $topic->id]) }}"
class="btn btn-warning">@lang('forum.edit-topic')</a>
<a href="{{ route('forum_delete_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}"
<a href="{{ route('forum_delete_topic', ['id' => $topic->id]) }}"
class="btn btn-danger">@lang('forum.delete-topic')</a>
@endif
@if (auth()->user()->group->is_modo)
@if ($topic->pinned == 0)
<a href="{{ route('forum_pin_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}"
<a href="{{ route('forum_pin_topic', ['id' => $topic->id]) }}"
class="btn btn-primary">@lang('forum.pin') {{ strtolower(trans('forum.topic')) }}</a>
@else
<a href="{{ route('forum_unpin_topic', ['slug' => $topic->slug, 'id' => $topic->id]) }}"
<a href="{{ route('forum_unpin_topic', ['id' => $topic->id]) }}"
class="btn btn-default">@lang('forum.unpin') {{ strtolower(trans('forum.topic')) }}</a>
@endif
@endif
@@ -240,52 +240,52 @@
@if (auth()->user()->group->is_modo)
<h3>@lang('forum.label-system')</h3>
@if ($topic->approved == "0")
<a href="{{ route('forum_approved', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_approved', ['id' => $topic->id, ])}}"
class='label label-sm label-success'>@lang('common.add') {{ strtoupper(trans('forum.approved')) }}</a>
@else
<a href="{{ route('forum_approved', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_approved', ['id' => $topic->id, ])}}"
class='label label-sm label-success'>@lang('common.remove') {{ strtoupper(trans('forum.approved')) }}</a>
@endif
@if ($topic->denied == "0")
<a href="{{ route('forum_denied', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_denied', ['id' => $topic->id, ])}}"
class='label label-sm label-danger'>@lang('common.add') {{ strtoupper(trans('forum.denied')) }}</a>
@else
<a href="{{ route('forum_denied', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_denied', ['id' => $topic->id, ])}}"
class='label label-sm label-danger'>@lang('common.remove') {{ strtoupper(trans('forum.denied')) }}</a>
@endif
@if ($topic->solved == "0")
<a href="{{ route('forum_solved', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_solved', ['id' => $topic->id, ])}}"
class='label label-sm label-info'>@lang('common.add') {{ strtoupper(trans('forum.solved')) }}</a>
@else
<a href="{{ route('forum_solved', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_solved', ['id' => $topic->id, ])}}"
class='label label-sm label-info'>@lang('common.remove') {{ strtoupper(trans('forum.solved')) }}</a>
@endif
@if ($topic->invalid == "0")
<a href="{{ route('forum_invalid', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_invalid', ['id' => $topic->id, ])}}"
class='label label-sm label-warning'>@lang('common.add') {{ strtoupper(trans('forum.invalid')) }}</a>
@else
<a href="{{ route('forum_invalid', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_invalid', ['id' => $topic->id, ])}}"
class='label label-sm label-warning'>@lang('common.remove') {{ strtoupper(trans('forum.invalid')) }}</a>
@endif
@if ($topic->bug == "0")
<a href="{{ route('forum_bug', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_bug', ['id' => $topic->id, ])}}"
class='label label-sm label-danger'>@lang('common.add') {{ strtoupper(trans('forum.bug')) }}</a>
@else
<a href="{{ route('forum_bug', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_bug', ['id' => $topic->id, ])}}"
class='label label-sm label-danger'>@lang('common.remove') {{ strtoupper(trans('forum.bug')) }}</a>
@endif
@if ($topic->suggestion == "0")
<a href="{{ route('forum_suggestion', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_suggestion', ['id' => $topic->id, ])}}"
class='label label-sm label-primary'>@lang('common.add') {{ strtoupper(trans('forum.suggestion')) }}</a>
@else
<a href="{{ route('forum_suggestion', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_suggestion', ['id' => $topic->id, ])}}"
class='label label-sm label-primary'>@lang('common.remove') {{ strtoupper(trans('forum.suggestion')) }}</a>
@endif
@if ($topic->implemented == "0")
<a href="{{ route('forum_implemented', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_implemented', ['id' => $topic->id, ])}}"
class='label label-sm label-success'>@lang('common.add') {{ strtoupper(trans('forum.implemented')) }}</a>
@else
<a href="{{ route('forum_implemented', ['slug' => $topic->slug, 'id' => $topic->id, ])}}"
<a href="{{ route('forum_implemented', ['id' => $topic->id, ])}}"
class='label label-sm label-success'>@lang('common.remove') {{ strtoupper(trans('forum.implemented')) }}</a>
@endif
@endif
+1 -1
View File
@@ -25,7 +25,7 @@
<td>
<div class="torrent-file">
<div>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
<span class="label label-success">{{ $torrent->type }}</span>
+1 -1
View File
@@ -2,7 +2,7 @@
@section('breadcrumb')
<li>
<a href="{{ route('pages.show', ['slug' => $page->slug, 'id' => $page->id]) }}" itemprop="url"
<a href="{{ route('pages.show', ['id' => $page->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $page->name }}</span>
</a>
+1 -1
View File
@@ -37,7 +37,7 @@
<h2 class="l-footer-section-title">@lang('common.pages')</h2>
<ul>
@foreach ($pages as $page)
<li><a href="{{ route('pages.show', ['slug' => $page->slug, 'id' => $page->id]) }}">{{ $page->name }}</a></li>
<li><a href="{{ route('pages.show', ['id' => $page->id]) }}">{{ $page->name }}</a></li>
@endforeach
</ul>
</div>
+6 -6
View File
@@ -89,12 +89,12 @@
@endif
&nbsp;
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $t->torrent->slug, 'id' => $t->torrent->id]) }}" role="button"
<a href="{{ route('download_check', ['id' => $t->torrent->id]) }}" role="button"
data-toggle="tooltip" data-placement="top" data-original-title="@lang('common.download')" class="btn btn-xs btn-success" style="float: left; margin-right: 10px;">
<i class='{{ config("other.font-awesome") }} fa-download'></i>
</a>
@else
<a href="{{ route('download', ['slug' => $t->torrent->slug, 'id' => $t->torrent->id]) }}" role="button"
<a href="{{ route('download', ['id' => $t->torrent->id]) }}" role="button"
data-toggle="tooltip" data-placement="top" data-original-title="@lang('common.download')" class="btn btn-xs btn-success" style="float: left; margin-right: 10px;">
<i class='{{ config("other.font-awesome") }} fa-download'></i>
</a>
@@ -142,7 +142,7 @@
</div>
<div class="body_description">
<h3 class="description_title">
<a href="{{ route('torrent', ['slug' => $t->torrent->slug, 'id' => $t->torrent->id]) }}">{{ $t->torrent->name }}
<a href="{{ route('torrent', ['id' => $t->torrent->id]) }}">{{ $t->torrent->name }}
@if($t->torrent->category->movie_meta || $t->torrent->category->tv_meta && isset($t->torrent->meta) && $meta->releaseYear)
<span class="text-bold text-pink"> {{ $meta->releaseYear }}</span>
@endif
@@ -224,12 +224,12 @@
@endif
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $t->torrent->slug, 'id' => $t->torrent->id]) }}" role="button"
<a href="{{ route('download_check', ['id' => $t->torrent->id]) }}" role="button"
data-toggle="tooltip" data-placement="right" data-original-title="@lang('common.download')" class="btn btn-xs btn-success" style="float: left;">
<i class='{{ config("other.font-awesome") }} fa-download'></i>
</a>
@else
<a href="{{ route('download', ['slug' => $t->torrent->slug, 'id' => $t->torrent->id]) }}" role="button"
<a href="{{ route('download', ['id' => $t->torrent->id]) }}" role="button"
data-toggle="tooltip" data-placement="right" data-original-title="@lang('common.download')" class="btn btn-xs btn-success" style="float: left;">
<i class='{{ config("other.font-awesome") }} fa-download'></i>
</a>
@@ -247,7 +247,7 @@
@endif
<div class="text">
<h3 style="font-size: 25px;">
<a data-id="{{ $t->torrent->id }}" data-slug="{{ $t->torrent->slug }}" href="{{ route('torrent', ['slug' => $t->torrent->slug, 'id' => $t->torrent->id]) }}">{{ $t->torrent->name }}</a>
<a data-id="{{ $t->torrent->id }}" href="{{ route('torrent', ['id' => $t->torrent->id]) }}">{{ $t->torrent->name }}</a>
</h3>
</div>
</div>
+2 -2
View File
@@ -256,7 +256,7 @@
<strong>@lang('torrent.torrent')</strong>
</td>
<td>
<a href="{{ route('torrent', ['slug' => $torrentRequest->torrent->slug, 'id' => $torrentRequest->torrent->id]) }}">{{ $torrentRequest->torrent->name }}</a>
<a href="{{ route('torrent', ['id' => $torrentRequest->torrent->id]) }}">{{ $torrentRequest->torrent->name }}</a>
</td>
</tr>
@endif
@@ -300,7 +300,7 @@
<strong>@lang('torrent.torrent')</strong>
</td>
<td>
<a href="{{ route('torrent', ['slug' => $torrentRequest->torrent->slug, 'id' => $torrentRequest->torrent->id]) }}">{{ $torrentRequest->torrent->name }}</a>
<a href="{{ route('torrent', ['id' => $torrentRequest->torrent->id]) }}">{{ $torrentRequest->torrent->name }}</a>
</td>
</tr>
@endif
+2 -2
View File
@@ -12,7 +12,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>'
@foreach($torrents as $data)
<item>
<title>{{ $data->name }}</title>
<link>{{ route('torrent.download.rsskey', ['slug' => $data->slug, 'id' => $data->id, 'rsskey' => $rsskey ]) }}</link>
<link>{{ route('torrent.download.rsskey', ['id' => $data->id, 'rsskey' => $rsskey ]) }}</link>
<description>{{ $data->category->name }} / {{ $data->type }} / {{ $data->getSize() }} @if($data->freeleech === 1) / Double Upload! @endif @if($data->doubleup === 1) / Freeleech! @endif</description>
@if(!$data->anon && $data->user)
<author>@lang('torrent.uploaded-by') {{ $data->user->username }}</author>
@@ -20,7 +20,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>'
<author>@lang('common.anonymous') @lang('torrent.uploader')</author>
@endif
<pubDate>{{ $data->created_at->toRssString() }}</pubDate>
<comments>{{ route('torrent', ['slug' => $data->slug, 'id' => $data->id ]) }}</comments>
<comments>{{ route('torrent', ['id' => $data->id ]) }}</comments>
</item>
@endforeach
@endif
@@ -46,7 +46,7 @@
{{ ++$key }}
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $c->slug, 'id' => $c->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $c->id]) }}">
{{ $c->name }}
</a>
</td>
@@ -44,7 +44,7 @@
{{ ++$key }}
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $d->id]) }}">
{{ $d->name }}
</a>
</td>
@@ -45,7 +45,7 @@
{{ ++$key }}
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $d->slug, 'id' => $d->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $d->id]) }}">
{{ $d->name }}
</a>
</td>
@@ -45,7 +45,7 @@
{{ ++$key }}
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $l->slug, 'id' => $l->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $l->id]) }}">
{{ $l->name }}
</a>
</td>
@@ -45,7 +45,7 @@
{{ ++$key }}
</td>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $s->slug, 'id' => $s->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $s->id]) }}">
{{ $s->name }}
</a>
</td>
+1 -1
View File
@@ -264,7 +264,7 @@
</div>
<div class="body_description">
<h3 class="description_title">
<a href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}
<a href="{{ route('torrent', ['id' => $t->id]) }}">{{ $t->name }}
@if($t->category->movie_meta || $t->category->tv_meta && isset($t->meta) && $t->meta->releaseYear)
<span class="text-bold text-pink"> {{ $t->meta->releaseYear }}</span>
@endif
@@ -11,13 +11,13 @@
</a>
</li>
<li class="active">
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
<a href="{{ route('torrent', ['id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $torrent->name }}</span>
</a>
</li>
<li>
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
<a href="{{ route('download_check', ['id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('torrent.download-check')</span>
</a>
@@ -45,7 +45,7 @@
<h4 class="text-center">@lang('torrent.info')</h4></div>
<div class="text-center">
<h3 class="movie-title">
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" title="{{ $torrent->name }}">{{ $torrent->name }}</a>
<a href="{{ route('torrent', ['id' => $torrent->id]) }}" title="{{ $torrent->name }}">{{ $torrent->name }}</a>
</h3>
<ul class="list-inline">
<span class="badge-extra text-blue"><i class="{{ config('other.font-awesome') }} fa-database"></i> <strong>@lang('torrent.size')
@@ -91,7 +91,7 @@
@if ($user->getRatio() < config('other.ratio') || $user->can_download == 0 && $torrent->user_id != $user->id)
<span class="text-red text-bold">@lang('torrent.no-privileges-desc')</span>
@else
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('download', ['id' => $torrent->id]) }}"
role="button" class="btn btn-labeled btn-primary">
<span class='btn-label'><i class='{{ config("other.font-awesome") }} fa-download'></i></span>@lang('common.download')</a>
@endif
@@ -2,7 +2,7 @@
@section('breadcrumb')
<li>
<a href="{{ route('edit_form', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
<a href="{{ route('edit_form', ['id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title"
class="l-breadcrumb-item-link-title">@lang('torrent.torrent') @lang('common.edit')</span>
@@ -15,7 +15,7 @@
<div class="col-md-10">
<h2>@lang('common.edit'): {{ $torrent->name }}</h2>
<div class="block">
<form role="form" method="POST" action="{{ route('edit', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<form role="form" method="POST" action="{{ route('edit', ['id' => $torrent->id]) }}">
@csrf
<div class="form-group">
<label for="title">@lang('torrent.title')</label>
+6 -6
View File
@@ -361,18 +361,18 @@
</div>
</td>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $current->id]) }}">
{{ $current->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('download_check', ['id' => $current->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('download', ['id' => $current->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -522,21 +522,21 @@
<span class='badge-extra text-blue text-bold'>{{ $current->getSize() }}</span>
</td>
<td>
<a href="{{ route('peers', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('peers', ['id' => $current->id]) }}">
<span class='badge-extra text-green text-bold'>
{{ $current->seeders }}
</span>
</a>
</td>
<td>
<a href="{{ route('peers', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('peers', ['id' => $current->id]) }}">
<span class='badge-extra text-red text-bold'>
{{ $current->leechers }}
</span>
</a>
</td>
<td>
<a href="{{ route('history', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('history', ['id' => $current->id]) }}">
<span class='badge-extra text-orange text-bold'>
{{ $current->times_completed }} @lang('common.times')
</span>
+3 -3
View File
@@ -10,13 +10,13 @@
@section('breadcrumb')
<li>
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
<a href="{{ route('torrent', ['id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('torrent.torrent')</span>
</a>
</li>
<li class="active">
<a href="{{ route('history', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('torrent.history')</span>
</a>
</li>
@@ -28,7 +28,7 @@
<div class="block">
<div class="">
<p class="lead">@lang('torrent.history') @lang('common.for')
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">{{ $torrent->name }}</a>
<a href="{{ route('torrent', ['id' => $torrent->id]) }}">{{ $torrent->name }}</a>
</p>
</div>
<div class="table-responsive">
+3 -3
View File
@@ -10,13 +10,13 @@
@section('breadcrumb')
<li>
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
<a href="{{ route('torrent', ['id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('torrent.torrent')</span>
</a>
</li>
<li class="active">
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span itemprop="title" class="l-breadcrumb-item-link-title">@lang('torrent.peers')</span>
</a>
</li>
@@ -28,7 +28,7 @@
<div class="block">
<div class="">
<p class="lead">@lang('torrent.peers') {{ strtolower(trans('common.for')) }}
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">{{ $torrent->name }}</a>
<a href="{{ route('torrent', ['id' => $torrent->id]) }}">{{ $torrent->name }}</a>
</p>
</div>
<div class="table-responsive">
+7 -7
View File
@@ -107,7 +107,7 @@
</td>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
@@ -119,14 +119,14 @@
@endif--}}
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('download_check', ['id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('download', ['id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -232,7 +232,7 @@
{{ $torrent->thanks_count }}
</span>
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id, 'hash' => '#comments']) }}">
<a href="{{ route('torrent', ['id' => $torrent->id, 'hash' => '#comments']) }}">
<span class="badge-extra text-bold text-green">
<i class="{{ config('other.font-awesome') }} fa-comment" data-toggle="tooltip" data-original-title="@lang('common.comments')"></i>
{{ $torrent->comments_count }}
@@ -360,21 +360,21 @@
<span class='badge-extra text-blue text-bold'>{{ $torrent->getSize() }}</span>
</td>
<td>
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class='badge-extra text-green text-bold'>
{{ $torrent->seeders }}
</span>
</a>
</td>
<td>
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class='badge-extra text-red text-bold'>
{{ $torrent->leechers }}
</span>
</a>
</td>
<td>
<a href="{{ route('history', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<span class='badge-extra text-orange text-bold'>
{{ $torrent->times_completed }} @lang('common.times')
</span>
@@ -38,7 +38,7 @@
</div>
<div class="body_description">
<h3 class="description_title">
<a href="{{ route('torrent', ['slug' => $t->slug, 'id' => $t->id]) }}">{{ $t->name }}
<a href="{{ route('torrent', ['id' => $t->id]) }}">{{ $t->name }}
@if($t->category->movie_meta || $t->category->tv_meta && isset($t->meta) && $t->meta->releaseYear)
<span class="text-bold text-pink"> {{ $t->meta->releaseYear }}</span>
@endif
@@ -125,18 +125,18 @@
</div>
</td>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $current->id]) }}">
{{ $current->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('download_check', ['id' => $current->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('download', ['id' => $current->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -287,21 +287,21 @@
<span class='badge-extra text-blue text-bold'>{{ $current->getSize() }}</span>
</td>
<td>
<a href="{{ route('peers', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('peers', ['id' => $current->id]) }}">
<span class='badge-extra text-green text-bold'>
{{ $current->seeders }}
</span>
</a>
</td>
<td>
<a href="{{ route('peers', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('peers', ['id' => $current->id]) }}">
<span class='badge-extra text-red text-bold'>
{{ $current->leechers }}
</span>
</a>
</td>
<td>
<a href="{{ route('history', ['slug' => $current->slug, 'id' => $current->id]) }}">
<a href="{{ route('history', ['id' => $current->id]) }}">
<span class='badge-extra text-orange text-bold'>
{{ $current->times_completed }} @lang('common.times')
</span>
+6 -6
View File
@@ -126,18 +126,18 @@
</td>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $torrent->id]) }}">
{{ $torrent->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('download_check', ['id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('download', ['id' => $torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="@lang('common.download')">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -350,21 +350,21 @@
<span class='badge-extra text-blue text-bold'>{{ $torrent->getSize() }}</span>
</td>
<td>
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class='badge-extra text-green text-bold'>
{{ $torrent->seeders }}
</span>
</a>
</td>
<td>
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class='badge-extra text-red text-bold'>
{{ $torrent->leechers }}
</span>
</a>
</td>
<td>
<a href="{{ route('history', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<span class='badge-extra text-orange text-bold'>
{{ $torrent->times_completed }} @lang('common.times')
</span>
+21 -21
View File
@@ -15,7 +15,7 @@
</a>
</li>
<li class="active">
<a href="{{ route('torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" itemprop="url"
<a href="{{ route('torrent', ['id' => $torrent->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $torrent->name }}</span>
</a>
@@ -50,13 +50,13 @@
<div class="text-center">
<span class="badge-user" style=" width: 100%; background-color: rgba(0, 0, 0, 0.19);">
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role="button" class="btn btn-labeled btn-success">
<a href="{{ route('download_check', ['id' => $torrent->id]) }}" role="button" class="btn btn-labeled btn-success">
<span class='btn-label'>
<i class='{{ config("other.font-awesome") }} fa-download'></i> @lang('common.download')
</span>
</a>
@else
<a href="{{ route('download', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role="button" class="btn btn-labeled btn-success">
<a href="{{ route('download', ['id' => $torrent->id]) }}" role="button" class="btn btn-labeled btn-success">
<span class='btn-label'>
<i class='{{ config("other.font-awesome") }} fa-download'></i> @lang('common.download')
</span>
@@ -102,7 +102,7 @@
@endif
@if ($torrent->seeders <= 2)
<a href="{{ route('reseed', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role="button" class="btn btn-labeled btn-warning">
<a href="{{ route('reseed', ['id' => $torrent->id]) }}" role="button" class="btn btn-labeled btn-warning">
<span class='btn-label'>
<i class='{{ config("other.font-awesome") }} fa-envelope'></i> @lang('torrent.request-reseed')
</span>
@@ -189,7 +189,7 @@
<tr>
<td><strong>@lang('common.fl_token')</strong></td>
<td>
<a href="{{ route('freeleech_token', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('freeleech_token', ['id' => $torrent->id]) }}"
class="btn btn-default btn-xs"
role="button">@lang('torrent.use-fl-token')
</a>
@@ -225,7 +225,7 @@
</td>
<td>{{ $torrent->name }} &nbsp; &nbsp;
@if (auth()->user()->group->is_modo || auth()->user()->id == $uploader->id)
<a class="btn btn-warning btn-xs" href="{{ route('edit_form', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role="button">
<a class="btn btn-warning btn-xs" href="{{ route('edit_form', ['id' => $torrent->id]) }}" role="button">
<i class="{{ config('other.font-awesome') }} fa-pencil-alt"></i> @lang('common.edit')
</a>
@endif
@@ -243,7 +243,7 @@
<strong>@lang('common.moderation')</strong>
</td>
<td>
<a href="{{ route('moderation_approve', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}" role='button'
<a href="{{ route('moderation_approve', ['id' => $torrent->id]) }}" role='button'
class='btn btn-labeled btn-success btn-xs @if ($torrent->isApproved()) disabled @endif'>
<i class="{{ config('other.font-awesome') }} fa-thumbs-up"></i> @lang('common.moderation-approve')
</a>
@@ -276,53 +276,53 @@
<td class="col-sm-2"><strong>Staff Tools</strong></td>
<td>
@if ($torrent->free == 0)
<a href="{{ route('torrent_fl', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_fl', ['id' => $torrent->id]) }}"
class="btn btn-success btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-star"></i> @lang('torrent.grant') @lang('torrent.freeleech')
</a>
@else
<a href="{{ route('torrent_fl', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_fl', ['id' => $torrent->id]) }}"
class="btn btn-danger btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-star"></i> @lang('torrent.revoke') @lang('torrent.freeleech')
</a>
@endif
@if ($torrent->doubleup == 0)
<a href="{{ route('torrent_doubleup', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_doubleup', ['id' => $torrent->id]) }}"
class="btn btn-success btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-chevron-double-up"></i> @lang('torrent.grant') @lang('torrent.double-upload')
</a>
@else
<a href="{{ route('torrent_doubleup', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_doubleup', ['id' => $torrent->id]) }}"
class="btn btn-danger btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-chevron-double-up"></i> @lang('torrent.revoke') @lang('torrent.double-upload')
</a>
@endif
@if ($torrent->sticky == 0)
<a href="{{ route('torrent_sticky', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_sticky', ['id' => $torrent->id]) }}"
class="btn btn-success btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-thumbtack"></i> @lang('torrent.sticky')
</a>
@else
<a href="{{ route('torrent_sticky', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_sticky', ['id' => $torrent->id]) }}"
class="btn btn-danger btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-thumbtack"></i> @lang('torrent.unsticky')
</a>
@endif
<a href="{{ route('bumpTorrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('bumpTorrent', ['id' => $torrent->id]) }}"
class="btn btn-primary btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-arrow-to-top"></i> @lang('torrent.bump')
</a>
@if ($torrent->featured == 0)
<a href="{{ route('torrent_feature', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_feature', ['id' => $torrent->id]) }}"
class="btn btn-default btn-xs" role="button">
<i class="{{ config('other.font-awesome') }} fa-certificate"></i> @lang('torrent.feature')
</a>
@else
<a href="{{ route('torrent_feature', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('torrent_feature', ['id' => $torrent->id]) }}"
class="btn btn-default btn-xs disabled" role="button">
<i class="{{ config('other.font-awesome') }} fa-certificate"></i> @lang('torrent.featured')
</a>
@@ -367,7 +367,7 @@
@endif
@endif
<a href="{{ route('thanks.store', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('thanks.store', ['id' => $torrent->id]) }}"
class="btn btn-xs btn-success" data-toggle="tooltip"
data-original-title="@lang('torrent.thank')">
<i class="{{ config('other.font-awesome') }} fa-heart"></i> @lang('torrent.thank')
@@ -432,12 +432,12 @@
<i class="{{ config('other.font-awesome') }} fa-fw fa-check"></i>{{ $torrent->times_completed }} {{ strtolower(trans('common.times')) }}
</span>
<span class="badge-extra">
<a href="{{ route('peers', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('peers', ['id' => $torrent->id]) }}"
title="@lang('common.view') @lang('torrent.peers')">@lang('common.view') @lang('torrent.peers')
</a>
</span>
<span class="badge-extra">
<a href="{{ route('history', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
<a href="{{ route('history', ['id' => $torrent->id]) }}"
title="@lang('common.view') @lang('torrent.history')">@lang('common.view') @lang('torrent.history')
</a>
</span>
@@ -610,7 +610,7 @@
<td>
<div class="col-md-7">
<form role="form" method="POST"
action="{{ route('tip_uploader', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}"
action="{{ route('tip_uploader', ['id' => $torrent->id]) }}"
class="form-inline">
@csrf
<div class="form-group">
@@ -744,7 +744,7 @@
<div class="col-md-12">
<form role="form" method="POST"
action="{{ route('comment_torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
action="{{ route('comment_torrent', ['id' => $torrent->id]) }}">
@csrf
<div class="form-group">
<label for="content">@lang('common.your-comment'):</label><span class="badge-extra">@lang('common.type')
@@ -12,7 +12,7 @@
: {{ $torrent->name }}</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form" method="POST" action="{{ route('report_torrent', ['slug' => $torrent->slug, 'id' => $torrent->id]) }}">
<form class="form-horizontal" role="form" method="POST" action="{{ route('report_torrent', ['id' => $torrent->id]) }}">
<div class="form-group">
@csrf
<label for="file_name" class="col-sm-2 control-label">@lang('torrent.torrent')</label>
+6 -6
View File
@@ -62,18 +62,18 @@
</div>
</td>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $bookmark->slug, 'id' => $bookmark->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $bookmark->id]) }}">
{{ $bookmark->name }}
</a>
@if (config('torrent.download_check_page') == 1)
<a href="{{ route('download_check', ['slug' => $bookmark->slug, 'id' => $bookmark->id]) }}">
<a href="{{ route('download_check', ['id' => $bookmark->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="Download Torrent">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
</button>
</a>
@else
<a href="{{ route('download', ['slug' => $bookmark->slug, 'id' => $bookmark->id]) }}">
<a href="{{ route('download', ['id' => $bookmark->id]) }}">
<button class="btn btn-primary btn-circle" type="button" data-toggle="tooltip"
data-original-title="Download Torrent">
<i class="{{ config('other.font-awesome') }} fa-download"></i>
@@ -246,21 +246,21 @@
</span>
</td>
<td>
<a href="{{ route('peers', ['slug' => $bookmark->slug, 'id' => $bookmark->id]) }}">
<a href="{{ route('peers', ['id' => $bookmark->id]) }}">
<span class='badge-extra text-green text-bold'>
{{ $bookmark->seeders }}
</span>
</a>
</td>
<td>
<a href="{{ route('peers', ['slug' => $bookmark->slug, 'id' => $bookmark->id]) }}">
<a href="{{ route('peers', ['id' => $bookmark->id]) }}">
<span class='badge-extra text-red text-bold'>
{{ $bookmark->leechers }}
</span>
</a>
</td>
<td>
<a href="{{ route('history', ['slug' => $bookmark->slug, 'id' => $bookmark->id]) }}">
<a href="{{ route('history', ['id' => $bookmark->id]) }}">
<span class='badge-extra text-orange text-bold'>
{{ $bookmark->times_completed }} @lang('common.times')
</span>
+1 -1
View File
@@ -74,7 +74,7 @@
@foreach ($downloads as $download)
<tr class="userFiltered" active="{{ ($download->active ? '1' : '0') }}" seeding="{{ ($download->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($download->prewarn ? '1' : '0') }}" hr="{{ ($download->hitrun ? '1' : '0') }}" immune="{{ ($download->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $download->torrent->id]) }}">
{{ $download->torrent->name }}
</a>
</td>
@@ -16,7 +16,7 @@
@foreach ($active as $p)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $p->torrent->slug, 'id' => $p->torrent_id]) }}"
<a class="view-torrent" href="{{ route('torrent', ['id' => $p->torrent_id]) }}"
data-toggle="tooltip" title="{{ $p->torrent->name }}">
{{ $p->torrent->name }}
</a>
@@ -17,7 +17,7 @@
@foreach ($downloads as $download)
<tr class="userFiltered" active="{{ ($download->active ? '1' : '0') }}" seeding="{{ ($download->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($download->prewarn ? '1' : '0') }}" hr="{{ ($download->hitrun ? '1' : '0') }}" immune="{{ ($download->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $download->torrent->id]) }}">
{{ $download->torrent->name }}
</a>
</td>
@@ -21,7 +21,7 @@
@foreach ($history as $his)
<tr class="userFiltered" active="{{ ($his->active ? '1' : '0') }}" seeding="{{ ($his->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($his->prewarn ? '1' : '0') }}" hr="{{ ($his->hitrun ? '1' : '0') }}" immune="{{ ($his->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $his->torrent->slug, 'id' => $his->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $his->torrent->id]) }}">
{{ $his->torrent->name }}
</a>
</td>
@@ -19,7 +19,7 @@
<td>
<div class="torrent-file">
<div>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $resurrection->torrent->slug, 'id' => $resurrection->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $resurrection->torrent->id]) }}">
{{ $resurrection->torrent->name }}
</a>
</div>
+1 -1
View File
@@ -14,7 +14,7 @@
@foreach ($seeds as $p)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $p->torrent->slug, 'id' => $p->torrent_id]) }}"
<a class="view-torrent" href="{{ route('torrent', ['id' => $p->torrent_id]) }}"
data-toggle="tooltip" title="{{ $p->torrent->name }}">
{{ $p->torrent->name }}
</a>
@@ -18,7 +18,7 @@
@foreach ($downloads as $download)
<tr class="userFiltered" active="{{ ($download->active ? '1' : '0') }}" seeding="{{ ($download->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($download->prewarn ? '1' : '0') }}" hr="{{ ($download->hitrun ? '1' : '0') }}" immune="{{ ($download->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $download->torrent->id]) }}">
{{ $download->torrent->name }}
</a>
</td>
@@ -19,11 +19,11 @@
@foreach ($uploads as $upload)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $upload->slug, 'id' => $upload->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $upload->id]) }}">
{{ $upload->name }}
</a>
<div class="pull-right">
<a href="{{ route('download', ['slug' => $upload->slug, 'id' => $upload->id]) }}">
<a href="{{ route('download', ['id' => $upload->id]) }}">
<button class="btn btn-primary btn-circle" type="button"><i
class="{{ config('other.font-awesome') }} fa-download"></i></button>
</a>
+3 -3
View File
@@ -60,21 +60,21 @@
@foreach ($results as $f)
<tr>
@if ($f->user->image != null)
<td><a href="{{ route('users.show', ['username' => $f->user->slug]) }}">
<td><a href="{{ route('users.show', ['username' => $f->user->username]) }}">
<img src="{{ url('files/img/' . $f->user->image) }}" alt="avatar"
data-toggle="tooltip"
title="{{ $f->user->username }}" height="50px"
data-original-title="{{ $f->user->username }}">
</a></td>
@else
<td><a href="{{ route('v', ['username' => $f->user->slug]) }}">
<td><a href="{{ route('v', ['username' => $f->user->username]) }}">
<img src="{{ url('img/profile.png') }}" alt="avatar"
data-toggle="tooltip"
title="{{ $f->user->username }}" height="50px"
data-original-title="{{ $f->user->username }}">
</a></td>
@endif
<td><a href="{{ route('users.show', ['username' => $f->user->slug]) }}">
<td><a href="{{ route('users.show', ['username' => $f->user->username]) }}">
<span class="badge-user text-bold" style="color:{{ $f->user->group->color }};">{{ $f->user->username }}</span>
</a></td>
<td>{{ $f->created_at }}</td>
+2 -2
View File
@@ -6,13 +6,13 @@
@section('breadcrumb')
<li>
<a href="{{ route('users.show', ['username' => $owner->slug]) }}" itemprop="url"
<a href="{{ route('users.show', ['username' => $owner->username]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $owner->username }}</span>
</a>
</li>
<li>
<a href="{{ route('user_invites', ['slug' => $owner->slug, 'id' => $owner->id]) }}" itemprop="url"
<a href="{{ route('user_invites', ['id' => $owner->id]) }}" itemprop="url"
class="l-breadcrumb-item-link">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ $owner->username }} @lang('user.invites')</span>
</a>
+2 -2
View File
@@ -66,7 +66,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->topic->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $r->topic->slug, 'id' => $r->topic->id]) }}">{{ $r->topic->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $r->topic->id]) }}">{{ $r->topic->name }}</a></strong>
@if ($r->topic->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($r->topic->approved == "1") <span
@@ -107,7 +107,7 @@
</div>
<div class="button-right">
<a class="text-bold"
href="{{ route('forum_topic', ['slug' => $r->topic->slug, 'id' => $r->topic->id]) }}?page={{$r->getPageNumber()}}#post-{{$r->id}}">#{{$r->id}}</a>
href="{{ route('forum_topic', ['id' => $r->topic->id]) }}?page={{$r->getPageNumber()}}#post-{{$r->id}}">#{{$r->id}}</a>
</div>
</div>
<hr class="some-margin">
@@ -120,7 +120,7 @@
@foreach ($active as $p)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $p->torrent->slug, 'id' => $p->torrent_id]) }}"
<a class="view-torrent" href="{{ route('torrent', ['id' => $p->torrent_id]) }}"
data-toggle="tooltip" title="{{ $p->torrent->name }}">
{{ $p->torrent->name }}
</a>
@@ -121,11 +121,11 @@
@foreach ($downloads as $download)
<tr class="userFiltered" active="{{ ($download->active ? '1' : '0') }}" seeding="{{ ($download->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($download->prewarn ? '1' : '0') }}" hr="{{ ($download->hitrun ? '1' : '0') }}" immune="{{ ($download->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $download->torrent->id]) }}">
{{ $download->torrent->name }}
</a>
<div class="pull-right">
<a href="{{ route('download', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a href="{{ route('download', ['id' => $download->torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button"><i
class="{{ config('other.font-awesome') }} fa-download"></i></button>
</a>
@@ -104,7 +104,7 @@
<td>
<div class="torrent-file">
<div>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $resurrection->torrent->slug, 'id' => $resurrection->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $resurrection->torrent->id]) }}">
{{ $resurrection->torrent->name }}
</a>
</div>
+1 -1
View File
@@ -166,7 +166,7 @@
@foreach ($seeds as $p)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $p->torrent->slug, 'id' => $p->torrent_id]) }}"
<a class="view-torrent" href="{{ route('torrent', ['id' => $p->torrent_id]) }}"
data-toggle="tooltip" title="{{ $p->torrent->name }}">
{{ $p->torrent->name }}
</a>
@@ -149,7 +149,7 @@
@foreach ($history as $his)
<tr class="userFiltered" active="{{ ($his->active ? '1' : '0') }}" seeding="{{ ($his->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($his->prewarn ? '1' : '0') }}" hr="{{ ($his->hitrun ? '1' : '0') }}" immune="{{ ($his->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $his->torrent->slug, 'id' => $his->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $his->torrent->id]) }}">
{{ $his->torrent->name }}
</a>
</td>
@@ -121,11 +121,11 @@
@foreach ($downloads as $download)
<tr class="userFiltered" active="{{ ($download->active ? '1' : '0') }}" seeding="{{ ($download->seeder == 1 ? '1' : '0') }}" prewarned="{{ ($download->prewarn ? '1' : '0') }}" hr="{{ ($download->hitrun ? '1' : '0') }}" immune="{{ ($download->immune ? '1' : '0') }}">
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $download->torrent->id]) }}">
{{ $download->torrent->name }}
</a>
<div class="pull-right">
<a href="{{ route('download', ['slug' => $download->torrent->slug, 'id' => $download->torrent->id]) }}">
<a href="{{ route('download', ['id' => $download->torrent->id]) }}">
<button class="btn btn-primary btn-circle" type="button"><i
class="{{ config('other.font-awesome') }} fa-download"></i></button>
</a>
@@ -152,11 +152,11 @@
@foreach ($uploads as $upload)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $upload->slug, 'id' => $upload->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $upload->id]) }}">
{{ $upload->name }}
</a>
<div class="pull-right">
<a href="{{ route('download', ['slug' => $upload->slug, 'id' => $upload->id]) }}">
<a href="{{ route('download', ['id' => $upload->id]) }}">
<button class="btn btn-primary btn-circle" type="button"><i
class="{{ config('other.font-awesome') }} fa-download"></i></button>
</a>
+3 -3
View File
@@ -485,14 +485,14 @@
@if (auth()->user()->isAllowed($user,'profile','show_profile_follower'))
@foreach ($followers as $f)
@if ($f->user->image != null)
<a href="{{ route('users.show', ['username' => $f->user->slug]) }}">
<a href="{{ route('users.show', ['username' => $f->user->username]) }}">
<img src="{{ url('files/img/' . $f->user->image) }}" data-toggle="tooltip"
title="{{ $f->user->username }}" height="50px"
data-original-title="{{ $f->user->username }}"
alt="{{ $f->user->username }}">
</a>
@else
<a href="{{ route('users.show', ['username' => $f->user->slug]) }}">
<a href="{{ route('users.show', ['username' => $f->user->username]) }}">
<img src="{{ url('img/profile.png') }}" data-toggle="tooltip"
title="{{ $f->user->username }}" height="50px"
data-original-title="{{ $f->user->username }}"
@@ -662,7 +662,7 @@
@foreach ($hitrun as $hr)
<tr>
<td>
<a class="text-bold" href="{{ route('torrent', ['slug' => $hr->torrenttitle->slug, 'id' => $hr->torrenttitle->id]) }}">
<a class="text-bold" href="{{ route('torrent', ['id' => $hr->torrenttitle->id]) }}">
{{ $hr->torrenttitle->name }}
</a>
</td>
+1 -1
View File
@@ -65,7 +65,7 @@
<td class="f-display-topic-icon"><span
class="badge-extra text-bold">{{ $r->forum->name }}</span></td>
<td class="f-display-topic-title">
<strong><a href="{{ route('forum_topic', ['slug' => $r->slug, 'id' => $r->id]) }}">{{ $r->name }}</a></strong>
<strong><a href="{{ route('forum_topic', ['id' => $r->id]) }}">{{ $r->name }}</a></strong>
@if ($r->state == "close") <span
class='label label-sm label-default'>{{ strtoupper(trans('forum.closed')) }}</span> @endif
@if ($r->approved == "1") <span
+2 -2
View File
@@ -60,11 +60,11 @@
@foreach ($uploads as $upload)
<tr>
<td>
<a class="view-torrent" href="{{ route('torrent', ['slug' => $upload->slug, 'id' => $upload->id]) }}">
<a class="view-torrent" href="{{ route('torrent', ['id' => $upload->id]) }}">
{{ $upload->name }}
</a>
<div class="pull-right">
<a href="{{ route('download', ['slug' => $upload->slug, 'id' => $upload->id]) }}">
<a href="{{ route('download', ['id' => $upload->id]) }}">
<button class="btn btn-primary btn-circle" type="button"><i
class="{{ config('other.font-awesome') }} fa-download"></i></button>
</a>
+2 -2
View File
@@ -72,7 +72,7 @@
</a>
</td>
<td>
<a href="{{ route('torrent', ['slug' =>$warning->torrenttitle->slug, 'id' => $warning->torrenttitle->id]) }}">
<a href="{{ route('torrent', ['id' => $warning->torrenttitle->id]) }}">
{{ $warning->torrenttitle->name }}
</a>
</td>
@@ -160,7 +160,7 @@
</a>
</td>
<td>
<a href="{{ route('torrent', ['slug' =>$softDeletedWarning->torrenttitle->slug, 'id' => $softDeletedWarning->torrenttitle->id]) }}">
<a href="{{ route('torrent', ['id' => $softDeletedWarning->torrenttitle->id]) }}">
{{ $softDeletedWarning->torrenttitle->name }}
</a>
</td>
+10 -8
View File
@@ -553,12 +553,14 @@ Route::group(['middleware' => 'language'], function () {
Route::post('/reports/{report_id}/solve', 'ReportController@solveReport')->name('solveReport');
// Categories
Route::get('/categories', 'CategoryController@index')->name('staff.categories.index');
Route::get('/categories/create', 'CategoryController@create')->name('staff.categories.create');
Route::post('/categories', 'CategoryController@store')->name('staff.categories.store');
Route::get('/categories/{id}/edit', 'CategoryController@edit')->name('staff.categories.edit');
Route::patch('/categories/{id}', 'CategoryController@update')->name('staff.categories.update');
Route::delete('/categories/{id}', 'CategoryController@destroy')->name('staff.categories.destroy');
Route::group(['prefix' => 'types'], function () {
Route::get('/', 'CategoryController@index')->name('staff.categories.index');
Route::get('/create', 'CategoryController@create')->name('staff.categories.create');
Route::post('/store', 'CategoryController@store')->name('staff.categories.store');
Route::get('/{id}/edit', 'CategoryController@edit')->name('staff.categories.edit');
Route::patch('/{id}/update', 'CategoryController@update')->name('staff.categories.update');
Route::delete('/{id}/destroy', 'CategoryController@destroy')->name('staff.categories.destroy');
});
// Types
Route::group(['prefix' => 'types'], function () {
@@ -566,8 +568,8 @@ Route::group(['middleware' => 'language'], function () {
Route::get('/create', 'TypeController@create')->name('staff.types.create');
Route::post('/store', 'TypeController@store')->name('staff.types.store');
Route::get('//{id}/edit', 'TypeController@edit')->name('staff.types.edit');
Route::post('/{id}/update', 'TypeController@update')->name('staff.types.update');
Route::get('/{id}/destroy', 'TypeController@destroy')->name('staff.types.destroy');
Route::patch('/{id}/update', 'TypeController@update')->name('staff.types.update');
Route::delete('/{id}/destroy', 'TypeController@destroy')->name('staff.types.destroy');
});
// Forum