Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/settings/index.blade.php
7461 views
1
@extends('layouts.admin')
2
@include('partials/admin.settings.nav', ['activeTab' => 'basic'])
3
4
@section('title')
5
Settings
6
@endsection
7
8
@section('content-header')
9
<h1>Panel Settings<small>Configure Pterodactyl to your liking.</small></h1>
10
<ol class="breadcrumb">
11
<li><a href="{{ route('admin.index') }}">Admin</a></li>
12
<li class="active">Settings</li>
13
</ol>
14
@endsection
15
16
@section('content')
17
@yield('settings::nav')
18
<div class="row">
19
<div class="col-xs-12">
20
<div class="box">
21
<div class="box-header with-border">
22
<h3 class="box-title">Panel Settings</h3>
23
</div>
24
<form action="{{ route('admin.settings') }}" method="POST">
25
<div class="box-body">
26
<div class="row">
27
<div class="form-group col-md-4">
28
<label class="control-label">Company Name</label>
29
<div>
30
<input type="text" class="form-control" name="app:name" value="{{ old('app:name', config('app.name')) }}" />
31
<p class="text-muted"><small>This is the name that is used throughout the panel and in emails sent to clients.</small></p>
32
</div>
33
</div>
34
<div class="form-group col-md-4">
35
<label class="control-label">Require 2-Factor Authentication</label>
36
<div>
37
<div class="btn-group" data-toggle="buttons">
38
@php
39
$level = old('pterodactyl:auth:2fa_required', config('pterodactyl.auth.2fa_required'));
40
@endphp
41
<label class="btn btn-primary @if ($level == 0) active @endif">
42
<input type="radio" name="pterodactyl:auth:2fa_required" autocomplete="off" value="0" @if ($level == 0) checked @endif> Not Required
43
</label>
44
<label class="btn btn-primary @if ($level == 1) active @endif">
45
<input type="radio" name="pterodactyl:auth:2fa_required" autocomplete="off" value="1" @if ($level == 1) checked @endif> Admin Only
46
</label>
47
<label class="btn btn-primary @if ($level == 2) active @endif">
48
<input type="radio" name="pterodactyl:auth:2fa_required" autocomplete="off" value="2" @if ($level == 2) checked @endif> All Users
49
</label>
50
</div>
51
<p class="text-muted"><small>If enabled, any account falling into the selected grouping will be required to have 2-Factor authentication enabled to use the Panel.</small></p>
52
</div>
53
</div>
54
<div class="form-group col-md-4">
55
<label class="control-label">Default Language</label>
56
<div>
57
<select name="app:locale" class="form-control">
58
@foreach($languages as $key => $value)
59
<option value="{{ $key }}" @if(config('app.locale') === $key) selected @endif>{{ $value }}</option>
60
@endforeach
61
</select>
62
<p class="text-muted"><small>The default language to use when rendering UI components.</small></p>
63
</div>
64
</div>
65
</div>
66
</div>
67
<div class="box-footer">
68
{!! csrf_field() !!}
69
<button type="submit" name="_method" value="PATCH" class="btn btn-sm btn-primary pull-right">Save</button>
70
</div>
71
</form>
72
</div>
73
</div>
74
</div>
75
@endsection
76
77