72 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <x-layouts.auth>
 | |
|     <x-slot name="title">
 | |
|         {{ trans('auth.reset_password') }}
 | |
|     </x-slot>
 | |
| 
 | |
|     <x-slot name="content">
 | |
|         <div>
 | |
|             <img src="{{ asset('public/img/akaunting-logo-green.svg') }}" class="w-16" alt="Akaunting" />
 | |
| 
 | |
|             <h1 class="text-lg my-3">
 | |
|                 {{ trans('auth.reset_password') }}
 | |
|             </h1>
 | |
|         </div>
 | |
| 
 | |
|         <div :class="(form.response.success) ? 'w-full bg-green-100 text-green-600 p-3 rounded-sm font-semibold text-xs' : 'hidden'"
 | |
|             v-if="form.response.success"
 | |
|             v-html="form.response.message"
 | |
|             v-cloak
 | |
|         ></div>
 | |
| 
 | |
|         <div :class="(form.response.error) ? 'w-full bg-red-100 text-red-600 p-3 rounded-sm font-semibold text-xs' : 'hidden'"
 | |
|             v-if="form.response.error"
 | |
|             v-html="form.response.message"
 | |
|             v-cloak
 | |
|         ></div>
 | |
| 
 | |
|         <x-form id="auth" route="reset.store">
 | |
|             <div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 items-center my-3.5 lg:h-64">
 | |
|                 <x-form.input.hidden name="token" value="{{ $token }}" />
 | |
| 
 | |
|                 <x-form.group.email
 | |
|                     name="email"
 | |
|                     :value="$email"
 | |
|                     :disabled="! is_null($email) ? true : false"
 | |
|                     label="{{ trans('general.email') }}"
 | |
|                     form-group-class="sm:col-span-6"
 | |
|                     input-group-class="input-group-alternative"
 | |
|                 />
 | |
| 
 | |
|                 <x-form.group.password
 | |
|                     name="password"
 | |
|                     label="{{ trans('auth.password.new') }}"
 | |
|                     placeholder="{{ trans('auth.password.new') }}"
 | |
|                     form-group-class="sm:col-span-6"
 | |
|                     input-group-class="input-group-alternative"
 | |
|                 />
 | |
| 
 | |
|                 <x-form.group.password
 | |
|                     name="password_confirmation"
 | |
|                     label="{{ trans('auth.password.new_confirm') }}"
 | |
|                     form-group-class="sm:col-span-6"
 | |
|                     input-group-class="input-group-alternative"
 | |
|                 />
 | |
| 
 | |
|                 <x-button
 | |
|                     type="submit"
 | |
|                     ::disabled="form.loading"
 | |
|                     class="relative flex items-center justify-center bg-green hover:bg-green-700 text-white px-6 py-1.5 text-base rounded-lg disabled:bg-green-100 sm:col-span-6"
 | |
|                     override="class"
 | |
|                     data-loading-text="{{ trans('general.loading') }}"
 | |
|                 >
 | |
|                     <x-button.loading>
 | |
|                         {{ trans('auth.reset') }}
 | |
|                     </x-button.loading>
 | |
|                 </x-button>
 | |
|             </div>
 | |
|         </x-form>
 | |
|     </x-slot>
 | |
| 
 | |
|     <x-script folder="auth" file="common" />
 | |
| </x-layouts.auth>
 |