nested if loop

This commit is contained in:
akemidx 2022-12-15 14:19:51 -05:00
parent b114ffd2c3
commit d870bc3b02

View file

@ -203,16 +203,18 @@
@endcan
@can('update', $user)
<div class="col-md-12" style="padding-top: 5px;">
@if (($user->activated == '1') && ($user->email != '') && ($user->ldap_import == '0'))
@if (($user->activated == '1') && ($user->ldap_import == '0'))
<div class="col-md-12" style="padding-top: 5px;">
@if($user->email != '')
<form action="{{ route('users.password',['userId'=> $user->id]) }}" method="POST">
{{ csrf_field() }}
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print">{{ trans('button.send_password_link') }}</button>
</form>
@elseif(($user->activated == '1') && ($user->ldap_import == '0'))
@else
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print" rel="noopener" disabled title="{{ trans('admin/users/message.user_has_no_email') }}">{{ trans('button.send_password_link') }}</button>
@endif
@endif
</div>
@endif
@endcan
@can('delete', $user)