2023-03-16 18:18:32 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
{!! trans('general.merge_users') !!}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
2023-03-16 23:13:05 -07:00
|
|
|
<div class="col-md-10 col-md-offset-1">
|
2023-03-16 18:18:32 -07:00
|
|
|
<div class="box box-default">
|
|
|
|
<form class="form-horizontal" role="form" method="post" action="{{ route('users.merge.save') }}">
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- CSRF Token -->
|
|
|
|
{{csrf_field()}}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="callout callout-danger">
|
|
|
|
<i class="fas fa-exclamation-triangle"></i>
|
|
|
|
{{ trans('general.warning_merge_information', array('count' => count($users))) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (config('app.lock_passwords'))
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="callout callout-warning">
|
|
|
|
<p>{{ trans('general.feature_disabled') }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="display table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-03-16 23:13:05 -07:00
|
|
|
<th></th>
|
|
|
|
<th class="col-md-3">{{ trans('general.name') }}</th>
|
|
|
|
<th class="col-md-3">{{ trans('general.email') }}</th>
|
|
|
|
<th class="col-md-3">{{ trans('general.username') }}</th>
|
|
|
|
<th class="col-md-3">{{ trans('general.groups') }}</th>
|
|
|
|
<th class="col-md-1 text-right">
|
|
|
|
<i class="fas fa-barcode fa-fw" aria-hidden="true" style="font-size: 17px;"></i>
|
|
|
|
<span class="sr-only">{{ trans('general.assets') }}</span>
|
|
|
|
</th>
|
|
|
|
<th class="col-md-1 text-right">
|
|
|
|
<i class="far fa-keyboard fa-fw" aria-hidden="true" style="font-size: 17px;"></i>
|
|
|
|
<span class="sr-only">{{ trans('general.accessories') }}</span>
|
|
|
|
</th>
|
|
|
|
<th class="col-md-1 text-right">
|
|
|
|
<i class="far fa-save fa-fw" aria-hidden="true" style="font-size: 17px;"></i>
|
|
|
|
<span class="sr-only">{{ trans('general.licenses') }}</span>
|
|
|
|
</th>
|
|
|
|
<th class="col-md-1 text-right">
|
|
|
|
<i class="fas fa-tint fa-fw" aria-hidden="true" style="font-size: 17px;"></i>
|
|
|
|
<span class="sr-only">{{ trans('general.consumables') }}</span>
|
|
|
|
</th>
|
2023-03-16 18:18:32 -07:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($users as $user)
|
|
|
|
<tr {!! ($user->isSuperUser() ? ' class="danger"':'') !!}>
|
|
|
|
<td>
|
|
|
|
<input type="radio" name="merge_into_id" value="{{ $user->id }}" class="minimal" checked="checked">
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
<span {!! (Auth::user()->id==$user->id ? ' style="text-decoration: line-through"' : '') !!}>
|
2023-03-16 22:48:20 -07:00
|
|
|
{{ $user->present()->fullName() }}
|
2023-03-16 18:18:32 -07:00
|
|
|
</span>
|
|
|
|
{{ (Auth::id()==$user->id ? ' (cannot delete yourself)' : '') }}
|
|
|
|
</td>
|
2023-03-16 22:48:20 -07:00
|
|
|
<td>
|
|
|
|
{{ $user->email }}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $user->username }}
|
|
|
|
</td>
|
|
|
|
|
2023-03-16 18:18:32 -07:00
|
|
|
<td>
|
|
|
|
@foreach ($user->groups as $group)
|
|
|
|
<a href=" {{ route('groups.update', $group->id) }}" class="label label-default">
|
|
|
|
{{ $group->name }}
|
|
|
|
</a>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
2023-03-16 23:13:05 -07:00
|
|
|
<td class="text-right">
|
2023-03-16 18:18:32 -07:00
|
|
|
{{ number_format($user->assets()->count()) }}
|
|
|
|
</td>
|
2023-03-16 23:13:05 -07:00
|
|
|
<td class="text-right">
|
2023-03-16 18:18:32 -07:00
|
|
|
{{ number_format($user->accessories()->count()) }}
|
|
|
|
</td>
|
2023-03-16 23:13:05 -07:00
|
|
|
<td class="text-right">
|
2023-03-16 18:18:32 -07:00
|
|
|
{{ number_format($user->licenses()->count()) }}
|
|
|
|
</td>
|
2023-03-16 23:13:05 -07:00
|
|
|
<td class="text-right">
|
2023-03-16 18:18:32 -07:00
|
|
|
{{ number_format($user->consumables()->count()) }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div> <!--/table-responsive-->
|
|
|
|
</div><!--/col-md-12-->
|
|
|
|
</div> <!--/box-body-->
|
|
|
|
<div class="box-footer text-right">
|
|
|
|
<a class="btn btn-link pull-left" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
|
2023-03-17 02:43:33 -07:00
|
|
|
<button type="submit" class="btn btn-success"{{ (config('app.lock_passwords') ? ' disabled' : '') }}><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('button.submit') }}</button>
|
2023-03-16 18:18:32 -07:00
|
|
|
</div><!-- /.box-footer -->
|
|
|
|
|
|
|
|
@foreach ($users as $user)
|
|
|
|
<input type="hidden" name="ids_to_merge[]" value="{{ $user->id }}">
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
|
|
|
|
@stop
|