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

{{-- Page title --}}
@section('title')
{{ trans('admin/licenses/general.view') }}
 - {{ $license->name }}
@parent
@stop

{{-- Right header --}}
@section('header_right')
<div class="btn-group pull-right">
  @can('update', $license)
    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">{{ trans('button.actions') }}
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        <li><a href="{{ route('licenses.edit', ['license' => $license->id]) }}">{{ trans('admin/licenses/general.edit') }}</a></li>
        <li><a href="{{ route('clone/license', $license->id) }}">{{ trans('admin/licenses/general.clone') }}</a></li>
    </ul>
   @endcan
</div>
@stop

{{-- Page content --}}
@section('content')
<div class="row">
  <div class="col-md-12">
    <!-- Custom Tabs -->
    <div class="nav-tabs-custom">
      <ul class="nav nav-tabs">
        <li class="active"><a href="#tab_1" data-toggle="tab">Details</a></li>
        <li><a href="#tab_2" data-toggle="tab">{{ trans('general.file_uploads') }}</a></li>
        <li><a href="#tab_3" data-toggle="tab">{{ trans('admin/licenses/general.checkout_history') }}</a></li>
        <li class="pull-right"><a href="#" data-toggle="modal" data-target="#uploadFileModal"><i class="fa fa-paperclip"></i> {{ trans('button.upload') }}</a></li>
      </ul>

      <div class="tab-content">
        <div class="tab-pane active" id="tab_1">
          <div class="row">
            <div class="col-md-7">
              <table class="table table-striped">
                  <thead>
                    <tr>
                      <th class="col-md-2">{{ trans('admin/licenses/general.seat') }}</th>
                      <th class="col-md-2">{{ trans('admin/licenses/general.user') }}</th>
                      <th class="col-md-4">{{ trans('admin/licenses/form.asset') }}</th>
                      <th class="col-md-2"></th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php $count=1; ?>
                    @if ($license->licenseseats)
                      @foreach ($license->licenseseats as $licensedto)
                      <tr>
                        <td>Seat {{ $count }} </td>
                        <td>
                          @if (($licensedto->user) && ($licensedto->deleted_at == NULL))
                            @can('users.view')
                              <a href="{{ route('users.show', $licensedto->assigned_to) }}">
                                {{ $licensedto->user->present()->fullName() }}
                              </a>
                            @else
                              {{ $licensedto->user->present()->fullName() }}
                            @endcan
                          @elseif (($licensedto->user) && ($licensedto->deleted_at != NULL))
                            <del>{{ $licensedto->user->present()->fullName() }}</del>
                          @elseif ($licensedto->asset)
                            @if ($licensedto->asset->assigned_to != 0)
                              @can('users.view')
                                {!!  $licensedto->asset->assignedTo->present()->nameUrl()  !!}
                              @else
                                {{ $licensedto->asset->assignedTo->present()->name() }}
                              @endcan
                            @endif
                          @endif
                        </td>
                        <td>
                          @if ($licensedto->asset_id)
                            @can('view', $licensedto->asset)
                              <a href="{{ route('hardware.show', $licensedto->asset_id) }}">
                                {{ $licensedto->asset->name }} {{ $licensedto->asset->asset_tag }}
                              </a>
                            @else
                              {{ $licensedto->asset->name }} {{ $licensedto->asset->asset_tag }}
                            @endcan
                          @endif
                        </td>
                        <td>
                          @can('checkout', $licensedto)
                            @if (($licensedto->assigned_to) || ($licensedto->asset_id))
                              @if ($license->reassignable)
                                <a href="{{ route('licenses.checkin', $licensedto->id) }}" class="btn btn-primary btn-sm">
                                  {{ trans('general.checkin') }}
                                </a>
                              @else
                                <span>Assigned</span>
                              @endif
                            @else
                              <a href="{{ route('licenses.checkout', $licensedto->id) }}" class="btn btn-info btn-sm">
                                {{ trans('general.checkout') }}
                              </a>
                            @endif
                          @endcan
                        </td>
                      </tr>
                        <?php $count++; ?>
                      @endforeach
                    @endif
                  </tbody>
                </table>
            </div>

            <div class="col-md-5">
              <div class="table">
                <table class="table">
                  <tbody>
                    @if (!is_null($license->company))
                    <tr>
                      <td>{{ trans('general.company') }}</td>
                      <td>{{ $license->company->name }}</td>
                    </tr>
                    @endif

                    @if ($license->manufacturer)
                      <tr>
                        <td>{{ trans('admin/hardware/form.manufacturer') }}</td>
                        <td>
                          @can('view', \App\Models\Manufacturer::class)
                            <a href="{{ route('manufacturers.show', $license->manufacturer->id) }}">
                              {{ $license->manufacturer->name }}
                            </a>
                          @else
                            {{ $license->manufacturer->name }}
                          @endcan

                          @if ($license->manufacturer->url)
                            <br><i class="fa fa-globe"></i> <a href="{{ $license->manufacturer->url }}">{{ $license->manufacturer->url }}</a>
                          @endif

                          @if ($license->manufacturer->support_url)
                            <br><i class="fa fa-life-ring"></i> <a href="{{ $license->manufacturer->support_url }}">{{ $license->manufacturer->support_url }}</a>
                          @endif

                          @if ($license->manufacturer->support_phone)
                            <br><i class="fa fa-phone"></i> {{ $license->manufacturer->support_phone }}
                          @endif

                          @if ($license->manufacturer->support_email)
                            <br><i class="fa fa-envelope"></i> <a href="mailto:{{ $license->manufacturer->support_email }}">{{ $license->manufacturer->support_email }}</a>
                          @endif
                        </td>
                      </tr>
                    @endif

                    @can('viewKeys', $license)
                      @if (!is_null($license->serial))
                      <tr>
                        <td>{{ trans('admin/licenses/form.license_key') }}</td><commit_msg>Small manufacturer display tweaks on license view to make text clearer, link phone<commit_after>@extends('layouts/default')

