fix dashboard table

This commit is contained in:
Muhammad Fajar
2022-12-07 11:15:33 +07:00
parent f20cb5b44c
commit 5840a311e0
11 changed files with 236 additions and 41 deletions

View File

@@ -17,7 +17,7 @@ class DashboardController extends Controller
public function index(Request $request)
{
$user = Auth::user();
$data = DashboardResources::make($user->managedCorporates()->where('active', 1)->with('currentPolicy', 'employees')->first());
$data = DashboardResources::make($user->managedCorporates()->where('active', 1)->with('currentPolicy')->first());
return response()->json($data);
}