- Replaced deprecated `flux` components with `maryUI` counterparts (`flux:input` → `x-mary-input`, `flux:button` → `x-mary-button`, etc.). - Removed unused partials (`settings-heading.blade.php`) and outdated structures from Blade files. - Adjusted Livewire modal, form, and button implementations for consistency with `maryUI`. - Streamlined layout and theme styling for improved maintainability and readability.
64 lines
2.3 KiB
PHP
64 lines
2.3 KiB
PHP
<x-layouts::auth :title="__('Log in')">
|
|
<div class="flex flex-col gap-6">
|
|
<x-auth-header :title="__('Log in to your account')"
|
|
:description="__('Enter your email and password below to log in')"/>
|
|
|
|
<!-- Session Status -->
|
|
<x-auth-session-status class="text-center" :status="session('status')"/>
|
|
|
|
<form method="POST" action="{{ route('login.store') }}" class="flex flex-col gap-6">
|
|
@csrf
|
|
|
|
<!-- Email Address -->
|
|
<x-mary-input
|
|
name="email"
|
|
:label="__('Email address')"
|
|
:value="old('email')"
|
|
type="email"
|
|
required
|
|
autofocus
|
|
autocomplete="email"
|
|
placeholder="email@example.com"
|
|
/>
|
|
|
|
<!-- Password -->
|
|
<div class="relative">
|
|
<x-mary-input
|
|
name="password"
|
|
:label="__('Password')"
|
|
type="password"
|
|
required
|
|
autocomplete="current-password"
|
|
:placeholder="__('Password')"
|
|
viewable
|
|
/>
|
|
|
|
@if (Route::has('password.request'))
|
|
<a class="absolute top-0 text-sm inset-e-0 hover:text-blue-500"
|
|
href="{{route('password.request')}}"
|
|
wire:navigate>
|
|
{{ __('Forgot your password?') }}
|
|
</a>
|
|
@endif
|
|
</div>
|
|
|
|
<!-- Remember Me -->
|
|
<x-mary-checkbox name="remember" :label="__('Remember me')" :checked="old('remember')"/>
|
|
|
|
<div class="flex items-center justify-end">
|
|
<x-mary-button type="submit" class="w-full btn-primary" data-test="login-button">
|
|
{{ __('Log in') }}
|
|
</x-mary-button>
|
|
</div>
|
|
</form>
|
|
|
|
@if (Route::has('register'))
|
|
<div class="space-x-1 text-sm text-center rtl:space-x-reverse text-zinc-600 dark:text-zinc-400">
|
|
<span>{{ __('Don\'t have an account?') }}</span>
|
|
<a href="{{route('register')}}" class="font-bold text-gray-900 hover:text-blue-500"
|
|
wire:navigate>{{ __('Sign up') }}</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</x-layouts::auth>
|