{{-- Page title --}}
@section('title')
{{ trans('admin/licenses/general.view') }}
 - {{ $license->name }}
@parent
@stop

{{-- Right header --}}
@section('header_right')
<div class="btn-group pull-right">
  @can('update', $license)
    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">{{ trans('button.actions') }}
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        <li><a href="{{ route('licenses.edit', ['license' => $license->id]) }}">{{ trans('admin/licenses/general.edit') }}</a></li>
        <li><a href="{{ route('clone/license', $license->id) }}">{{ trans('admin/licenses/general.clone') }}</a></li>
    </ul>
   @endcan
</div>
@stop

{{-- Page content --}}
@section('content')
<div class="row">
  <div class="col-md-12">
    <!-- Custom Tabs -->
    <div class="nav-tabs-custom">
      <ul class="nav nav-tabs">
        <li class="active"><a href="#tab_1" data-toggle="tab">Details</a></li>
        <li><a href="#tab_2" data-toggle="tab">{{ trans('general.file_uploads') }}</a></li>
        <li><a href="#tab_3" data-toggle="tab">{{ trans('admin/licenses/general.checkout_history') }}</a></li>
        <li class="pull-right"><a href="#" data-toggle="modal" data-target="#uploadFileModal"><i class="fa fa-paperclip"></i> {{ trans('button.upload') }}</a></li>
      </ul>

      <div class="tab-content">
        <div class="tab-pane active" id="tab_1">
          <div class="row">
            <div class="col-md-7">
              <table class="table table-striped">
                  <thead>
                    <tr>
                      <th class="col-md-2">{{ trans('admin/licenses/general.seat') }}</th>
                      <th class="col-md-2">{{ trans('admin/licenses/general.user') }}</th>
                      <th class="col-md-4">{{ trans('admin/licenses/form.asset') }}</th>
                      <th class="col-md-2"></th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php $count=1; ?>
                    @if ($license->licenseseats)
                      @foreach ($license->licenseseats as $licensedto)
                      <tr>
                        <td>Seat {{ $count }} </td>
                        <td>
                          @if (($licensedto->user) && ($licensedto->deleted_at == NULL))
                            @can('users.view')
                              <a href="{{ route('users.show', $licensedto->assigned_to) }}">
                                {{ $licensedto->user->present()->fullName() }}
                              </a>
                            @else
                              {{ $licensedto->user->present()->fullName() }}
                            @endcan
                          @elseif (($licensedto->user) && ($licensedto->deleted_at != NULL))
                            <del>{{ $licensedto->user->present()->fullName() }}</del>
                          @elseif ($licensedto->asset)
                            @if ($licensedto->asset->assigned_to != 0)
                              @can('users.view')
                                {!!  $licensedto->asset->assignedTo->present()->nameUrl()  !!}
                              @else
                                {{ $licensedto->asset->assignedTo->present()->name() }}
                              @endcan
                            @endif
                          @endif
                        </td>
                        <td>
                          @if ($licensedto->asset_id)
                            @can('view', $licensedto->asset)
                              <a href="{{ route('hardware.show', $licensedto->asset_id) }}">
                                {{ $licensedto->asset->name }} {{ $licensedto->asset->asset_tag }}
                              </a>
                            @else
                              {{ $licensedto->asset->name }} {{ $licensedto->asset->asset_tag }}
                            @endcan
                          @endif
                        </td>
                        <td>
                          @can('checkout', $licensedto)
                            @if (($licensedto->assigned_to) || ($licensedto->asset_id))
                              @if ($license->reassignable)
                                <a href="{{ route('licenses.checkin', $licensedto->id) }}" class="btn btn-primary btn-sm">
                                  {{ trans('general.checkin') }}
                                </a>
                              @else
                                <span>Assigned</span>
                              @endif
                            @else
                              <a href="{{ route('licenses.checkout', $licensedto->id) }}" class="btn btn-info btn-sm">
                                {{ trans('general.checkout') }}
                              </a>
                            @endif
                          @endcan
                        </td>
                      </tr>
                        <?php $count++; ?>
                      @endforeach
                    @endif
                  </tbody>
                </table>
            </div>

            <div class="col-md-5">
              <div class="table">
                <table class="table">
                  <tbody>
                    @if (!is_null($license->company))
                    <tr>
                      <td>{{ trans('general.company') }}</td>
                      <td>{{ $license->company->name }}</td>
                    </tr>
                    @endif

                    @if ($license->manufacturer)
                      <tr>
                        <td>{{ trans('admin/hardware/form.manufacturer') }}</td>
                        <td><p style="line-height: 23px;">
                          @can('view', \App\Models\Manufacturer::class)
                            <a href="{{ route('manufacturers.show', $license->manufacturer->id) }}">
                              {{ $license->manufacturer->name }}
                            </a>
                          @else
                            {{ $license->manufacturer->name }}
                          @endcan

                          @if ($license->manufacturer->url)
                            <br><i class="fa fa-globe"></i> <a href="{{ $license->manufacturer->url }}" rel="noopener">{{ $license->manufacturer->url }}</a>
                          @endif

                          @if ($license->manufacturer->support_url)
                            <br><i class="fa fa-life-ring"></i>
                              <a href="{{ $license->manufacturer->support_url }}"  rel="noopener">{{ $license->manufacturer->support_url }}</a>
                          @endif

                          @if ($license->manufacturer->support_phone)
                            <br><i class="fa fa-phone"></i>
                              <a href="tel:{{ $license->manufacturer->support_phone }}">{{ $license->manufacturer->support_phone }}</a>
                          @endif

                          @if ($license->manufacturer->support_email)
                            <br><i class="fa fa-envelope"></i> <a href="mailto:{{ $license->manufacturer->support_email }}">{{ $license->manufacturer->support_email }}</a>
                          @endif
                          </p>
                        </td>
                      </tr>
                    @endif

                    @can('viewKeys', $license)
                      @if (!is_null($license->serial))
                      <tr>
                        <td>{{ trans('admin/licenses/form.license_key') }}</td>
{'fraction_non_alphanumeric': 0.16755023234504876, 'fraction_numerical': 0.0019634792852935403, 'mean_word_length': 1.1302105116408756, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 417, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7235307', 'n_tokens_mistral': 4006, 'n_tokens_neox': 3825, 'n_words': 634}