|
61 | 61 | <div class="col-sm-12">
|
62 | 62 | <hr>
|
63 | 63 | </div>
|
64 |
| -@if(isset($user) && auth()->user()->canChangePasswordOn($user)) |
65 |
| -<div class="col-sm-3"> |
66 |
| - <label for="name" class="base-input-label">@lang('Security')</label> |
67 |
| -</div> |
68 | 64 |
|
69 |
| -<div class="col-sm-9"> |
70 |
| - <div class="form-group col-sm-8"> |
71 |
| - <label for="password" class="control-label thin-weight">@lang('Password')</label> |
72 |
| - <input type="password" name="password" class="form-control" value=""> |
| 65 | +@if(isset($user)) |
| 66 | + @if(auth()->user()->canChangePasswordOn($user)) |
| 67 | + <div class="col-sm-3"> |
| 68 | + <label for="name" class="base-input-label">@lang('Security')</label> |
73 | 69 | </div>
|
74 |
| - <div class="form-group col-sm-8"> |
75 |
| - <label for="password_confirmation" class="control-label thin-weight">@lang('Confirm password')</label> |
76 |
| - <input type="password" name="password_confirmation" class="form-control" value=""> |
| 70 | + |
| 71 | + <div class="col-sm-9"> |
| 72 | + <div class="form-group col-sm-8"> |
| 73 | + <label for="password" class="control-label thin-weight">@lang('Password')</label> |
| 74 | + <input type="password" name="password" class="form-control" value=""> |
| 75 | + </div> |
| 76 | + <div class="form-group col-sm-8"> |
| 77 | + <label for="password_confirmation" class="control-label thin-weight">@lang('Confirm password')</label> |
| 78 | + <input type="password" name="password_confirmation" class="form-control" value=""> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + @endif |
| 82 | +@else |
| 83 | +<div class="col-sm-3"> |
| 84 | + <label for="name" class="base-input-label">@lang('Security')</label> |
| 85 | + </div> |
| 86 | + |
| 87 | + <div class="col-sm-9"> |
| 88 | + <div class="form-group col-sm-8"> |
| 89 | + <label for="password" class="control-label thin-weight">@lang('Password')</label> |
| 90 | + <input type="password" name="password" class="form-control" value=""> |
| 91 | + </div> |
| 92 | + <div class="form-group col-sm-8"> |
| 93 | + <label for="password_confirmation" class="control-label thin-weight">@lang('Confirm password')</label> |
| 94 | + <input type="password" name="password_confirmation" class="form-control" value=""> |
| 95 | + </div> |
77 | 96 | </div>
|
78 |
| -</div> |
79 | 97 | @endif
|
80 | 98 | <div class="col-sm-12">
|
81 | 99 | <hr>
|
|
84 | 102 | <label for="name" class="base-input-label">@lang('Access')</label>
|
85 | 103 | </div>
|
86 | 104 | <div class="col-sm-9">
|
87 |
| -@if(isset($user) && auth()->user()->canChangeRole()) |
| 105 | +@if(auth()->user()->canChangeRole()) |
88 | 106 | <div class="form-group col-sm-8">
|
89 | 107 | <label for="roles" class="control-label thin-weight">@lang('Assign role')</label>
|
90 | 108 | <select name="roles" id="" class="form-control">
|
|
0 commit comments