2024-01-09 23:28:17 +11:00
|
|
|
<!-- $o=Password::class -->
|
2025-01-17 17:00:36 +11:00
|
|
|
<x-attribute.layout :edit="$edit ?? FALSE" :new="$new ?? FALSE" :o="$o">
|
2025-01-16 12:47:55 +11:00
|
|
|
@foreach($o->values as $value)
|
|
|
|
@if($edit)
|
2025-01-17 17:00:36 +11:00
|
|
|
<div class="input-group has-validation mb-3">
|
2025-01-18 16:42:03 +11:00
|
|
|
<x-form.select id="userpassword_hash_{{$loop->index}}" name="userpassword_hash[]" :value="$o->hash($value)->id()" :options="$helpers" allowclear="false" disabled="true"/>
|
2025-01-15 23:29:53 +11:00
|
|
|
<input type="password" @class(['form-control','is-invalid'=>($e=$errors->get($o->name_lc.'.'.$loop->index)),'mb-1','border-focus'=>$o->values->contains($value)]) name="{{ $o->name_lc }}[]" value="{{ md5($value) }}" @readonly(true)>
|
2023-04-02 22:07:15 +10:00
|
|
|
|
2024-01-09 23:28:17 +11:00
|
|
|
<div class="invalid-feedback pb-2">
|
|
|
|
@if($e)
|
|
|
|
{{ join('|',$e) }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@else
|
2025-01-18 16:42:03 +11:00
|
|
|
{{ (($x=$o->hash($value)) && ($x::id() !== '*clear*')) ? sprintf('{%s}',$x::shortid()) : '' }}{{ str_repeat('*',16) }}
|
2024-01-09 23:28:17 +11:00
|
|
|
@endif
|
|
|
|
@endforeach
|
2025-01-17 17:00:36 +11:00
|
|
|
</x-attribute.layout>
|
2024-01-09 17:44:50 +11:00
|
|
|
|
2025-01-17 17:00:36 +11:00
|
|
|
@if($edit)
|
|
|
|
<div class="row">
|
|
|
|
<div class="offset-1 col-4 p-2">
|
|
|
|
<span class="p-0 m-0">
|
|
|
|
<button type="button" class="btn btn-transition btn-sm btn-outline-dark mt-3" data-bs-toggle="modal" data-bs-target="#userpassword-check-modal"><i class="fas fa-user-check"></i> @lang('Check Password')</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|