|
@@ -2,118 +2,128 @@
|
|
|
|
|
|
@section('content')
|
|
|
<body class="hold-transition dark-mode register-page">
|
|
|
- <div class="register-box">
|
|
|
- <div class="card card-outline card-primary">
|
|
|
- <div class="card-header text-center">
|
|
|
- <a href="{{route('welcome')}}" class="h1"><b class="mr-1">{{config('app.name', 'Laravel')}}</b></a>
|
|
|
- </div>
|
|
|
- <div class="card-body">
|
|
|
- <p class="login-box-msg">{{__('Register a new membership')}}</p>
|
|
|
+ <div class="register-box">
|
|
|
+ <div class="card card-outline card-primary">
|
|
|
+ <div class="card-header text-center">
|
|
|
+ <a href="{{route('welcome')}}" class="h1"><b class="mr-1">{{config('app.name', 'Laravel')}}</b></a>
|
|
|
+ </div>
|
|
|
+ <div class="card-body">
|
|
|
+ @if(!config('SETTINGS::SYSTEM:CREATION_OF_NEW_USERS'))
|
|
|
+ <div class="alert alert-warning p-2 m-2">
|
|
|
+ <h5><i class="icon fas fa-exclamation-circle"></i> {{ __('Warning!') }}</h5>
|
|
|
+ {{ __('The system administrator has blocked the registration of new users') }}
|
|
|
+ </div>
|
|
|
+ <div class="text-center">
|
|
|
+ <a class="btn btn-primary" href="{{ route('login') }}">{{__('Back')}}</a>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <p class="login-box-msg">{{__('Register a new membership')}}</p>
|
|
|
|
|
|
- <form method="POST" action="{{ route('register') }}">
|
|
|
+ <form method="POST" action="{{ route('register') }}">
|
|
|
|
|
|
- @error('ip')
|
|
|
- <span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $message }}</strong></small>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
+ @error('ip')
|
|
|
+ <span class="text-danger" role="alert">
|
|
|
+ <small><strong>{{ $message }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
|
|
|
- @error('registered')
|
|
|
- <span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $message }}</strong></small>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
- @if( $errors->has('ptero_registration_error') )
|
|
|
- @foreach( $errors->get('ptero_registration_error') as $err )
|
|
|
+ @error('registered')
|
|
|
<span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $err }}</strong></small>
|
|
|
- </span>
|
|
|
- @endforeach
|
|
|
- @endif
|
|
|
+ <small><strong>{{ $message }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
+ @if( $errors->has('ptero_registration_error') )
|
|
|
+ @foreach( $errors->get('ptero_registration_error') as $err )
|
|
|
+ <span class="text-danger" role="alert">
|
|
|
+ <small><strong>{{ $err }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
|
|
|
- @csrf
|
|
|
- <div class="form-group">
|
|
|
- <div class="input-group">
|
|
|
- <input type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}"
|
|
|
- placeholder="{{__('Username')}}" required autocomplete="name" autofocus>
|
|
|
- <div class="input-group-append">
|
|
|
- <div class="input-group-text">
|
|
|
- <span class="fas fa-user"></span>
|
|
|
+ @csrf
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}"
|
|
|
+ placeholder="{{__('Username')}}" required autocomplete="name" autofocus>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <div class="input-group-text">
|
|
|
+ <span class="fas fa-user"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ @error('name')
|
|
|
+ <span class="text-danger" role="alert">
|
|
|
+ <small><strong>{{ $message }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
- </div>
|
|
|
- @error('name')
|
|
|
- <span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $message }}</strong></small>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <div class="input-group mb-3">
|
|
|
- <input type="email" name="email" class="form-control @error('email') is-invalid @enderror" placeholder="{{__('Email')}}"
|
|
|
- value="{{ old('email') }}" required autocomplete="email">
|
|
|
- <div class="input-group-append">
|
|
|
- <div class="input-group-text">
|
|
|
- <span class="fas fa-envelope"></span>
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ <input type="email" name="email" class="form-control @error('email') is-invalid @enderror" placeholder="{{__('Email')}}"
|
|
|
+ value="{{ old('email') }}" required autocomplete="email">
|
|
|
+ <div class="input-group-append">
|
|
|
+ <div class="input-group-text">
|
|
|
+ <span class="fas fa-envelope"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ @error('email')
|
|
|
+ <span class="text-danger" role="alert">
|
|
|
+ <small><strong>{{ $message }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
- </div>
|
|
|
- @error('email')
|
|
|
- <span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $message }}</strong></small>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
- </div>
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <div class="input-group mb-3">
|
|
|
- <input type="password" class="form-control @error('password') is-invalid @enderror" placeholder="{{__('Password')}}" name="password" required autocomplete="new-password">
|
|
|
- <div class="input-group-append">
|
|
|
- <div class="input-group-text">
|
|
|
- <span class="fas fa-lock"></span>
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ <input type="password" class="form-control @error('password') is-invalid @enderror" placeholder="{{__('Password')}}" name="password" required autocomplete="new-password">
|
|
|
+ <div class="input-group-append">
|
|
|
+ <div class="input-group-text">
|
|
|
+ <span class="fas fa-lock"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ @error('password')
|
|
|
+ <span class="text-danger" role="alert">
|
|
|
+ <small><strong>{{ $message }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
- </div>
|
|
|
- @error('password')
|
|
|
- <span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $message }}</strong></small>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
- </div>
|
|
|
|
|
|
- <div class="input-group mb-3">
|
|
|
- <input type="password" class="form-control" name="password_confirmation" placeholder="{{__('Retype password')}}" required autocomplete="new-password">
|
|
|
- <div class="input-group-append">
|
|
|
- <div class="input-group-text">
|
|
|
- <span class="fas fa-lock"></span>
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ <input type="password" class="form-control" name="password_confirmation" placeholder="{{__('Retype password')}}" required autocomplete="new-password">
|
|
|
+ <div class="input-group-append">
|
|
|
+ <div class="input-group-text">
|
|
|
+ <span class="fas fa-lock"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- @if(config('SETTINGS::REFERRAL::ENABLED') == "true")
|
|
|
- <div class="input-group mb-3">
|
|
|
- <input type="text" value="{{ \Request::get('ref') }}" class="form-control" name="referral_code" placeholder="{{__('Referral code')}} ({{__("optional")}})">
|
|
|
- <div class="input-group-append">
|
|
|
- <div class="input-group-text">
|
|
|
- <span class="fas fa-user-check"></span>
|
|
|
+ @if(config('SETTINGS::REFERRAL::ENABLED') == "true")
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ <input type="text" value="{{ \Request::get('ref') }}" class="form-control" name="referral_code" placeholder="{{__('Referral code')}} ({{__("optional")}})">
|
|
|
+ <div class="input-group-append">
|
|
|
+ <div class="input-group-text">
|
|
|
+ <span class="fas fa-user-check"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ @endif
|
|
|
+ @if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true')
|
|
|
+ <div class="input-group mb-3">
|
|
|
+ {!! htmlFormSnippet() !!}
|
|
|
+ @error('g-recaptcha-response')
|
|
|
+ <span class="text-danger" role="alert">
|
|
|
+ <small><strong>{{ $message }}</strong></small>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
</div>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if (config('SETTINGS::RECAPTCHA:ENABLED') == 'true')
|
|
|
- <div class="input-group mb-3">
|
|
|
- {!! htmlFormSnippet() !!}
|
|
|
- @error('g-recaptcha-response')
|
|
|
- <span class="text-danger" role="alert">
|
|
|
- <small><strong>{{ $message }}</strong></small>
|
|
|
- </span>
|
|
|
- @enderror
|
|
|
- </div>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
+
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-8">
|
|
|
|
|
|
- <div class="row">
|
|
|
- <div class="col-8">
|
|
|
{{-- <div class="icheck-primary">--}}
|
|
|
{{-- <input type="checkbox" id="agreeTerms" name="terms" value="agree">--}}
|
|
|
{{-- <label for="agreeTerms">--}}
|
|
@@ -147,4 +157,5 @@
|
|
|
</div>
|
|
|
<!-- /.register-box -->
|
|
|
</body>
|
|
|
+ @endif
|
|
|
@endsection
|