Fix: Force add super-admin views to git
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m52s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m52s
The resources/views directory is ignored by .gitignore, so the custom super-admin views were not being tracked or deployed, causing 'View [super-admin.session.login] not found' errors in production. This commit forces them to be tracked.
This commit is contained in:
89
resources/views/super-admin/session/login.blade.php
Normal file
89
resources/views/super-admin/session/login.blade.php
Normal file
@@ -0,0 +1,89 @@
|
||||
@component('super-admin.layouts.anonymous')
|
||||
<div class="flex h-[100vh] flex-col items-center justify-center gap-10">
|
||||
<div class="flex flex-col items-center gap-5">
|
||||
<img class="w-max" src="{{ vite()->asset('images/logo.svg') }}" alt="Growup Pro" />
|
||||
|
||||
<div class="box-shadow flex min-w-[300px] flex-col rounded-md bg-white dark:bg-gray-900">
|
||||
<x-admin::form :action="route('super-admin.session.store')">
|
||||
<p class="p-4 text-xl font-bold text-gray-800 dark:text-white">
|
||||
Super Admin Login
|
||||
</p>
|
||||
|
||||
<div class="border-y p-4 dark:border-gray-800">
|
||||
<!-- Email -->
|
||||
<x-admin::form.control-group>
|
||||
<x-admin::form.control-group.label class="required">
|
||||
Email
|
||||
</x-admin::form.control-group.label>
|
||||
|
||||
<x-admin::form.control-group.control
|
||||
type="email"
|
||||
class="w-[254px] max-w-full"
|
||||
id="email"
|
||||
name="email"
|
||||
rules="required|email"
|
||||
label="Email"
|
||||
placeholder="Email"
|
||||
/>
|
||||
|
||||
<x-admin::form.control-group.error control-name="email" />
|
||||
</x-admin::form.control-group>
|
||||
|
||||
<!-- Password -->
|
||||
<x-admin::form.control-group class="relative w-full">
|
||||
<x-admin::form.control-group.label class="required">
|
||||
Password
|
||||
</x-admin::form.control-group.label>
|
||||
|
||||
<x-admin::form.control-group.control
|
||||
type="password"
|
||||
class="w-[254px] max-w-full ltr:pr-10 rtl:pl-10"
|
||||
id="password"
|
||||
name="password"
|
||||
rules="required|min:6"
|
||||
label="Password"
|
||||
placeholder="Password"
|
||||
/>
|
||||
|
||||
<span
|
||||
class="icon-eye-hide absolute top-11 -translate-y-2/4 cursor-pointer text-2xl ltr:right-3 rtl:left-3"
|
||||
onclick="switchVisibility()"
|
||||
id="visibilityIcon"
|
||||
role="presentation"
|
||||
tabindex="0"
|
||||
>
|
||||
</span>
|
||||
|
||||
<x-admin::form.control-group.error control-name="password" />
|
||||
</x-admin::form.control-group>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end p-4">
|
||||
<button class="primary-button">
|
||||
Sign In
|
||||
</button>
|
||||
</div>
|
||||
</x-admin::form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-sm font-normal">
|
||||
Desenvolvido por
|
||||
<a style="color: #0E90D9;" class="hover:underline" href="https://blyzer.com.br" target="_blank">
|
||||
Blyzer
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
function switchVisibility() {
|
||||
let passwordField = document.getElementById("password");
|
||||
let visibilityIcon = document.getElementById("visibilityIcon");
|
||||
passwordField.type = passwordField.type === "password" ? "text" : "password";
|
||||
visibilityIcon.classList.toggle("icon-eye");
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user