diff --git a/app/Services/Admin/AdminService.php b/app/Services/Admin/AdminService.php index b004add..b148cf0 100644 --- a/app/Services/Admin/AdminService.php +++ b/app/Services/Admin/AdminService.php @@ -85,7 +85,8 @@ class AdminService implements AdminServiceInterface $startOfMonth = Carbon::parse($selectedMonth)->startOfMonth(); $endOfMonth = Carbon::parse($selectedMonth)->endOfMonth(); - return Administration::where('msnv', $msnv) + return Administration::with(['senderUser', 'receiverUser']) + ->where('msnv', $msnv) ->whereBetween('date', [$startOfMonth, $endOfMonth]) ->orderBy('date', 'desc') ->paginate(10) diff --git a/app/Services/User/UserService.php b/app/Services/User/UserService.php index 53b7d7f..a20796a 100644 --- a/app/Services/User/UserService.php +++ b/app/Services/User/UserService.php @@ -18,7 +18,8 @@ class UserService implements UserServiceInterface $startOfMonth = Carbon::parse($selectedMonth)->startOfMonth(); $endOfMonth = Carbon::parse($selectedMonth)->endOfMonth(); - return Administration::where('msnv', $user->msnv) + return Administration::with(['senderUser', 'receiverUser']) + ->where('msnv', $user->msnv) ->whereBetween('date', [$startOfMonth, $endOfMonth]) ->orderBy('date', 'desc') ->paginate(10) diff --git a/resources/views/components/transaction-history.blade.php b/resources/views/components/transaction-history.blade.php index f6a01a4..6d8e1ab 100644 --- a/resources/views/components/transaction-history.blade.php +++ b/resources/views/components/transaction-history.blade.php @@ -47,9 +47,43 @@