Path: blob/1.0-develop/resources/views/admin/settings/index.blade.php
7461 views
@extends('layouts.admin')1@include('partials/admin.settings.nav', ['activeTab' => 'basic'])23@section('title')4Settings5@endsection67@section('content-header')8<h1>Panel Settings<small>Configure Pterodactyl to your liking.</small></h1>9<ol class="breadcrumb">10<li><a href="{{ route('admin.index') }}">Admin</a></li>11<li class="active">Settings</li>12</ol>13@endsection1415@section('content')16@yield('settings::nav')17<div class="row">18<div class="col-xs-12">19<div class="box">20<div class="box-header with-border">21<h3 class="box-title">Panel Settings</h3>22</div>23<form action="{{ route('admin.settings') }}" method="POST">24<div class="box-body">25<div class="row">26<div class="form-group col-md-4">27<label class="control-label">Company Name</label>28<div>29<input type="text" class="form-control" name="app:name" value="{{ old('app:name', config('app.name')) }}" />30<p class="text-muted"><small>This is the name that is used throughout the panel and in emails sent to clients.</small></p>31</div>32</div>33<div class="form-group col-md-4">34<label class="control-label">Require 2-Factor Authentication</label>35<div>36<div class="btn-group" data-toggle="buttons">37@php38$level = old('pterodactyl:auth:2fa_required', config('pterodactyl.auth.2fa_required'));39@endphp40<label class="btn btn-primary @if ($level == 0) active @endif">41<input type="radio" name="pterodactyl:auth:2fa_required" autocomplete="off" value="0" @if ($level == 0) checked @endif> Not Required42</label>43<label class="btn btn-primary @if ($level == 1) active @endif">44<input type="radio" name="pterodactyl:auth:2fa_required" autocomplete="off" value="1" @if ($level == 1) checked @endif> Admin Only45</label>46<label class="btn btn-primary @if ($level == 2) active @endif">47<input type="radio" name="pterodactyl:auth:2fa_required" autocomplete="off" value="2" @if ($level == 2) checked @endif> All Users48</label>49</div>50<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>51</div>52</div>53<div class="form-group col-md-4">54<label class="control-label">Default Language</label>55<div>56<select name="app:locale" class="form-control">57@foreach($languages as $key => $value)58<option value="{{ $key }}" @if(config('app.locale') === $key) selected @endif>{{ $value }}</option>59@endforeach60</select>61<p class="text-muted"><small>The default language to use when rendering UI components.</small></p>62</div>63</div>64</div>65</div>66<div class="box-footer">67{!! csrf_field() !!}68<button type="submit" name="_method" value="PATCH" class="btn btn-sm btn-primary pull-right">Save</button>69</div>70</form>71</div>72</div>73</div>74@endsection757677