-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadmin-settings.blade.php
39 lines (34 loc) · 1.99 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
<form action="{{ route('admin.settings.store') }}" method="POST">
@csrf
<div class="row">
<div class="form-group col-6">
<label for="language">{!! __('client.portal_redirect') !!}</label>
<select class="form-control select2 select2-hidden-accessible" name="portal::is_redirect" tabindex="-1" aria-hidden="true">
<option value="0" @if (settings('portal::is_redirect', false)) selected @endif>{{ __('client.false') }}</option>
<option value="1" @if (settings('portal::is_redirect', false)) selected @endif>{{ __('client.true') }}</option>
</select>
</div>
<div class="form-group col-6">
<label>{!! __('client.portal_redirect_url') !!}</label>
<input type="text" name="portal::redirect_url" value="@settings('portal::redirect_url', '/dashboard')" class="form-control">
</div>
<div class="form-group col-6">
<label>{!! __('client.portal_header_image') !!}</label>
<input type="text" name="portal::default::header_image"
value="@settings('portal::default::header_image', 'https://www.freepnglogos.com/uploads/minecraft-png/download-minecraft-characters-png-png-image-pngimg-29.png')"
class="form-control">
</div>
<div class="form-group col-6">
<label for="category">{!! __('client.default_category') !!}</label>
<select class="form-control select2 select2-hidden-accessible" name="portal::default_category" tabindex="-1"
aria-hidden="true">
@foreach (Categories::get() as $category)
<option value="{{ $category->link }}" @if (settings('portal::default_category') == $category->link) selected @endif>
{{ $category->name }}
</option>
@endforeach
</select>
</div>
</div>
<button type="submit" class="btn btn-primary">{!! __('client.submit') !!}</button>
</form>