<commit_before>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
@lang('admin/users/general.view_user', array('name' => $user->first_name)) ::
@parent
@stop

{{-- Page content --}}
@section('content')

<div class="user-profile">
            <!-- header -->
            <div class="row header">
                <div class="col-md-8">
                    @if ($user->avatar)
                        <img src="/uploads/avatars/{{{ $user->avatar }}}" class="avatar img-circle hidden-print">
                    @else
                        <img src="{{{ $user->gravatar() }}}" class="avatar img-circle hidden-print">
                    @endif
                    <h3 class="name">{{{ $user->fullName() }}}
                    @if ($user->employee_num)
                    		({{{ $user->employee_num }}})
                        @endif</h3>
                    <span class="area">{{{ $user->jobtitle }}}

                        </span>
                </div>
                @if ($user->deleted_at != NULL)
                            <a href="{{ route('restore/user', $user->id) }}" class="btn-flat white large pull-right edit"><i class="fa fa-pencil"></i> Restore This User</a>

                @else
                        <!--<a href="{{ route('update/user', $user->id) }}" class="btn btn-warning pull-right edit"><i class="fa fa-pencil"></i> @lang('button.edit') This User</a>-->
                    <div class="row header">

                        <div class="btn-group pull-right hidden-print">
                            <button class="btn btn-default" data-toggle="dropdown">@lang('button.actions')
                            <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu">
                                <li><a href="{{ route('update/user', $user->id) }}">@lang('admin/users/general.edit')</a></li>
                                <li><a href="{{ route('clone/user', $user->id) }}">@lang('admin/users/general.clone')</a></li>
                            </ul>
                        </div>

                    </div>
                @endif
            </div>
            <div class="row profile">

                    <!-- bio, new note & orders column -->
                    <div class="col-md-9 bio">
                        <div class="profile-box">

                        @if ($user->deleted_at != NULL)

                            <div class="col-md-12">
                                <div class="alert alert-danger">
                                    <i class="fa fa-exclamation"></i>

                                    @lang('admin/users/messages.user_deleted_warning')

                                </div>
                            </div>

                        @endif

                            <h6>@lang('general.groups')</h6>
                            <!-- groups table -->
                            @if (count($user->groups) > 0)
                            <div class="table-responsive">
                                <table class="display">
                                    <thead>
                                        <tr>
                                            <th class="col-md-3">Name</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach ($user->groups as $group)
                                        <tr>
                                          <td><a href="{{ route('update/group', $group->id) }}">{{{ $group->name }}}</a></td>
                                        </tr>
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif

							<br><br><br>
                            <h6>@lang('admin/users/general.assets_user', array('name' => $user->first_name))</h6>
                            <br>
                            <!-- checked out assets table -->
                            @if (count($user->assets) > 0)
                            <div class="table-responsive">
							<table class="display">
                                <thead>
                                    <tr>
                                        <th class="col-md-3">Asset Type</th>
                                        <th class="col-md-2">Asset Tag</th>
                                        <th class="col-md-2">Name</th>
                                        <th class="col-md-1 hidden-print">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->assets as $asset)
                                    <tr>
                                        <td>
                                        @if ($asset->physical=='1') {{{ $asset->model->name }}}
                                        @endif
                                        </td>
                                        <td><a href="{{ route('view/hardware', $asset->id) }}">{{{ $asset->asset_tag }}}</a></td>
                                        <td><a href="{{ route('view/hardware', $asset->id) }}">{{{ $asset->name }}}</a></td>

                                        <td class="hidden-print"> <a href="{{ route('checkin/hardware', array('assetId'=> $asset->id, 'backto'=>'user')) }}" class="btn-flat info">Checkin</a></td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif

							<br><br><br>
                            <h6>@lang('admin/users/general.software_user', array('name' => $user->first_name))</h6>
                            <br>
                            <!-- checked out licenses table -->
                            @if (count($user->licenses) > 0)
                            <div class="table-responsive">
							<table class="display">
                                <thead>
                                    <tr>
                                        <th class="col-md-5">Name</th>
                                        <th class="col-md-6">Serial</th>
                                        <th class="col-md-1 hidden-print">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->licenses as $license)
                                    <tr>
                                        <td><a href="{{ route('view/license', $license->id) }}">{{{ $license->name }}}</a></td>
                                        <td><a href="{{ route('view/license', $license->id) }}">{{{ mb_strimwidth($license->serial, 0, 50, "...") }}}</a></td>
                                        <td class="hidden-print"> <a href="{{ route('checkin/license', array('licenseseat_id'=> $license->pivot->id, 'backto'=>'user')) }}" class="btn-flat info">Checkin</a>
                                        </td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            </div>
                            </div>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif




                            <br><br><br>
                            <h6>@lang('general.accessories')</h6>
                            <br>
                            <!-- checked out licenses table -->
                            @if (count($user->accessories) > 0)
                            <div class="table-responsive">
							<table class="display">
                                <thead>
                                    <tr>
                                        <th class="col-md-5">Name</th>
                                        <th class="col-md-1 hidden-print">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->accessories as $accessory)
                                    <tr>
                                        <td><a href="{{ route('view/accessory', $accessory->id) }}">{{{ $accessory->name }}}</a></td>
                                        <td class="hidden-print"> <a href="{{ route('checkin/accessory', array('accessory_id'=> $accessory->pivot->id, 'backto'=>'user')) }}" class="btn-flat info">Checkin</a>
                                        </td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            </div>
                            </div>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif




                            <h6>@lang('admin/users/general.history_user', array('name' => $user->first_name))</h6>
                            <br>
                            <!-- checked out assets table -->
                            @if (count($user->userlog) > 0)
                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th class="col-md-2">Date</th>
                                        <th class="col-md-2"><span class="line"></span>@lang('table.action')</th>
                                        <th class="col-md-2"><span class="line"></span>@lang('general.asset')</th>
                                        <th class="col-md-2"><span class="line"></span>@lang('table.by')</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->userlog as $log)
                                    <tr>
                                        <td>{{{ $log->created_at }}}</td>
                                        <td>{{{ $log->action_type }}}</td>
                                        <td>

                                        @if ((isset($log->assetlog->name)) && ($log->assetlog->deleted_at==''))
                                            <a href="{{ route('view/hardware', $log->asset_id) }}">{{{ $log->assetlog->asset_tag }}}</a>
                                        @elseif ((isset($log->assetlog->name)) && ($log->assetlog->deleted_at!=''))
                                            <del>{{{ $log->assetlog->name }}}</del> (deleted)

                                        @elseif ((isset($log->accessorylog->name)) && ($log->accessorylog->deleted_at==''))
                                            {{{ $log->accessorylog->name }}}

                                        @endif
                                        </td>
                                        <td>{{{ $log->adminlog->fullName() }}}</td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            @else


                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif



                        </div>
		</div>

                    <!-- side address column -->
                    <div class="col-md-3 address pull-right hidden-print">



                        <h6> @lang('admin/users/general.contact_user', array('name' => $user->first_name)) </h6>


                        @if ($user->location_id)
                        	<div class="col-md-12">
                            <iframe width="300" height="133" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?&amp;q={{{ $user->userloc->address }}},{{{ $user->userloc->city }}},{{{ $user->userloc->state }}},{{{ $user->userloc->country }}}&amp;output=embed" style="float: none;"></iframe>
                            </div>
                        @endif
                        <ul>
                        @if ($user->manager)
                            <li><strong> @lang('admin/users/table.manager'):</strong><br>
                            {{{ $user->manager->fullName() }}}</li>
                        @endif

                        @if ($user->location_id)
                            <li>{{{ $user->userloc->address }}} {{{ $user->userloc->address2 }}}</li>
                            <li>{{{ $user->userloc->city }}}, {{{ $user->userloc->state }}} {{{ $user->userloc->zip }}}<br /><br /></li>
                        @endif
                        @if ($user->phone)
                            <li><i class="fa fa-phone"></i>{{{ $user->phone }}}</li>
                        @endif
                            <li><i class="fa fa-envelope-o"></i><a href="mailto:{{{ $user->email }}}">{{{ $user->email }}}</a></li>
                        </ul>

                        @if ($user->last_login!='')
                        <br /><h6>@lang('admin/users/general.last_login')
                        {{{ $user->last_login->diffForHumans() }}}</h6>
                        @endif
                    </div>


