From b8c34bf00a15cbbc2582992374c27baa19bb1052 Mon Sep 17 00:00:00 2001 From: Bayu Lukman Yusuf Date: Tue, 13 Jan 2026 02:20:37 +0700 Subject: [PATCH] ui login email / phone --- .../Controllers/Auth/LoginEmailController.php | 14 +++ .../Controllers/Auth/LoginWaController.php | 14 +++ lang/en/signin.php | 36 ++++++++ lang/id/signin.php | 37 ++++++++ .../views/account/signin-email.blade.php | 91 +++++++++++++++++++ resources/views/account/signin.blade.php | 61 ++++--------- resources/views/account/signup.blade.php | 2 +- .../views/components/social-login.blade.php | 26 ++++++ routes/web.php | 5 + 9 files changed, 240 insertions(+), 46 deletions(-) create mode 100644 app/Http/Controllers/Auth/LoginEmailController.php create mode 100644 app/Http/Controllers/Auth/LoginWaController.php create mode 100644 lang/en/signin.php create mode 100644 lang/id/signin.php create mode 100644 resources/views/account/signin-email.blade.php create mode 100644 resources/views/components/social-login.blade.php diff --git a/app/Http/Controllers/Auth/LoginEmailController.php b/app/Http/Controllers/Auth/LoginEmailController.php new file mode 100644 index 0000000..9536edb --- /dev/null +++ b/app/Http/Controllers/Auth/LoginEmailController.php @@ -0,0 +1,14 @@ + 'Welcome back', + 'no_account' => "Don't have an account?", + 'create_account' => 'Create an account', + 'email_placeholder' => 'Email', + 'email_invalid' => 'Enter a valid email address!', + 'phone_placeholder' => 'Phone Number', + 'phone_invalid' => 'Enter a valid phone number!', + 'password_placeholder' => 'Password', + 'password_incorrect' => 'Password is incorrect!', + 'remember_for_30_days' => 'Remember for 30 days', + 'forgot_password' => 'Forgot password?', + 'login_with_email' => 'Login with email', + 'login_with_phone' => 'Login with phone', + 'sign_in' => 'Sign In', + 'or_continue_with' => 'or continue with', + 'google' => 'Google', + 'facebook' => 'Facebook', + 'apple' => 'Apple', + 'need_help' => 'Need help?', + 'rights_reserved' => '© All rights reserved. Made by :company', + 'company_name' => 'Coderthemes', +]; diff --git a/lang/id/signin.php b/lang/id/signin.php new file mode 100644 index 0000000..63595f9 --- /dev/null +++ b/lang/id/signin.php @@ -0,0 +1,37 @@ + 'Selamat datang kembali', + 'no_account' => 'Belum punya akun?', + 'create_account' => 'Buat akun', + 'email_placeholder' => 'Email', + 'email_invalid' => 'Masukkan alamat email yang valid!', + 'phone_placeholder' => 'Nomor Telepon', + 'phone_invalid' => 'Masukkan nomor telepon yang valid!', + 'password_placeholder' => 'Kata Sandi', + 'password_incorrect' => 'Kata sandi salah!', + 'remember_for_30_days' => 'Ingat selama 30 hari', + 'forgot_password' => 'Lupa kata sandi?', + 'login_with_email' => 'Login dengan email', + 'login_with_phone' => 'Login dengan telepon', + 'sign_in' => 'Masuk', + 'or_continue_with' => 'atau lanjutkan dengan', + 'google' => 'Google', + 'facebook' => 'Facebook', + 'apple' => 'Apple', + 'need_help' => 'Butuh bantuan?', + 'rights_reserved' => ' Semua hak dilindungi. Dibuat oleh :company', + 'rights_reserved' => '© Semua hak dilindungi. Dibuat oleh :company', + 'company_name' => 'Coderthemes', +]; \ No newline at end of file diff --git a/resources/views/account/signin-email.blade.php b/resources/views/account/signin-email.blade.php new file mode 100644 index 0000000..a5b6baa --- /dev/null +++ b/resources/views/account/signin-email.blade.php @@ -0,0 +1,91 @@ +@extends('layouts.landing', ['title' => 'Account - Sign In']) + +@section('content') +
+
+ +
+ + +

{{ __('signin.title') }}

+ + +
+
+ +
{{ __('signin.email_invalid') }}
+
+ +
+ {{--
+ + +
--}} + +
+ +
+ + + +
+ +
+
+ + +
+ Girl +
+
+
+
+
+@endsection + +@section('scripts') +@endsection diff --git a/resources/views/account/signin.blade.php b/resources/views/account/signin.blade.php index 5859700..ead7dad 100644 --- a/resources/views/account/signin.blade.php +++ b/resources/views/account/signin.blade.php @@ -30,73 +30,44 @@ AsiaGolf -

Welcome back

+

{{ __('signin.title') }}

- -
Enter a valid email address!
+ +
{{ __('signin.phone_invalid') }}
-
-
- -
Password is incorrect!
- -
-
-
-
+ +
+ {{--
- -
+ +
--}}
- + - -
-
- or continue with -
-
- -
- - - -
+

© All rights reserved. Made by Coderthemes + href="https://coderthemes.com/" rel="noreferrer" target="_blank">{{ __('signin.company_name') }}

diff --git a/resources/views/account/signup.blade.php b/resources/views/account/signup.blade.php index 1b4fb68..e72fa82 100644 --- a/resources/views/account/signup.blade.php +++ b/resources/views/account/signup.blade.php @@ -15,7 +15,7 @@