56 lines
2.2 KiB
PHP
56 lines
2.2 KiB
PHP
@php
|
|
$storeLogo = null;
|
|
if (\Illuminate\Support\Facades\Schema::hasTable('settings')) {
|
|
$storeLogo = \App\Models\Setting::where('key', 'toko.logo')->value('value') ?: null;
|
|
}
|
|
@endphp
|
|
|
|
<x-guest-layout>
|
|
<div class="space-y-6">
|
|
<div class="text-center">
|
|
@if($storeLogo)
|
|
<img src="{{ $storeLogo }}" alt="Logo" class="mx-auto h-16 w-16 rounded-xl border border-gray-200 bg-white object-contain dark:border-gray-800" />
|
|
@endif
|
|
</div>
|
|
|
|
<!-- Session Status -->
|
|
<x-auth-session-status class="mb-4" :status="session('status')" />
|
|
|
|
<form method="POST" action="{{ route('login') }}" class="space-y-4">
|
|
@csrf
|
|
|
|
<!-- Email Address -->
|
|
<div>
|
|
<x-input-label for="nip" :value="__('NIP')" />
|
|
<x-text-input id="nip" class="block mt-1 w-full" type="text" name="nip" :value="old('nip')" required autofocus autocomplete="username" />
|
|
<x-input-error :messages="$errors->get('nip')" class="mt-2" />
|
|
</div>
|
|
|
|
<!-- Password -->
|
|
<div>
|
|
<x-input-label for="password" :value="__('Password')" />
|
|
|
|
<x-text-input id="password" class="block mt-1 w-full"
|
|
type="password"
|
|
name="password"
|
|
required autocomplete="current-password" />
|
|
|
|
<x-input-error :messages="$errors->get('password')" class="mt-2" />
|
|
</div>
|
|
|
|
<!-- Remember Me -->
|
|
<div class="flex items-center justify-between">
|
|
<label for="remember_me" class="inline-flex items-center">
|
|
<input id="remember_me" type="checkbox" class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800" name="remember">
|
|
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400">{{ __('Remember me') }}</span>
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<x-primary-button class="w-full justify-center">
|
|
{{ __('Log in') }}
|
|
</x-primary-button>
|
|
</form>
|
|
</div>
|
|
</x-guest-layout>
|