mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 16:59:32 -05:00
(Fix) Warning Logs 🐛
- correct total warning count
This commit is contained in:
@@ -26,7 +26,7 @@ class WarningController extends Controller
|
||||
public function getWarnings()
|
||||
{
|
||||
$warnings = Warning::with(['torrenttitle', 'warneduser'])->latest()->paginate(25);
|
||||
$warningcount = Warning::where('active', '=', 1)->count();
|
||||
$warningcount = Warning::count();
|
||||
|
||||
return view('Staff.warnings.index', ['warnings' => $warnings, 'warningcount' => $warningcount]);
|
||||
}
|
||||
|
||||
@@ -28,8 +28,11 @@
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h2>Warnings <span class="text-blue"><strong><i
|
||||
class="{{ config('other.font-awesome') }} fa-note"></i> {{ $warningcount }} </strong></span></h2>
|
||||
<h2>
|
||||
<span class="text-blue"> Warnings
|
||||
<strong><i class="{{ config('other.font-awesome') }} fa-note"></i> {{ $warningcount }} </strong>
|
||||
</span>
|
||||
</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-condensed table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user