HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/spilicensing/resources/views/license/show.blade.php
@extends('layouts.master')

@section('content')

    <h1>License</h1>

    <div class="table-responsive">
        <table class="table table-bordered table-striped table-hover">
            <thead>
            <tr>
                <th>ID</th>
                <th>Activations</th>
                <th>Product</th>
                <th>Subproduct</th>
                <th>Type</th>
                <th>Expiration</th>
                <th>Batch</th>
                <th>LicenseKey</th>
                <th>Actions</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td><a href="{{ url('license', $license->id) }}">{{ $license->id }}</a></td>
                <td>{{ $license->systems->count() }} of {{ $license->maxActivations }}</td>
                <td>{{ $license->product->productName }}</td>
                <td>{{ $license->subproduct->subproductName }}</td>
                <td>{{ $license->licenseType->licenseType }}</td>
                <td>{{ $license->expiration }}</td>
                <td>{{ $license->batch }}</td>
                <td>
                    <div class="keybox">
                        <input class="licensedisplay" type="text" onClick="this.setSelectionRange(0, this.value.length)" value="{{ $license->licenseKey }}" readonly>
                    </div>
                </td>
                <td>
                    <a href="{{ url('license/' . $license->id . '/edit') }}">
                        <button type="submit" class="btn btn-primary btn-xs">Update</button>
                    </a> /
                    {!! Form::open([
                        'method'=>'DELETE',
                        'url' => ['license', $license->id],
                        'style' => 'display:inline'
                    ]) !!}
                    {!! Form::submit('Delete', ['class' => 'btn btn-danger btn-xs']) !!}
                    {!! Form::close() !!}
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <i>created: {{ $license->created_at }} <br/>updated: {{ $license->updated_at }}</i>

    <h3>Vendor</h3>
    <p><b>{{ $license->vendor->vendorName }}</b><br/>
        phone: {{ $license->vendor->phone }}<br/>
        email: {{ $license->vendor->email }}<br/>
        website: <a href="{{ $license->vendor->website }}">{{ $license->vendor->website }}</a><br/>
        address: {{ $license->vendor->address }} {{ $license->vendor->city }} {{ $license->vendor->zip }}
    </p>

    <h3>Systems</h3>
    @foreach($license->systems as $system)
    <table class="table table-bordered">
        <tr>
            <td>system ID:</td>
            <td>{{ $system->systemId }}</td>
        </tr>
        <tr>
            <td>system type/ver:</td>
            <td>{{ $system->systemType }} {{ $system->systemVer }}</td>
        </tr>
        <tr>
            <td>host app/ver:</td>
            <td>{{ $system->hostApp }} {{ $system->hostVer }}</td>
        </tr>
        <tr>
            <td>product:</td>
            <td>{{ $system->product }}</td>
        </tr>
        <tr>
            <td>subproduct:</td>
            <td>{{ $system->subproduct }}</td>
        </tr>
        <tr>
            <td>created:</td>
            <td>{{ $system->created_at }}</td>
        </tr>
    </table>
    @endforeach
@endsection