<div class="bg-base-200 py-10"> <div class="container mx-auto flex justify-center"> <div class="card bg-base-100 shadow-xl w-full max-w-md"> <div class="card-body"> <!-- زر العودة --> <div class="flex justify-between items-center mb-4"> <h2 class="card-title text-2xl font-bold">Register Now</h2> <a href="{{ route('user.login') }}" class="btn btn-outline btn-primary"> <span class="material-icons">arrow_back</span> Back to Login </a> </div> <form method="POST" action="{{ route('user.register') }}" class="registerForm"> @csrf @if($reference) <div class="form-control mb-4"> <label class="label">@lang('Referred By')</label> <input type="text" name="referBy" class="input input-bordered" value="{{ $reference }}" readonly> </div> @endif <div class="form-control mb-4"> <label class="label">E-mail</label> <input type="email" name="email" placeholder="@lang('Your e-mail')" class="input input-bordered checkUser" value="{{ old('email') }}"> </div> <div class="form-control mb-4"> <label class="label" for="country">{{ __('Country') }}</label> <select name="country" id="country" class="input input-bordered"> @foreach($countries as $key => $country) <option value="{{ $country->country }}" data-mobile_code="{{ $country->dial_code }}" data-code="{{ $key }}" {{ old('country') == $country->country ? 'selected' : '' }}> {{ __($country->country) }} </option> @endforeach </select> </div> <div class="form-control mb-4"> <label class="label">@lang('Username')</label> <input type="text" name="username" placeholder="@lang('Username')" class="input input-bordered checkUser" value="{{ old('username') }}"> <small class="text-danger usernameExist"></small> </div> <div class="form-control mb-4 hover-input-popup"> <label class="label">Password</label> <input type="password" name="password" placeholder="@lang('Password')" class="input input-bordered"> @if($general->secure_password) <div class="input-popup"> <p class="error lower">@lang('1 small letter minimum')</p> <p class="error capital">@lang('1 capital letter minimum')</p> <p class="error number">@lang('1 number minimum')</p> <p class="error special">@lang('1 special character minimum')</p> <p class="error minimum">@lang('6 character password')</p> </div> @endif </div> <div class="form-control mb-4"> <label class="label">@lang('Re-type Password')</label> <input type="password" name="password_confirmation" placeholder="@lang('Re-type Password')" class="input input-bordered"> </div> <div class="form-control mb-4"> @php echo recaptcha() @endphp </div> @if($general->agree) <div class="form-control mb-4"> @php $links = getContent('footer_link.element'); @endphp <label> <input type="checkbox" name="agree" required> @lang('I agree with ') @foreach($links as $link) <a href="{{ route('links',[$link->id, slug($link->data_values->title)]) }}" target="_blank">{{ __($link->data_values->title) }}</a> @if(!$loop->last), @endif @endforeach </label> </div> @endif <button type="submit" class="btn btn-success btn-block"> <span class="material-icons">person_add</span> Register Now </button> </form> </div> </div> </div> </div>
Standard input is empty
<div class="bg-base-200 py-10"> <div class="container mx-auto flex justify-center"> <div class="card bg-base-100 shadow-xl w-full max-w-md"> <div class="card-body"> <!-- زر العودة --> <div class="flex justify-between items-center mb-4"> <h2 class="card-title text-2xl font-bold">Register Now</h2> <a href="{{ route('user.login') }}" class="btn btn-outline btn-primary"> <span class="material-icons">arrow_back</span> Back to Login </a> </div> <form method="POST" action="{{ route('user.register') }}" class="registerForm"> @csrf @if($reference) <div class="form-control mb-4"> <label class="label">@lang('Referred By')</label> <input type="text" name="referBy" class="input input-bordered" value="{{ $reference }}" readonly> </div> @endif <div class="form-control mb-4"> <label class="label">E-mail</label> <input type="email" name="email" placeholder="@lang('Your e-mail')" class="input input-bordered checkUser" value="{{ old('email') }}"> </div> <div class="form-control mb-4"> <label class="label" for="country">{{ __('Country') }}</label> <select name="country" id="country" class="input input-bordered"> @foreach($countries as $key => $country) <option value="{{ $country->country }}" data-mobile_code="{{ $country->dial_code }}" data-code="{{ $key }}" {{ old('country') == $country->country ? 'selected' : '' }}> {{ __($country->country) }} </option> @endforeach </select> </div> <div class="form-control mb-4"> <label class="label">@lang('Username')</label> <input type="text" name="username" placeholder="@lang('Username')" class="input input-bordered checkUser" value="{{ old('username') }}"> <small class="text-danger usernameExist"></small> </div> <div class="form-control mb-4 hover-input-popup"> <label class="label">Password</label> <input type="password" name="password" placeholder="@lang('Password')" class="input input-bordered"> @if($general->secure_password) <div class="input-popup"> <p class="error lower">@lang('1 small letter minimum')</p> <p class="error capital">@lang('1 capital letter minimum')</p> <p class="error number">@lang('1 number minimum')</p> <p class="error special">@lang('1 special character minimum')</p> <p class="error minimum">@lang('6 character password')</p> </div> @endif </div> <div class="form-control mb-4"> <label class="label">@lang('Re-type Password')</label> <input type="password" name="password_confirmation" placeholder="@lang('Re-type Password')" class="input input-bordered"> </div> <div class="form-control mb-4"> @php echo recaptcha() @endphp </div> @if($general->agree) <div class="form-control mb-4"> @php $links = getContent('footer_link.element'); @endphp <label> <input type="checkbox" name="agree" required> @lang('I agree with ') @foreach($links as $link) <a href="{{ route('links',[$link->id, slug($link->data_values->title)]) }}" target="_blank">{{ __($link->data_values->title) }}</a> @if(!$loop->last), @endif @endforeach </label> </div> @endif <button type="submit" class="btn btn-success btn-block"> <span class="material-icons">person_add</span> Register Now </button> </form> </div> </div> </div> </div>