@extends('layouts.admin') @section('title', 'AC #'.$ac->id.' — '.config('app.name')) @section('page_title', ($ac->product_name ?: 'Activation request').' · #'.$ac->id) @section('breadcrumbs') @endsection @push('styles') @endpush @section('content') @php $kind = $ac->isNfr() ? 'NFR' : ($ac->isOwnUse() ? 'Own Use' : 'Commercial'); $overlay = $ac->confirmationDisplayLabel(); $acProvided = $ac->req_status === \App\Domain\Licensing\Enums\ReqStatus::AcProvided; $confirmed = $ac->conf_status === \App\Domain\Licensing\Enums\ConfStatus::Confirmed; $reqTone = $acProvided ? 'ok' : 'warn'; $confTone = match (true) { $ac->isNfr(), $ac->isOwnUse() => 'info', $confirmed => 'ok', default => 'warn', }; $moduleLines = old('submodules', $ac->submodules ? implode("\n", $ac->submodules) : ''); $partnerUrl = ($ac->user && auth()->user()?->can('partners.view')) ? route('admin.partners.edit', $ac->user) : null; @endphp

Activation request #{{ $ac->id }}

{{ $ac->product_name ?: 'Untitled product' }}{{ $ac->product_version ? ' '.$ac->product_version : '' }}

Partner @if ($partnerUrl) {{ $ac->login }} @else {{ $ac->login }} @endif Requested {{ $ac->requested_at?->format('Y-m-d H:i') ?: '—' }} @if ($ac->updated_by) Last saved by {{ $ac->updated_by }} @endif @if ($ac->distributor_name) Distributor {{ $ac->distributor_name }} @endif
{{ $ac->req_status->label() }} {{ $overlay }} {{ $kind }}
@if ($canNotify)
@csrf
@csrf
@endif @can('acrequests.delete')
@csrf @method('DELETE')
@endcan
@if ($canUpdate)
@csrf @method('PUT')
Status & fulfillment

These three fields drive the queue overlays.

AC Provided records fulfillment outside this app.

Display overlay: {{ $overlay }}

Yes lists this end user for partner autofill.

Product & license

Must match the data used at product activation.

@if (is_array($ac->submodules) && $ac->submodules !== []) @endif

One module per line. Quantity can follow as Name##1.

Sage

Edition is the three-character Sage 300 code.

End user

{{ $ac->eu_company ?: 'No company recorded' }}

@include('admin.activation-requests._party-fields', ['prefix' => 'eu'])
Reseller

{{ $ac->res_company !== '' ? $ac->res_company : 'Empty company = NFR overlay' }}

@include('admin.activation-requests._party-fields', ['prefix' => 'res'])
Saves status, product, Sage, and both parties.
@else
Partner
{{ $ac->login }}
Product
{{ $ac->product_name }} {{ $ac->product_version }}
Confirmation
{{ $overlay }}
AC status
{{ $ac->req_status->label() }}
End user
{{ $ac->eu_company }} · {{ $ac->eu_email }}
@endif
@endsection