mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 11:39:06 +00:00
- Optimize Blade JavaScript code. - Refactored multiple admin controllers for improved validation, error handling, and query efficiency. - Added ProxyConfig trait to centralize proxy configuration options. - Updated NodeStatusDetection to use model relationships for heartbeat checks. - Improved category, label, and country management logic and error logging. - Added new Blade components for admin UI and updated language files and assets for better localization and frontend support. - Bug fixed & introduced more bug :)
33 lines
1.6 KiB
PHP
33 lines
1.6 KiB
PHP
@extends('auth.layouts')
|
|
@section('title', trans('common.active_item', ['attribute' => trans('common.account')]))
|
|
@section('content')
|
|
@if (Session::has('successMsg'))
|
|
<x-alert :message="Session::pull('successMsg')" />
|
|
@endif
|
|
@if ($errors->any())
|
|
<x-alert type="danger" :message="$errors->all()" />
|
|
@endif
|
|
<form action="{{ route('active') }}" method="post">
|
|
@csrf
|
|
@if (sysConfig('is_activate_account'))
|
|
<div class="form-title">
|
|
<span class="form-title">{{ trans('common.active_item', ['attribute' => trans('common.account')]) }}</span>
|
|
</div>
|
|
<div class="form-group form-material floating" data-plugin="formMaterial">
|
|
<input class="form-control" name="username" type="text" value="{{ Request::query('username') }}" required />
|
|
<label class="floating-label" for="username">
|
|
{{ sysConfig('username_type') === 'email' || sysConfig('username_type') === null ? ucfirst(trans('validation.attributes.email')) : trans('model.user.username') }}
|
|
</label>
|
|
</div>
|
|
@else
|
|
<x-alert type="danger" :message="trans('auth.active.error.disable')" />
|
|
@endif
|
|
<a class="btn btn-danger btn-lg {{ sysConfig('is_activate_account') ? 'float-left' : 'btn-block' }}" href="{{ route('login') }}">
|
|
{{ trans('common.back') }}
|
|
</a>
|
|
@if (sysConfig('is_activate_account'))
|
|
<button class="btn btn-lg btn-primary float-right" type="submit">{{ trans('auth.active.attribute') }}</button>
|
|
@endif
|
|
</form>
|
|
@endsection
|