|
129 | 129 |
|
130 | 130 |
|
131 | 131 | @can('update', $user) |
| 132 | + <li class="dropdown pull-right"> |
| 133 | + <a class="dropdown-toggle" data-toggle="dropdown" href="#"> |
| 134 | + <span class="hidden-xs"><i class="fas fa-cog" aria-hidden="true"></i></span> |
| 135 | + <span class="hidden-lg hidden-md hidden-xl"><i class="fas fa-cog fa-2x" aria-hidden="true"></i></span> |
| 136 | + |
| 137 | + <span class="hidden-xs hidden-sm"> |
| 138 | + {{ trans('button.actions') }} |
| 139 | + </span> |
| 140 | + <span class="caret"></span> |
| 141 | + </a> |
| 142 | + <ul class="dropdown-menu"> |
| 143 | + <li><a href="{{ route('users.edit', $user->id) }}">{{ trans('admin/users/general.edit') }}</a></li> |
| 144 | + <li><a href="{{ route('users.clone.show', $user->id) }}">{{ trans('admin/users/general.clone') }}</a></li> |
| 145 | + @if ((Auth::user()->id !== $user->id) && (!config('app.lock_passwords')) && ($user->deleted_at=='') && ($user->isDeletable())) |
| 146 | + <li><a href="{{ route('users.destroy', $user->id) }}">{{ trans('button.delete') }}</a></li> |
| 147 | + @endif |
| 148 | + </ul> |
| 149 | + </li> |
| 150 | + @endcan |
| 151 | + |
| 152 | + @can('update', \App\Models\User::class) |
132 | 153 | <li class="pull-right"> |
133 | 154 | <a href="#" data-toggle="modal" data-target="#uploadFileModal"> |
134 | 155 | <span class="hidden-xs"><x-icon type="paperclip" /></span> |
|
143 | 164 | <div class="tab-pane active" id="details"> |
144 | 165 | <div class="row"> |
145 | 166 |
|
| 167 | + @if ($user->deleted_at!='') |
| 168 | + <div class="col-md-12"> |
| 169 | + <div class="callout callout-warning"> |
| 170 | + <i class="icon fas fa-exclamation-triangle"></i> |
| 171 | + {{ trans('admin/users/message.user_deleted_warning') }} |
| 172 | + </div> |
| 173 | + </div> |
| 174 | + @endif |
| 175 | + |
146 | 176 | <div class="info-stack-container"> |
147 | 177 | <!-- Start button column --> |
148 | 178 | <div class="col-md-3 col-xs-12 col-sm-push-9 info-stack"> |
149 | 179 |
|
150 | | - |
151 | 180 |
|
152 | 181 | <div class="col-md-12 text-center"> |
153 | 182 |
|
|
156 | 185 | <div class="{{ ($user->isSuperUser()) ? 'text-danger' : ' text-orange'}}" style="font-weight: bold">{{ ($user->isSuperUser()) ? strtolower(trans('general.superuser')) : strtolower(trans('general.admin_user')) }}</div> |
157 | 186 | @endif |
158 | 187 |
|
159 | | - |
| 188 | + |
160 | 189 | </div> |
161 | 190 | <div class="col-md-12 text-center"> |
162 | | - <img src="{{ $user->present()->gravatar() }}" class=" img-thumbnail hidden-print" style="margin-bottom: 20px;" alt="{{ $user->present()->fullName() }}"> |
| 191 | + <img src="{{ $user->present()->gravatar() }}" class=" img-thumbnail hidden-print" style="margin-bottom: 20px;" alt="{{ $user->present()->fullName() }}"> |
163 | 192 | </div> |
164 | 193 |
|
165 | 194 | @can('update', $user) |
|
173 | 202 |
|
174 | 203 | @can('view', $user) |
175 | 204 | <div class="col-md-12" style="padding-top: 5px;"> |
| 205 | + |
176 | 206 | @if($user->allAssignedCount() != '0') |
177 | 207 | <a href="{{ route('users.print', $user->id) }}" style="width: 100%;" class="btn btn-sm btn-primary btn-social hidden-print" target="_blank" rel="noopener"> |
178 | 208 | <x-icon type="print" /> |
|
283 | 313 | @endcan |
284 | 314 | <br><br> |
285 | 315 | </div> |
286 | | - |
| 316 | + |
287 | 317 | <!-- End button column --> |
288 | 318 |
|
289 | 319 | <div class="col-md-9 col-xs-12 col-sm-pull-3 info-stack"> |
290 | 320 |
|
291 | 321 | <div class="row-new-striped"> |
292 | | - |
| 322 | + |
293 | 323 | <div class="row"> |
294 | 324 | <!-- name --> |
| 325 | + |
295 | 326 |
|
296 | 327 | <div class="col-md-3"> |
297 | 328 | {{ trans('admin/users/table.name') }} |
|
302 | 333 |
|
303 | 334 | </div> |
304 | 335 |
|
305 | | - |
| 336 | + |
306 | 337 |
|
307 | 338 | <!-- company --> |
308 | 339 | @if (!is_null($user->company)) |
|
322 | 353 | </div> |
323 | 354 |
|
324 | 355 | </div> |
325 | | - |
| 356 | + |
326 | 357 | @endif |
327 | 358 |
|
328 | 359 | <!-- username --> |
|
351 | 382 | {{ trans('general.address') }} |
352 | 383 | </div> |
353 | 384 | <div class="col-md-9"> |
354 | | - |
| 385 | + |
355 | 386 | @if ($user->address) |
356 | 387 | {{ $user->address }} <br> |
357 | 388 | @endif |
|
443 | 474 | <div class="col-md-9"> |
444 | 475 | {{ $user->employee_num }} |
445 | 476 | </div> |
446 | | - |
| 477 | + |
447 | 478 | </div> |
448 | 479 | @endif |
449 | 480 |
|
|
464 | 495 |
|
465 | 496 | @endif |
466 | 497 |
|
467 | | - |
| 498 | + |
468 | 499 | @if ($user->email) |
469 | 500 | <!-- email --> |
470 | 501 | <div class="row"> |
|
529 | 560 |
|
530 | 561 |
|
531 | 562 | @if ($user->department) |
532 | | - <!-- empty --> |
533 | | - <div class="row"> |
534 | | - <div class="col-md-3"> |
535 | | - {{ trans('general.department') }} |
536 | | - </div> |
537 | | - <div class="col-md-9"> |
538 | | - <a href="{{ route('departments.show', $user->department) }}"> |
539 | | - {{ $user->department->name }} |
540 | | - </a> |
| 563 | + <!-- empty --> |
| 564 | + <div class="row"> |
| 565 | + <div class="col-md-3"> |
| 566 | + {{ trans('general.department') }} |
| 567 | + </div> |
| 568 | + <div class="col-md-9"> |
| 569 | + <a href="{{ route('departments.show', $user->department) }}"> |
| 570 | + {{ $user->department->name }} |
| 571 | + </a> |
| 572 | + </div> |
541 | 573 | </div> |
542 | | - </div> |
| 574 | + @if($user->department->manager) |
| 575 | + <div class="row"> |
| 576 | + <div class="col-md-3"> |
| 577 | + {{ trans('admin/users/general.department_manager') }} |
| 578 | + </div> |
| 579 | + <div class="col-md-9"> |
| 580 | + <a href="{{ route('users.show', $user->department->manager) }}"> |
| 581 | + {{ $user->department->manager->full_name }} |
| 582 | + </a> |
| 583 | + </div> |
| 584 | + </div> |
| 585 | + @endif |
543 | 586 | @endif |
544 | 587 |
|
545 | 588 | @if ($user->created_at) |
|
579 | 622 | {{ trans('general.no') }} |
580 | 623 | @endif |
581 | 624 | </div> |
582 | | - </div> |
583 | | - |
| 625 | + </div> |
| 626 | + |
584 | 627 | <!-- remote --> |
585 | 628 | <div class="row"> |
586 | 629 | <div class="col-md-3"> |
|
655 | 698 | {{ trans('admin/users/general.two_factor_active') }} |
656 | 699 | </div> |
657 | 700 | <div class="col-md-9"> |
| 701 | + |
658 | 702 | @if ($user->two_factor_active()) |
659 | 703 | <x-icon type="checkmark" class="fa-fw text-success" /> |
660 | 704 | {{ trans('general.yes') }} |
661 | 705 | @else |
662 | 706 | <x-icon type="x" class="fa-fw text-danger" /> |
663 | 707 | {{ trans('general.no') }} |
664 | 708 | @endif |
665 | | - |
| 709 | + |
666 | 710 | </div> |
667 | 711 | </div> |
668 | | - |
| 712 | + |
669 | 713 | <!-- 2FA enrolled --> |
670 | 714 | <div class="row two_factor_resetrow"> |
671 | 715 | <div class="col-md-3"> |
|
682 | 726 |
|
683 | 727 | </div> |
684 | 728 | </div> |
685 | | - |
| 729 | + |
686 | 730 | @if ((Auth::user()->isSuperUser()) && ($user->two_factor_active_and_enrolled()) && ($snipeSettings->two_factor_enabled!='0') && ($snipeSettings->two_factor_enabled!='')) |
687 | | - |
| 731 | + |
688 | 732 | <!-- 2FA reset --> |
689 | 733 | <div class="row"> |
690 | 734 | <div class="col-md-3"> |
691 | 735 |
|
692 | 736 | </div> |
693 | 737 | <div class="col-md-9"> |
694 | | - |
| 738 | + |
695 | 739 | <a class="btn btn-default btn-sm" id="two_factor_reset" style="margin-right: 10px; margin-top: 10px;"> |
696 | 740 | {{ trans('admin/settings/general.two_factor_reset') }} |
697 | 741 | </a> |
|
702 | 746 | <span id="two_factor_resetstatus"> |
703 | 747 | </span> |
704 | 748 | <br> |
| 749 | + |
705 | 750 | <p class="help-block" style="line-height: 1.6;"> |
706 | 751 | {{ trans('admin/settings/general.two_factor_reset_help') }} |
707 | 752 | </p> |
708 | 753 |
|
709 | 754 |
|
710 | 755 | </div> |
711 | 756 | </div> |
712 | | - @endif |
| 757 | + @endif |
713 | 758 | @endif |
714 | | - |
| 759 | + |
715 | 760 |
|
716 | 761 | @if ($user->notes) |
717 | 762 | <!-- empty --> |
|
0 commit comments