mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-21 19:40:47 -06:00
(Update) Invites System
- Master Invites Log and User Invite Tree are now fluid, paginated and show user group, color and icon.
This commit is contained in:
@@ -129,10 +129,10 @@ class InviteController extends Controller
|
||||
{
|
||||
if (auth()->user()->group->is_modo) {
|
||||
$user = User::findOrFail($id);
|
||||
$records = Invite::with('sender')->where('user_id', $user->id)->latest()->get();
|
||||
$records = Invite::with('sender', 'receiver')->where('user_id', $user->id)->latest()->paginate(25);
|
||||
} else {
|
||||
$user = auth()->user();
|
||||
$records = Invite::with('sender')->where('user_id', $user->id)->latest()->get();
|
||||
$records = Invite::with('sender', 'receiver')->where('user_id', $user->id)->latest()->paginate(25);
|
||||
}
|
||||
return view('user.invitetree', ['user' => $user, 'records' => $records]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user