-
Notifications
You must be signed in to change notification settings - Fork 6
/
admin-settings.blade.php
129 lines (123 loc) · 7.53 KB
/
admin-settings.blade.php
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<form action="{{ route('admin.settings.store') }}" method="POST">
@csrf
<div class="card-header">
<h4>{!! __('admin.theme_settings') !!}</h4>
</div>
<div class="card-body">
<div class="row">
<div class="form-group col-12">
<label class="form-label">Default Theme Layout</label>
<div class="row gutters-sm">
@foreach(config('utils.theme_presets') as $key => $theme)
<div class="col-6 col-sm-3">
<label class="imagecheck mb-4">
<h6 class="text-dark">{{ $theme['name'] }}</h6>
<input name="theme::default::theme-preset" type="radio" value="{{ $key }}" onchange="document.getElementById('theme_colors').value = '{{ $theme['colors'] }}'" class="imagecheck-input" @if(settings('theme::default::theme', '{"50": "#F9FAFB","100": "#F3F4F6","200": "#E5E7EB","300": "#D1D5DB","400": "#9CA3AF","500": "#6B7280","600": "#4B5563","700": "#374151","800": "#1F2937","900": "#111827"}') == $theme['colors']) checked="" @endif>
<figure class="imagecheck-figure">
<img src="{{ $theme['image'] }}" alt="" class="imagecheck-image">
</figure>
</label>
</div>
@endforeach
</div>
</div>
<div class="form-group col-12">
<label class="form-label">Category Structure</label>
<div class="row gutters-sm">
@foreach(config('utils.category_structures') as $key => $structure)
<div class="col-6 col-sm-3">
<label class="imagecheck mb-4">
<h6 class="text-dark">{{ $structure['name'] }}</h6>
<input name="theme:default:categories_structure" type="radio" class="imagecheck-input" value="{{ $key }}" @if(settings('theme:default:categories_structure', 'grid') == $key) checked="" @endif>
<figure class="imagecheck-figure">
<img src="{{ $structure['image'] }}" alt="" class="imagecheck-image">
</figure>
</label>
</div>
@endforeach
</div>
</div>
<div class="form-group col-12">
<label>{!! __('admin.theme') !!}</label>
<textarea name="theme::default::theme" id="theme_colors" class="form-control">@settings('theme::default::theme', '{"50": "#F9FAFB","100": "#F3F4F6","200": "#E5E7EB","300": "#D1D5DB","400": "#9CA3AF","500": "#6B7280","600": "#4B5563","700": "#374151","800": "#1F2937","900": "#111827"}')</textarea>
</div>
<div class="form-group col-md-12 col-12">
<label for="user">{!! __('admin.default_theme_color') !!}</label>
<select class="form-control select2 select2-hidden-accessible" name="theme::default::theme-color" tabindex="-1"
aria-hidden="true">
@foreach (config('utils.tailwind-colors') as $color)
<option value="{{ $color }}" @if (settings('theme::default::theme-color', 'indigo') == $color) selected="" @endif>
{{ $color }}
</option>
@endforeach
</select>
</div>
<div class="form-group col-6">
<label>{!! __('admin.discord') !!}</label>
<input type="text" name="socials::discord" value="@settings('socials::discord', '')" class="form-control">
</div>
<div class="form-group col-6">
<label>{!! __('admin.github') !!}</label>
<input type="text" name="socials::github" value="@settings('socials::github', '')" class="form-control">
</div>
<div class="form-group col-6">
<label>{!! __('admin.twitter') !!}</label>
<input type="text" name="socials::twitter" value="@settings('socials::twitter', '')" class="form-control">
</div>
<div class="form-group col-6">
<label>{!! __('admin.auth_page_title') !!}</label>
<input type="text" name="theme::default::auth::title"
value="@settings('theme::default::auth::title', 'Your Game, Our World: Hosting Perfected')" class="form-control">
</div>
<div class="form-group col-6">
<label>{!! __('admin.auth_page_description') !!}</label>
<input type="text" name="theme::default::auth::description"
value="@settings('theme::default::auth::description', 'Here you might want to explain how everything works. You can edit this in Admin -> configuration -> Theme Settings')"
class="form-control">
</div>
<div class="form-group col-6">
<label>{!! __('admin.auth_page_customers') !!}</label>
<input type="text" name="theme::default::auth::customers"
value="@settings('theme::default::auth::customers', 'Join over 3.2k members')" class="form-control">
</div>
{{-- <div class="form-group col-12">
<label class="form-label">Default Theme Layout</label>
<div class="row gutters-sm">
<div class="col-6 col-sm-4">
<label class="imagecheck mb-4">
<input name="default::layout" type="radio" value="stacked" class="imagecheck-input"
@if (Settings::get('default::layout', 'stacked') == 'stacked') checked="" @endif>
<figure class="imagecheck-figure">
<img src="https://tailwindui.com/img/category-thumbnails/application-ui/stacked.png" alt=""
class="imagecheck-image">
</figure>
</label>
</div>
<div class="col-6 col-sm-4">
<label class="imagecheck mb-4">
<input name="default::layout" type="radio" value="sidebar" class="imagecheck-input"
@if (Settings::get('default::layout', 'stacked') == 'sidebar') checked @endif>
<figure class="imagecheck-figure">
<img src="https://tailwindui.com/img/category-thumbnails/application-ui/sidebar.png" alt=""
class="imagecheck-image">
</figure>
</label>
</div>
<div class="col-6 col-sm-4">
<label class="imagecheck mb-4">
<input name="default::layout" type="radio" value="multi" class="imagecheck-input"
@if (Settings::get('default::layout', 'stacked') == 'multi') checked="" @endif>
<figure class="imagecheck-figure">
<img src="https://tailwindui.com/img/category-thumbnails/application-ui/multi-column.png" alt=""
class="imagecheck-image">
</figure>
</label>
</div>
</div>
</div> --}}
</div>
</div>
<div class="card-footer text-right">
<button type="submit" class="btn btn-primary">{!! __('admin.submit') !!}</button>
</div>
</form>