|
| 1 | +{{-- |
| 2 | + Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> |
| 3 | +
|
| 4 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | + of this software and associated documentation files (the "Software"), to deal |
| 6 | + in the Software without restriction, including without limitation the rights |
| 7 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 8 | + copies of the Software, and to permit persons to whom the Software is |
| 9 | + furnished to do so, subject to the following conditions: |
| 10 | +
|
| 11 | + The above copyright notice and this permission notice shall be included in all |
| 12 | + copies or substantial portions of the Software. |
| 13 | +
|
| 14 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 20 | + SOFTWARE. |
| 21 | +--}} |
| 22 | +@extends('layouts.admin') |
| 23 | + |
| 24 | +@section('title') |
| 25 | + Administration |
| 26 | +@endsection |
| 27 | + |
| 28 | +@section('content') |
| 29 | +<div class="col-md-12"> |
| 30 | + <ul class="breadcrumb"> |
| 31 | + <li><a href="/admin">Admin Control</a></li> |
| 32 | + <li class="active">Settings</li> |
| 33 | + </ul> |
| 34 | + <h3 class="nopad">Panel Settings</h3><hr /> |
| 35 | + <form action="{{ route('admin.settings') }}" method="POST"> |
| 36 | + <div class="row"> |
| 37 | + <div class="form-group col-md-6"> |
| 38 | + <label class="control-label">Company Name:</label> |
| 39 | + <div> |
| 40 | + <input type="text" class="form-control" name="company" value="{{ old('company', Settings::get('company')) }}" /> |
| 41 | + <p class="text-muted"><small>This is the name that is used throughout the panel and in emails sent to clients.</small></p> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + <div class="form-group col-md-6"> |
| 45 | + <label class="control-label">Default Language:</label> |
| 46 | + <div> |
| 47 | + <select name="default_language" class="form-control"> |
| 48 | + <option value="de" @if(Settings::get('default_language') === 'de')selected @endif>Deutsch</option> |
| 49 | + <option value="en" @if(Settings::get('default_language') === 'en')selected @endif>English</option> |
| 50 | + <option value="es" @if(Settings::get('default_language') === 'es')selected @endif>Español</option> |
| 51 | + <option value="fr" @if(Settings::get('default_language') === 'fr')selected @endif>Français</option> |
| 52 | + <option value="it" @if(Settings::get('default_language') === 'it')selected @endif>Italiano</option> |
| 53 | + <option value="pl" @if(Settings::get('default_language') === 'pl')selected @endif>Polski</option> |
| 54 | + <option value="pt" @if(Settings::get('default_language') === 'pt')selected @endif>Português</option> |
| 55 | + <option value="ru" @if(Settings::get('default_language') === 'ru')selected @endif>русский</option> |
| 56 | + <option value="se" @if(Settings::get('default_language') === 'se')selected @endif>Svenska</option> |
| 57 | + <option value="zh" @if(Settings::get('default_language') === 'zh')selected @endif>中国的的</option> |
| 58 | + </select> |
| 59 | + <p class="text-muted"><small>This is the default language that all clients will use unless they manually change it.</small></p> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + <div class="row"> |
| 64 | + <div class="col-md-12"> |
| 65 | + <div class="alert alert-info">In order to modify your SMTP settings for sending mail you will need to edit the <code>.env</code> file in this project's root folder.</div> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + <div class="row"> |
| 69 | + <div class="form-group col-md-6"> |
| 70 | + <label class="control-label">Send Emails From:</label> |
| 71 | + <div> |
| 72 | + <input type="text" class="form-control" name="email_from" value="{{ old('email_from', Settings::get('email_from', env('MAIL_FROM', 'you@example.com'))) }}" /> |
| 73 | + <p class="text-muted"><small>The email address that panel emails will be sent from. Note that some SMTP services require this to match for a given API key.</small></p> |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + <div class="form-group col-md-6"> |
| 77 | + <label class="control-label">Email Sender Name:</label> |
| 78 | + <div> |
| 79 | + <input type="text" class="form-control" name="email_sender_name" value="{{ old('email_sender_name', Settings::get('email_sender_name', env('MAIL_FROM_NAME', 'Pterodactyl Panel'))) }}" /> |
| 80 | + <p class="text-muted"><small>The name that emails will appear to come from.</small></p> |
| 81 | + </div> |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + <div class="well well-sm"> |
| 85 | + <div class="row"> |
| 86 | + <div class="col-md-12"> |
| 87 | + {!! csrf_field() !!} |
| 88 | + <input type="submit" class="btn btn-sm btn-primary" value="Modify Settings"> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + </form> |
| 93 | +</div> |
| 94 | +<script> |
| 95 | +$(document).ready(function () { |
| 96 | + $('#sidebar_links').find("a[href='/admin/settings']").addClass('active'); |
| 97 | +}); |
| 98 | +</script> |
| 99 | +@endsection |
0 commit comments