Update Fix
This commit is contained in:
46
resources/views/layouts/guest.blade.php
Normal file
46
resources/views/layouts/guest.blade.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
@php
|
||||
$storeName = config('app.name', 'Laravel');
|
||||
$storeLogo = null;
|
||||
if (\Illuminate\Support\Facades\Schema::hasTable('settings')) {
|
||||
$storeName = \App\Models\Setting::where('key', 'toko.nama')->value('value') ?: $storeName;
|
||||
$storeLogo = \App\Models\Setting::where('key', 'toko.logo')->value('value') ?: null;
|
||||
}
|
||||
@endphp
|
||||
<title>{{ $storeName }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
</head>
|
||||
<body class="font-sans text-gray-900 antialiased">
|
||||
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900">
|
||||
<div class="text-center">
|
||||
<a href="/" class="inline-flex flex-col items-center justify-center gap-3">
|
||||
@if($storeLogo)
|
||||
<img src="{{ $storeLogo }}" alt="Logo" class="h-12 w-12 rounded-lg border border-gray-200 bg-white object-contain dark:border-gray-800" />
|
||||
@endif
|
||||
<div class="text-lg font-semibold text-gray-800 dark:text-gray-100">
|
||||
{{ $storeName }}
|
||||
</div>
|
||||
</a>
|
||||
<div class="text-xs text-gray-500 dark:text-gray-400">
|
||||
Sistem Kasir
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-gray-800 shadow-md overflow-hidden sm:rounded-lg">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user