mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 20:18:59 -05:00
(Update) UserController
Pull same stat as history (which is correct?)
This commit is contained in:
@@ -108,9 +108,9 @@ class UserController extends Controller
|
||||
$warnings = Warning::where('user_id', '=', $id)->whereNotNull('torrent')->where('active', '=', 1)->take(3)->get();
|
||||
$hitrun = Warning::where('user_id', '=', $id)->latest()->paginate(10);
|
||||
$bonupload = BonTransactions::where('sender', '=', $id)->where([['name', 'like', '%Upload%']])->sum('cost');
|
||||
$realupload = $user->uploaded - $bonupload;
|
||||
$realupload = $user->history->sum('uploaded') - $bonupload;
|
||||
$bondownload = BonTransactions::where('sender', '=', $id)->where([['name', 'like', '%Download%']])->sum('cost');
|
||||
$realdownload = $user->downloaded + $bondownload;
|
||||
$realdownload = $user->history->sum('downloaded') - $bondownload;
|
||||
$invitedBy = Invite::where('accepted_by', '=', $user->id)->first();
|
||||
|
||||
$requested = TorrentRequest::where('user_id', '=', $user->id)->count();
|
||||
|
||||
Reference in New Issue
Block a user