diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 4c69f42..3c012b6 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -13,7 +13,7 @@ class AuthController extends Controller //$token = $request->session()->token(); //$token = csrf_token(); - return view('front.login'); + return view('back.login'); } public function memberAuth(Request $request): Response diff --git a/app/Http/Controllers/DenController.php b/app/Http/Controllers/DenController.php index 22a3eee..14bfc9d 100644 --- a/app/Http/Controllers/DenController.php +++ b/app/Http/Controllers/DenController.php @@ -13,4 +13,10 @@ class DenController extends Controller $member = Auth::user(); return view('back.start', ['handle' => $member->handle]); } + + public function member(Request $request) + { + $member = Auth::user(); + return view('back.member', ['handle' => $member->handle]); + } } diff --git a/app/Http/Controllers/FrontIndexController.php b/app/Http/Controllers/FrontIndexController.php index 652ebb8..8f6c7d1 100644 --- a/app/Http/Controllers/FrontIndexController.php +++ b/app/Http/Controllers/FrontIndexController.php @@ -9,7 +9,7 @@ class FrontIndexController extends Controller { public function start() { - $locations = Location::all(); + $locations = Location::where("active", true)->get(); $count = count($locations); $terms = "no|agenda"; diff --git a/resources/views/back/locations.blade.php b/resources/views/back/locations.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/front/login.blade.php b/resources/views/back/login.blade.php similarity index 100% rename from resources/views/front/login.blade.php rename to resources/views/back/login.blade.php diff --git a/resources/views/back/member.blade.php b/resources/views/back/member.blade.php new file mode 100644 index 0000000..017c4ec --- /dev/null +++ b/resources/views/back/member.blade.php @@ -0,0 +1,4 @@ +
This is where we start
- {{ $count }} -@endsection +