(Fix) Warning Logs 🐛

- correct total warning count
This commit is contained in:
HDVinnie
2018-12-17 12:33:44 -05:00
parent 494f2c945c
commit a8c5dc9f8e
2 changed files with 6 additions and 3 deletions
@@ -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>