@stop
<commit_msg>update icon<commit_after>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
@lang('admin/users/general.view_user', array('name' => $user->first_name)) ::
@parent
@stop

{{-- Page content --}}
@section('content')

<div class="user-profile">
            <!-- header -->
            <div class="row header">
                <div class="col-md-8">
                    @if ($user->avatar)
                        <img src="/uploads/avatars/{{{ $user->avatar }}}" class="avatar img-circle hidden-print">
                    @else
                        <img src="{{{ $user->gravatar() }}}" class="avatar img-circle hidden-print">
                    @endif
                    <h3 class="name">{{{ $user->fullName() }}}
                    @if ($user->employee_num)
                    		({{{ $user->employee_num }}})
                        @endif</h3>
                    <span class="area">{{{ $user->jobtitle }}}

                        </span>
                </div>
                @if ($user->deleted_at != NULL)
                            <a href="{{ route('restore/user', $user->id) }}" class="btn-flat white large pull-right edit"><i class="fa fa-pencil"></i> Restore This User</a>

                @else
                        <!--<a href="{{ route('update/user', $user->id) }}" class="btn btn-warning pull-right edit"><i class="fa fa-pencil"></i> @lang('button.edit') This User</a>-->
                    <div class="row header">

                        <div class="btn-group pull-right hidden-print">
                            <button class="btn btn-default" data-toggle="dropdown">@lang('button.actions')
                            <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu">
                                <li><a href="{{ route('update/user', $user->id) }}">@lang('admin/users/general.edit')</a></li>
                                <li><a href="{{ route('clone/user', $user->id) }}">@lang('admin/users/general.clone')</a></li>
                            </ul>
                        </div>

                    </div>
                @endif
            </div>
            <div class="row profile">

                    <!-- bio, new note & orders column -->
                    <div class="col-md-9 bio">
                        <div class="profile-box">

                        @if ($user->deleted_at != NULL)

                            <div class="col-md-12">
                                <div class="alert alert-danger">
                                    <i class="fa fa-exclamation-circle"></i>

                                    @lang('admin/users/messages.user_deleted_warning')

                                </div>
                            </div>

                        @endif

                            <h6>@lang('general.groups')</h6>
                            <!-- groups table -->
                            @if (count($user->groups) > 0)
                            <div class="table-responsive">
                                <table class="display">
                                    <thead>
                                        <tr>
                                            <th class="col-md-3">Name</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach ($user->groups as $group)
                                        <tr>
                                          <td><a href="{{ route('update/group', $group->id) }}">{{{ $group->name }}}</a></td>
                                        </tr>
                                        @endforeach
                                    </tbody>
                                </table>
                            </div>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif

							<br><br><br>
                            <h6>@lang('admin/users/general.assets_user', array('name' => $user->first_name))</h6>
                            <br>
                            <!-- checked out assets table -->
                            @if (count($user->assets) > 0)
                            <div class="table-responsive">
							<table class="display">
                                <thead>
                                    <tr>
                                        <th class="col-md-3">Asset Type</th>
                                        <th class="col-md-2">Asset Tag</th>
                                        <th class="col-md-2">Name</th>
                                        <th class="col-md-1 hidden-print">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->assets as $asset)
                                    <tr>
                                        <td>
                                        @if ($asset->physical=='1') {{{ $asset->model->name }}}
                                        @endif
                                        </td>
                                        <td><a href="{{ route('view/hardware', $asset->id) }}">{{{ $asset->asset_tag }}}</a></td>
                                        <td><a href="{{ route('view/hardware', $asset->id) }}">{{{ $asset->name }}}</a></td>

                                        <td class="hidden-print"> <a href="{{ route('checkin/hardware', array('assetId'=> $asset->id, 'backto'=>'user')) }}" class="btn-flat info">Checkin</a></td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif

							<br><br><br>
                            <h6>@lang('admin/users/general.software_user', array('name' => $user->first_name))</h6>
                            <br>
                            <!-- checked out licenses table -->
                            @if (count($user->licenses) > 0)
                            <div class="table-responsive">
							<table class="display">
                                <thead>
                                    <tr>
                                        <th class="col-md-5">Name</th>
                                        <th class="col-md-6">Serial</th>
                                        <th class="col-md-1 hidden-print">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->licenses as $license)
                                    <tr>
                                        <td><a href="{{ route('view/license', $license->id) }}">{{{ $license->name }}}</a></td>
                                        <td><a href="{{ route('view/license', $license->id) }}">{{{ mb_strimwidth($license->serial, 0, 50, "...") }}}</a></td>
                                        <td class="hidden-print"> <a href="{{ route('checkin/license', array('licenseseat_id'=> $license->pivot->id, 'backto'=>'user')) }}" class="btn-flat info">Checkin</a>
                                        </td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            </div>
                            </div>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif




                            <br><br><br>
                            <h6>@lang('general.accessories')</h6>
                            <br>
                            <!-- checked out licenses table -->
                            @if (count($user->accessories) > 0)
                            <div class="table-responsive">
							<table class="display">
                                <thead>
                                    <tr>
                                        <th class="col-md-5">Name</th>
                                        <th class="col-md-1 hidden-print">Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->accessories as $accessory)
                                    <tr>
                                        <td><a href="{{ route('view/accessory', $accessory->id) }}">{{{ $accessory->name }}}</a></td>
                                        <td class="hidden-print"> <a href="{{ route('checkin/accessory', array('accessory_id'=> $accessory->pivot->id, 'backto'=>'user')) }}" class="btn-flat info">Checkin</a>
                                        </td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            </div>
                            </div>
                            @else

                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif




                            <h6>@lang('admin/users/general.history_user', array('name' => $user->first_name))</h6>
                            <br>
                            <!-- checked out assets table -->
                            @if (count($user->userlog) > 0)
                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th class="col-md-2">Date</th>
                                        <th class="col-md-2"><span class="line"></span>@lang('table.action')</th>
                                        <th class="col-md-2"><span class="line"></span>@lang('general.asset')</th>
                                        <th class="col-md-2"><span class="line"></span>@lang('table.by')</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($user->userlog as $log)
                                    <tr>
                                        <td>{{{ $log->created_at }}}</td>
                                        <td>{{{ $log->action_type }}}</td>
                                        <td>

                                        @if ((isset($log->assetlog->name)) && ($log->assetlog->deleted_at==''))
                                            <a href="{{ route('view/hardware', $log->asset_id) }}">{{{ $log->assetlog->asset_tag }}}</a>
                                        @elseif ((isset($log->assetlog->name)) && ($log->assetlog->deleted_at!=''))
                                            <del>{{{ $log->assetlog->name }}}</del> (deleted)

                                        @elseif ((isset($log->accessorylog->name)) && ($log->accessorylog->deleted_at==''))
                                            {{{ $log->accessorylog->name }}}

                                        @endif
                                        </td>
                                        <td>{{{ $log->adminlog->fullName() }}}</td>
                                    </tr>
                                    @endforeach
                                </tbody>
                            </table>
                            @else


                            <div class="col-md-12">
                                <div class="alert alert-info alert-block">
                                    <i class="fa fa-info-circle"></i>
                                    @lang('general.no_results')
                                </div>
                            </div>
                            @endif



                        </div>
		</div>

                    <!-- side address column -->
                    <div class="col-md-3 address pull-right hidden-print">



                        <h6> @lang('admin/users/general.contact_user', array('name' => $user->first_name)) </h6>


                        @if ($user->location_id)
                        	<div class="col-md-12">
                            <iframe width="300" height="133" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?&amp;q={{{ $user->userloc->address }}},{{{ $user->userloc->city }}},{{{ $user->userloc->state }}},{{{ $user->userloc->country }}}&amp;output=embed" style="float: none;"></iframe>
                            </div>
                        @endif
                        <ul>
                        @if ($user->manager)
                            <li><strong> @lang('admin/users/table.manager'):</strong><br>
                            {{{ $user->manager->fullName() }}}</li>
                        @endif

                        @if ($user->location_id)
                            <li>{{{ $user->userloc->address }}} {{{ $user->userloc->address2 }}}</li>
                            <li>{{{ $user->userloc->city }}}, {{{ $user->userloc->state }}} {{{ $user->userloc->zip }}}<br /><br /></li>
                        @endif
                        @if ($user->phone)
                            <li><i class="fa fa-phone"></i>{{{ $user->phone }}}</li>
                        @endif
                            <li><i class="fa fa-envelope-o"></i><a href="mailto:{{{ $user->email }}}">{{{ $user->email }}}</a></li>
                        </ul>

                        @if ($user->last_login!='')
                        <br /><h6>@lang('admin/users/general.last_login')
                        {{{ $user->last_login->diffForHumans() }}}</h6>
                        @endif
                    </div>


@stop

{'fraction_non_alphanumeric': 0.14829348722176422, 'fraction_numerical': 0.004352844187963726, 'mean_word_length': 0.7690019249839585, 'pattern_counts': {'":': 0, '<': 577, '<?xml version=': 0, '>': 811, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 220, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5435114', 'n_tokens_mistral': 7094, 'n_tokens_neox': 6649, 'n_words': 1161}