Files
ProxyPanel/resources/views/auth/activeUser.blade.php
2024-07-31 22:54:10 +08:00

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 type="success" :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