register.blade.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <x-guest-layout>
  2. <form method="POST" action="{{ route('register') }}">
  3. @csrf
  4. <!-- Name -->
  5. <div>
  6. <x-input-label for="name" :value="__('Name')" />
  7. <x-text-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
  8. <x-input-error :messages="$errors->get('name')" class="mt-2" />
  9. </div>
  10. <!-- Email Address -->
  11. <div class="mt-4">
  12. <x-input-label for="email" :value="__('Email')" />
  13. <x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="username" />
  14. <x-input-error :messages="$errors->get('email')" class="mt-2" />
  15. </div>
  16. <!-- Password -->
  17. <div class="mt-4">
  18. <x-input-label for="password" :value="__('Password')" />
  19. <x-text-input id="password" class="block mt-1 w-full"
  20. type="password"
  21. name="password"
  22. required autocomplete="new-password" />
  23. <x-input-error :messages="$errors->get('password')" class="mt-2" />
  24. </div>
  25. <!-- Confirm Password -->
  26. <div class="mt-4">
  27. <x-input-label for="password_confirmation" :value="__('Confirm Password')" />
  28. <x-text-input id="password_confirmation" class="block mt-1 w-full"
  29. type="password"
  30. name="password_confirmation" required autocomplete="new-password" />
  31. <x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" />
  32. </div>
  33. <div class="flex items-center justify-end mt-4">
  34. <a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800" href="{{ route('login') }}">
  35. {{ __('Already registered?') }}
  36. </a>
  37. <x-primary-button class="ms-4">
  38. {{ __('Register') }}
  39. </x-primary-button>
  40. </div>
  41. </form>
  42. </x-guest-layout>