Files
ProxyPanel/resources/views/auth/reset.blade.php
2020-12-30 09:54:29 +08:00

34 lines
1.7 KiB
PHP

@extends('auth.layouts')
@section('title', trans('auth.resetPassword'))
@section('content')
<form action="{{url(Request::getRequestUri())}}" method="post" class="register-form">
@csrf
@if(Session::get('successMsg'))
<x-alert type="success" :message="Session::get('successMsg')"/>
@endif
@if($errors->any())
<x-alert type="danger" :message="$errors->all()"/>
@endif
@if ($verify->status > 0 && count($errors) <= 0 && empty(Session::get('successMsg')))
<x-alert type="danger" :message="trans('auth.overtime')"/>
@else
<div class="form-title">
{{trans('auth.resetPassword')}}
</div>
<div class="form-group form-material floating" data-plugin="formMaterial">
<input class="form-control" type="password" autocomplete="off" name="password" required/>
<label class="floating-label" for="password">{{trans('auth.new_password')}}</label>
</div>
<div class="form-group form-material floating" data-plugin="formMaterial">
<input class="form-control" type="password" autocomplete="off" name="password_confirmation" required/>
<label class="floating-label" for="password_confirmation">{{trans('auth.confirm_password')}}</label>
</div>
@endif
<a href="/login"
class="btn btn-danger btn-lg {{$verify->status=== 0? 'float-left': 'btn-block'}}">{{trans('auth.back')}}</a>
@if ($verify->status === 0)
<button type="submit" class="btn btn-primary btn-lg float-right">{{trans('auth.submit')}}</button>
@endif
</form>
@endsection