authorize.blade.php
2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html :class="{ 'theme-dark': dark }" x-data="data()" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{$title}}</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="{{ asset('assets/css/tailwind.output.css') }}" />
<!--<script
src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"
defer
></script>-->
<script src="{{ asset('assets/js/init-alpine.js') }}"></script>
</head>
<body>
<div class="flex items-center min-h-screen p-6 bg-gray-50 dark:bg-gray-900">
<div
class="flex-1 h-full max-w-4xl mx-auto overflow-hidden bg-white rounded-lg shadow-xl dark:bg-gray-800"
>
<div class="flex flex-col overflow-y-auto md:flex-row">
<div class="h-32 md:h-auto md:w-1/2">
@yield('image')
</div>
<div class="flex items-center justify-center p-6 sm:p-12 md:w-1/2">
<div class="w-full">
@if ($message = Session::get('success'))
<section>
<div class="alert alert-success alert-dismissible mt-0" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Закрыть">
<span aria-hidden="true">×</span>
</button>
{{ $message }}
</div>
</section>
@endif
@if ($errors->any())
<section>
<div class="alert alert-danger alert-dismissible mt-4" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Закрыть">
<span aria-hidden="true">×</span>
</button>
<ul class="mb-0">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</section>
@endif
@yield('content')
</div>
</div>
</div>
</div>
</div>
</body>
</html>