fork download
  1. <div class="bg-base-200 py-10">
  2. <div class="container mx-auto flex justify-center">
  3. <div class="card bg-base-100 shadow-xl w-full max-w-md">
  4. <div class="card-body">
  5. <!-- زر العودة -->
  6. <div class="flex justify-between items-center mb-4">
  7. <h2 class="card-title text-2xl font-bold">Register Now</h2>
  8. <a href="{{ route('user.login') }}" class="btn btn-outline btn-primary">
  9. <span class="material-icons">arrow_back</span> Back to Login
  10. </a>
  11. </div>
  12.  
  13. <form method="POST" action="{{ route('user.register') }}" class="registerForm">
  14. @csrf
  15.  
  16. @if($reference)
  17. <div class="form-control mb-4">
  18. <label class="label">@lang('Referred By')</label>
  19. <input type="text" name="referBy" class="input input-bordered" value="{{ $reference }}" readonly>
  20. </div>
  21. @endif
  22.  
  23. <div class="form-control mb-4">
  24. <label class="label">E-mail</label>
  25. <input type="email" name="email" placeholder="@lang('Your e-mail')" class="input input-bordered checkUser" value="{{ old('email') }}">
  26. </div>
  27.  
  28. <div class="form-control mb-4">
  29. <label class="label" for="country">{{ __('Country') }}</label>
  30. <select name="country" id="country" class="input input-bordered">
  31. @foreach($countries as $key => $country)
  32. <option value="{{ $country->country }}"
  33. data-mobile_code="{{ $country->dial_code }}"
  34. data-code="{{ $key }}"
  35. {{ old('country') == $country->country ? 'selected' : '' }}>
  36. {{ __($country->country) }}
  37. </option>
  38. @endforeach
  39. </select>
  40. </div>
  41.  
  42. <div class="form-control mb-4">
  43. <label class="label">@lang('Username')</label>
  44. <input type="text" name="username" placeholder="@lang('Username')" class="input input-bordered checkUser" value="{{ old('username') }}">
  45. <small class="text-danger usernameExist"></small>
  46. </div>
  47.  
  48. <div class="form-control mb-4 hover-input-popup">
  49. <label class="label">Password</label>
  50. <input type="password" name="password" placeholder="@lang('Password')" class="input input-bordered">
  51. @if($general->secure_password)
  52. <div class="input-popup">
  53. <p class="error lower">@lang('1 small letter minimum')</p>
  54. <p class="error capital">@lang('1 capital letter minimum')</p>
  55. <p class="error number">@lang('1 number minimum')</p>
  56. <p class="error special">@lang('1 special character minimum')</p>
  57. <p class="error minimum">@lang('6 character password')</p>
  58. </div>
  59. @endif
  60. </div>
  61.  
  62. <div class="form-control mb-4">
  63. <label class="label">@lang('Re-type Password')</label>
  64. <input type="password" name="password_confirmation" placeholder="@lang('Re-type Password')" class="input input-bordered">
  65. </div>
  66.  
  67. <div class="form-control mb-4">
  68. @php echo recaptcha() @endphp
  69. </div>
  70.  
  71. @if($general->agree)
  72. <div class="form-control mb-4">
  73. @php $links = getContent('footer_link.element'); @endphp
  74. <label>
  75. <input type="checkbox" name="agree" required>
  76. @lang('I agree with ')
  77. @foreach($links as $link)
  78. <a href="{{ route('links',[$link->id, slug($link->data_values->title)]) }}" target="_blank">{{ __($link->data_values->title) }}</a>
  79. @if(!$loop->last), @endif
  80. @endforeach
  81. </label>
  82. </div>
  83. @endif
  84.  
  85. <button type="submit" class="btn btn-success btn-block">
  86. <span class="material-icons">person_add</span> Register Now
  87. </button>
  88. </form>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93.  
Success #stdin #stdout 0.04s 25880KB
stdin
Standard input is empty
stdout
<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>