From a5f719d082c90b27a7386cf1e971a4c1c96385dc Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Thu, 13 Mar 2025 15:46:56 +0000 Subject: [PATCH] wip: timeline view --- app/Http/Controllers/SecurityController.php | 2 +- app/Http/Controllers/TodoController.php | 5 +++ resources/views/layout/admin.blade.php | 1 + resources/views/timeline.blade.php | 48 +++++++++++++++++++++ routes/web.php | 1 + 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 resources/views/timeline.blade.php diff --git a/app/Http/Controllers/SecurityController.php b/app/Http/Controllers/SecurityController.php index 75dca4c..0e0e820 100755 --- a/app/Http/Controllers/SecurityController.php +++ b/app/Http/Controllers/SecurityController.php @@ -86,7 +86,7 @@ class SecurityController extends Controller $user = \App\User::where("email", $request->input("email"))->first(); if ($user != null) { return response()->json([ - "message" => "User with email " . $user->email . " is exist", + "message" => "User with email " . $user->email . " is not available", ], 400); } else { if ($request->input('password') != $request->input('password_confirm')) { diff --git a/app/Http/Controllers/TodoController.php b/app/Http/Controllers/TodoController.php index 4a2aa51..f770be8 100755 --- a/app/Http/Controllers/TodoController.php +++ b/app/Http/Controllers/TodoController.php @@ -11,6 +11,11 @@ class TodoController extends Controller return view('home'); } + public function viewTimeline() + { + return view('timeline'); + } + // Todo public function todoList(Request $request) { diff --git a/resources/views/layout/admin.blade.php b/resources/views/layout/admin.blade.php index e741d82..96246c2 100755 --- a/resources/views/layout/admin.blade.php +++ b/resources/views/layout/admin.blade.php @@ -62,6 +62,7 @@ Change Password +
  • Timeline
  • Sign Out diff --git a/resources/views/timeline.blade.php b/resources/views/timeline.blade.php new file mode 100644 index 0000000..0dfe047 --- /dev/null +++ b/resources/views/timeline.blade.php @@ -0,0 +1,48 @@ +@extends('layout.admin') + +@section('css') + +@endsection + + +@section('title') + Timeline View +@endsection + +@section('subtitle') + Your todo in a timeline view +@endsection + + +@section('css') + +@endsection + +@section('content') +
    +
    +@endsection + +@section('js') + + +@endsection diff --git a/routes/web.php b/routes/web.php index 2ac9210..71403ff 100755 --- a/routes/web.php +++ b/routes/web.php @@ -22,6 +22,7 @@ Route::get('/register', "SecurityController@viewRegister"); Route::middleware('auth.web')->group(function () { Route::get('/home', "TodoController@viewHome"); + Route::get('/timeline', "TodoController@viewTimeline"); Route::post('/web/change/password', "SecurityController@formChangePassword"); // This group is used for internal API provided by session