register.blade.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <x-guest-layout>
  2. <x-auth-card>
  3. <x-slot name="logo">
  4. <a href="/">
  5. <x-application-logo class="w-20 h-20 fill-current text-gray-500" />
  6. </a>
  7. </x-slot>
  8. <!-- Validation Errors -->
  9. <x-auth-validation-errors class="mb-4" :errors="$errors" />
  10. <form method="POST" action="{{ route('register') }}">
  11. @csrf
  12. <!-- Name -->
  13. <div>
  14. <x-label for="name" :value="__('Name')" />
  15. <x-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus />
  16. </div>
  17. <!-- Email Address -->
  18. <div class="mt-4">
  19. <x-label for="email" :value="__('Email')" />
  20. <x-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required />
  21. </div>
  22. <!-- Password -->
  23. <div class="mt-4">
  24. <x-label for="password" :value="__('Password')" />
  25. <x-input id="password" class="block mt-1 w-full"
  26. type="password"
  27. name="password"
  28. required autocomplete="new-password" />
  29. </div>
  30. <!-- Confirm Password -->
  31. <div class="mt-4">
  32. <x-label for="password_confirmation" :value="__('Confirm Password')" />
  33. <x-input id="password_confirmation" class="block mt-1 w-full"
  34. type="password"
  35. name="password_confirmation" required />
  36. </div>
  37. <div class="flex items-center justify-end mt-4">
  38. <a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('login') }}">
  39. {{ __('Already registered?') }}
  40. </a>
  41. <x-button class="ml-4">
  42. {{ __('Register') }}
  43. </x-button>
  44. </div>
  45. </form>
  46. </x-auth-card>
  47. </x-guest-layout>