with pagination nwo with the proper view selection
This commit is contained in:
Regular → Executable
+160
-136
@@ -24,49 +24,59 @@
|
||||
];
|
||||
@endphp
|
||||
|
||||
<div class="space-y-6">
|
||||
<section class="overflow-hidden rounded-2xl border border-blue-900/40 bg-gradient-to-br from-slate-950 via-blue-950 to-slate-950 p-8 text-white shadow-sm sm:p-10">
|
||||
<div class="grid gap-8 lg:grid-cols-[minmax(0,1fr)_34rem] lg:items-start">
|
||||
<div class="max-w-3xl">
|
||||
<p class="text-xs font-black uppercase tracking-[0.34em] text-cyan-300">{{ __('Platform Administration') }}</p>
|
||||
<h1 class="mt-6 text-4xl font-black tracking-tight text-white sm:text-5xl">{{ __('Module Control') }}</h1>
|
||||
<p class="mt-5 max-w-2xl text-base font-semibold leading-7 text-blue-50/90 sm:text-lg">
|
||||
{{ __('Manage installed modules, database metadata, dependencies and activation state.') }}
|
||||
</p>
|
||||
|
||||
<section class="overflow-hidden rounded-2xl border border-slate-700/60 bg-gradient-to-br from-slate-950 via-blue-950 to-slate-900 px-8 py-8 shadow-2xl shadow-slate-950/30 sm:px-10">
|
||||
<div class="grid gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(28rem,35rem)] lg:items-start">
|
||||
<div class="min-w-0">
|
||||
<p class="text-xs font-black uppercase tracking-[0.30em] text-cyan-300">
|
||||
{{ __('Platform Administration') }}
|
||||
</p>
|
||||
|
||||
<h1 class="mt-5 text-4xl font-black tracking-tight text-white sm:text-5xl">
|
||||
{{ __('Module Control') }}
|
||||
</h1>
|
||||
|
||||
<p class="mt-5 max-w-3xl text-base font-semibold leading-7 text-blue-50/85 sm:text-lg">
|
||||
{{ __('Manage installed modules, database metadata, dependencies and activation state.') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-white/20 bg-slate-950/30 p-6 shadow-xl backdrop-blur">
|
||||
<div class="flex items-start justify-between gap-4">
|
||||
<span class="inline-flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl border border-emerald-300/70 bg-emerald-400/10 text-emerald-200 shadow-sm">
|
||||
<i class="fa-solid fa-puzzle-piece text-2xl" aria-hidden="true"></i>
|
||||
</span>
|
||||
|
||||
<span class="rounded-full border border-white/30 px-4 py-1.5 text-[0.68rem] font-black uppercase tracking-[0.24em] text-white/90">
|
||||
{{ __('Database Backed') }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-white/25 bg-slate-950/25 p-5 shadow-sm ring-1 ring-white/10 backdrop-blur lg:mt-1">
|
||||
<div class="flex items-start justify-between gap-4">
|
||||
<span class="inline-flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl border border-emerald-300/60 bg-emerald-400/10 text-emerald-200 shadow-sm">
|
||||
<i class="fa-solid fa-puzzle-piece text-2xl" aria-hidden="true"></i>
|
||||
</span>
|
||||
<span class="rounded-full border border-white/35 px-5 py-2 text-xs font-black uppercase tracking-[0.2em] text-white/90">
|
||||
{{ __('Database Backed') }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="mt-8 grid grid-cols-3 divide-x divide-white/15">
|
||||
<a href="{{ route('modules.control.index') }}" class="group px-4 first:pl-0 last:pr-0">
|
||||
<div class="text-4xl font-black text-white group-hover:text-blue-200">{{ $stats['installed'] }}</div>
|
||||
<div class="mt-2 text-xs font-black uppercase tracking-wide text-blue-100/85">{{ __('Installed') }}</div>
|
||||
</a>
|
||||
|
||||
<div class="mt-8 grid grid-cols-3 divide-x divide-white/15">
|
||||
<div class="pr-5">
|
||||
<div class="text-4xl font-black text-white">{{ $stats['installed'] }}</div>
|
||||
<div class="mt-2 text-xs font-black uppercase tracking-wide text-blue-100/90">{{ __('Installed') }}</div>
|
||||
</div>
|
||||
<div class="px-5">
|
||||
<div class="text-4xl font-black text-emerald-300">{{ $stats['enabled'] }}</div>
|
||||
<div class="mt-2 text-xs font-black uppercase tracking-wide text-blue-100/90">{{ __('Enabled') }}</div>
|
||||
</div>
|
||||
<div class="pl-5">
|
||||
<div class="text-4xl font-black text-red-300">{{ $stats['disabled'] }}</div>
|
||||
<div class="mt-2 text-xs font-black uppercase tracking-wide text-blue-100/90">{{ __('Disabled') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{ route('modules.control.index', ['filter' => 'enabled']) }}" class="group px-4 first:pl-0 last:pr-0">
|
||||
<div class="text-4xl font-black text-emerald-300 group-hover:text-emerald-200">{{ $stats['enabled'] }}</div>
|
||||
<div class="mt-2 text-xs font-black uppercase tracking-wide text-blue-100/85">{{ __('Enabled') }}</div>
|
||||
</a>
|
||||
|
||||
<div class="mt-6 h-2 rounded-full bg-white/10">
|
||||
<div class="h-2 rounded-full bg-emerald-400/70" style="width: {{ $stats['installed'] > 0 ? round(($stats['enabled'] / max($stats['installed'], 1)) * 100) : 0 }}%"></div>
|
||||
</div>
|
||||
<a href="{{ route('modules.control.index', ['filter' => 'disabled']) }}" class="group px-4 first:pl-0 last:pr-0">
|
||||
<div class="text-4xl font-black text-red-300 group-hover:text-red-200">{{ $stats['disabled'] }}</div>
|
||||
<div class="mt-2 text-xs font-black uppercase tracking-wide text-blue-100/85">{{ __('Disabled') }}</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-6 h-2 rounded-full bg-white/10">
|
||||
<div class="h-2 rounded-full bg-gradient-to-r from-emerald-400 via-cyan-400 to-blue-400" style="width: {{ $stats['installed'] > 0 ? min(100, round(($stats['enabled'] / max(1, $stats['installed'])) * 100)) : 0 }}%"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="space-y-6">
|
||||
@foreach (['status' => 'emerald', 'warning' => 'amber', 'error' => 'red'] as $flash => $tone)
|
||||
@if (session($flash))
|
||||
<div class="rounded-2xl border px-4 py-3 text-sm font-medium {{ $toneClasses[$tone] ?? $toneClasses['blue'] }}">
|
||||
@@ -98,9 +108,9 @@
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="flex flex-col gap-5 xl:flex-row xl:items-end xl:justify-between">
|
||||
<div>
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">{{ __('Installed modules') }}</h2>
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Installed modules</h2>
|
||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{{ __('Descriptions, versions, display metadata and sort order are stored in the database only.') }}
|
||||
Descriptions, versions, display metadata and sort order are stored in the database only.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -120,21 +130,21 @@
|
||||
name="sort"
|
||||
class="rounded-xl border border-zinc-300 bg-white px-3 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100"
|
||||
>
|
||||
<option value="order" @selected($sort === 'order')>{{ __('Sort: Order') }}</option>
|
||||
<option value="name" @selected($sort === 'name')>{{ __('Sort: Name') }}</option>
|
||||
<option value="status" @selected($sort === 'status')>{{ __('Sort: Status') }}</option>
|
||||
<option value="version" @selected($sort === 'version')>{{ __('Sort: Version') }}</option>
|
||||
<option value="updated" @selected($sort === 'updated')>{{ __('Sort: Last updated') }}</option>
|
||||
<option value="order" @selected($sort === 'order')>Sort: Order</option>
|
||||
<option value="name" @selected($sort === 'name')>Sort: Name</option>
|
||||
<option value="status" @selected($sort === 'status')>Sort: Status</option>
|
||||
<option value="version" @selected($sort === 'version')>Sort: Version</option>
|
||||
<option value="updated" @selected($sort === 'updated')>Sort: Last updated</option>
|
||||
</select>
|
||||
<button type="submit" class="rounded-xl border border-blue-500/40 bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500/30">
|
||||
{{ __('Search') }}
|
||||
<button type="submit" class="rounded-xl border border-blue-500/40 bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500/30">
|
||||
Search
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form method="POST" action="{{ route('modules.control.sync') }}">
|
||||
@csrf
|
||||
<button type="submit" class="rounded-xl border border-zinc-300 px-4 py-2 text-sm font-semibold text-zinc-800 transition hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-100 dark:hover:bg-zinc-800">
|
||||
{{ __('Sync Database') }}
|
||||
<button type="submit" class="rounded-xl border border-zinc-300 px-4 py-2 text-sm font-semibold text-zinc-800 hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-100 dark:hover:bg-zinc-800">
|
||||
Sync Database
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -151,8 +161,8 @@
|
||||
@endforeach
|
||||
|
||||
@if ($filter !== 'all' || $search !== '')
|
||||
<a href="{{ route('modules.control.index') }}" class="rounded-full border border-zinc-300 px-3 py-1 text-xs font-semibold text-zinc-600 transition hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800">
|
||||
{{ __('Clear filters') }}
|
||||
<a href="{{ route('modules.control.index') }}" class="rounded-full border border-zinc-300 px-3 py-1 text-xs font-semibold text-zinc-600 hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800">
|
||||
Clear filters
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@@ -160,12 +170,12 @@
|
||||
|
||||
<div class="flex flex-col gap-1 text-sm text-zinc-500 dark:text-zinc-400 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div>
|
||||
{{ __('Showing') }} {{ $modules->firstItem() ?? 0 }}-{{ $modules->lastItem() ?? 0 }} {{ __('of') }} {{ $modules->total() }} {{ __('modules') }}.
|
||||
Showing {{ $modules->firstItem() ?? 0 }}-{{ $modules->lastItem() ?? 0 }} of {{ $modules->total() }} modules.
|
||||
@if ($search !== '')
|
||||
{{ __('Search') }}: <span class="font-semibold text-zinc-800 dark:text-zinc-200">{{ $search }}</span>
|
||||
Search: <span class="font-semibold text-zinc-800 dark:text-zinc-200">{{ $search }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<div>{{ __('4 modules per page') }}</div>
|
||||
<div>4 modules per page</div>
|
||||
</div>
|
||||
|
||||
<form method="POST" action="{{ route('modules.control.bulk') }}" class="space-y-4">
|
||||
@@ -173,102 +183,116 @@
|
||||
|
||||
<div class="flex flex-col gap-3 rounded-2xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-800 dark:bg-zinc-900 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div class="text-sm text-zinc-600 dark:text-zinc-400">
|
||||
{{ __('Select modules on this page and apply a bulk action.') }}
|
||||
Select modules on this page and apply a bulk action.
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<select name="action" class="rounded-xl border border-zinc-300 bg-white px-3 py-2 text-sm text-zinc-900 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
||||
<option value="enable">{{ __('Enable selected') }}</option>
|
||||
<option value="disable">{{ __('Disable selected') }}</option>
|
||||
<option value="enable">Enable selected</option>
|
||||
<option value="disable">Disable selected</option>
|
||||
</select>
|
||||
<button type="submit" class="rounded-xl border border-zinc-300 px-4 py-2 text-sm font-semibold text-zinc-800 transition hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-100 dark:hover:bg-zinc-800">
|
||||
{{ __('Apply') }}
|
||||
<button type="submit" class="rounded-xl border border-zinc-300 px-4 py-2 text-sm font-semibold text-zinc-800 hover:bg-zinc-50 dark:border-zinc-700 dark:text-zinc-100 dark:hover:bg-zinc-800">
|
||||
Apply
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||
<thead class="bg-zinc-50 dark:bg-zinc-950/70">
|
||||
<tr>
|
||||
<th class="w-12 px-4 py-4 text-left">
|
||||
<span class="sr-only">{{ __('Select') }}</span>
|
||||
</th>
|
||||
<th class="px-4 py-4 text-left text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Module') }}</th>
|
||||
<th class="px-4 py-4 text-left text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Description') }}</th>
|
||||
<th class="px-4 py-4 text-left text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Version') }}</th>
|
||||
<th class="px-4 py-4 text-left text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Status') }}</th>
|
||||
<th class="px-4 py-4 text-left text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Last updated') }}</th>
|
||||
<th class="px-4 py-4 text-right text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||
@forelse ($modules as $module)
|
||||
<tr class="transition hover:bg-zinc-50 dark:hover:bg-zinc-800/35">
|
||||
<td class="px-4 py-5 align-top">
|
||||
<input type="checkbox" name="modules[]" value="{{ $module['name'] }}" class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
||||
</td>
|
||||
<td class="px-4 py-5 align-top">
|
||||
<div class="flex items-start gap-4">
|
||||
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl border border-zinc-200 bg-zinc-950 text-white shadow-sm dark:border-zinc-700 dark:bg-zinc-950">
|
||||
<i class="fa-solid {{ $module['icon'] ?: 'fa-puzzle-piece' }}" aria-hidden="true"></i>
|
||||
</span>
|
||||
<div class="min-w-0">
|
||||
<div class="font-bold text-zinc-950 dark:text-zinc-100">{{ $module['name'] }}</div>
|
||||
<div class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">{{ $module['alias'] }}</div>
|
||||
<div class="mt-2 flex flex-wrap gap-2">
|
||||
<span class="rounded-full border border-zinc-300 px-2 py-0.5 text-xs font-semibold text-zinc-600 dark:border-zinc-700 dark:text-zinc-300">{{ $module['category'] }}</span>
|
||||
<span class="rounded-full border border-zinc-300 px-2 py-0.5 text-xs font-semibold text-zinc-600 dark:border-zinc-700 dark:text-zinc-300">{{ $module['vendor_type'] }}</span>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||
<thead class="bg-zinc-50 dark:bg-zinc-950/70">
|
||||
<tr>
|
||||
<th class="w-10 px-4 py-3 text-left"><span class="sr-only">Select</span></th>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500">Module</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500">Description</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500">Version</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500">Status</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-zinc-500">Last Updated</th>
|
||||
<th class="px-4 py-3 text-right text-xs font-semibold uppercase tracking-wide text-zinc-500">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody class="divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||
@forelse ($modules as $module)
|
||||
<tr class="align-top transition hover:bg-zinc-50 dark:hover:bg-zinc-950/50">
|
||||
<td class="px-4 py-4">
|
||||
<input type="checkbox" name="modules[]" value="{{ $module['name'] }}" class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex gap-3">
|
||||
<div class="flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-zinc-200 bg-zinc-50 text-zinc-700 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">
|
||||
<i class="fa-solid {{ $module['icon'] ?: 'fa-puzzle-piece' }}" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="min-w-0">
|
||||
<div class="font-semibold text-zinc-950 dark:text-zinc-100">{{ $module['name'] }}</div>
|
||||
<div class="mt-1 text-xs text-zinc-500">{{ $module['alias'] }}</div>
|
||||
<div class="mt-2 flex flex-wrap gap-1.5">
|
||||
<span class="rounded-full border border-zinc-300 px-2 py-0.5 text-[11px] font-semibold text-zinc-600 dark:border-zinc-700 dark:text-zinc-300">{{ $module['category'] }}</span>
|
||||
<span class="rounded-full border border-zinc-300 px-2 py-0.5 text-[11px] font-semibold text-zinc-600 dark:border-zinc-700 dark:text-zinc-300">{{ $module['vendor_type'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="max-w-xl px-4 py-5 align-top text-sm leading-6 text-zinc-600 dark:text-zinc-300">
|
||||
{{ $module['description'] ?: 'No database description saved yet.' }}
|
||||
</td>
|
||||
<td class="px-4 py-5 align-top text-sm font-semibold text-zinc-700 dark:text-zinc-300">
|
||||
{{ $module['version'] ?: '—' }}
|
||||
</td>
|
||||
<td class="px-4 py-5 align-top">
|
||||
@if ($module['enabled'])
|
||||
<span class="inline-flex items-center gap-2 rounded-full border border-emerald-500/40 bg-emerald-500/10 px-3 py-1 text-xs font-black text-emerald-700 dark:text-emerald-300">
|
||||
<i class="fa-solid fa-check-circle" aria-hidden="true"></i>{{ __('Enabled') }}
|
||||
</span>
|
||||
@else
|
||||
<span class="inline-flex items-center gap-2 rounded-full border border-red-500/40 bg-red-500/10 px-3 py-1 text-xs font-black text-red-700 dark:text-red-300">
|
||||
<i class="fa-solid fa-circle-pause" aria-hidden="true"></i>{{ __('Disabled') }}
|
||||
</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="px-4 py-5 align-top text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{{ $module['updated_at']?->format('d M Y H:i') ?? '—' }}
|
||||
</td>
|
||||
<td class="px-4 py-5 align-top">
|
||||
<div class="flex justify-end gap-2">
|
||||
<a href="{{ route('modules.control.show', $module['name']) }}" wire:navigate class="inline-flex items-center justify-center rounded-xl border border-emerald-500/40 bg-emerald-600 px-4 py-2 text-sm font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/50">
|
||||
{{ __('View') }}
|
||||
</a>
|
||||
|
||||
@if ($module['enabled'])
|
||||
<button formaction="{{ route('modules.control.disable', $module['name']) }}" formmethod="POST" type="submit" class="inline-flex items-center justify-center rounded-xl border border-red-500/40 bg-red-600 px-4 py-2 text-sm font-black text-white shadow-sm transition hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-400/50">
|
||||
{{ __('Disable') }}
|
||||
</button>
|
||||
@else
|
||||
<button formaction="{{ route('modules.control.enable', $module['name']) }}" formmethod="POST" type="submit" class="inline-flex items-center justify-center rounded-xl border border-emerald-500/40 bg-emerald-600 px-4 py-2 text-sm font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/50">
|
||||
{{ __('Enable') }}
|
||||
</button>
|
||||
</td>
|
||||
<td class="max-w-md px-4 py-4">
|
||||
<p class="line-clamp-3 text-sm leading-6 text-zinc-700 dark:text-zinc-300">
|
||||
{{ $module['description'] ?: 'No database description saved.' }}
|
||||
</p>
|
||||
@if ($module['has_missing_dependencies'])
|
||||
<div class="mt-2 rounded-lg border border-orange-500/30 bg-orange-500/10 px-2 py-1 text-xs font-semibold text-orange-700 dark:text-orange-300">
|
||||
Missing: {{ implode(', ', $module['missing_dependencies']) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="7" class="px-4 py-12 text-center text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{{ __('No modules matched your filters.') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-zinc-700 dark:text-zinc-300">
|
||||
<div>{{ $module['version'] ?: '—' }}</div>
|
||||
@if ($module['has_update'])
|
||||
<span class="mt-1 inline-flex rounded-full border border-amber-500/30 bg-amber-500/10 px-2 py-0.5 text-xs font-semibold text-amber-700 dark:text-amber-300">Update available</span>
|
||||
@elseif ($module['database_version'])
|
||||
<span class="mt-1 inline-flex text-xs text-blue-600 dark:text-blue-300">Database</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
@if ($module['enabled'])
|
||||
<span class="inline-flex items-center gap-1.5 rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1 text-xs font-semibold text-emerald-700 dark:text-emerald-300">
|
||||
<i class="fa-solid fa-circle-check" aria-hidden="true"></i> Enabled
|
||||
</span>
|
||||
@else
|
||||
<span class="inline-flex items-center gap-1.5 rounded-full border border-red-500/30 bg-red-500/10 px-3 py-1 text-xs font-semibold text-red-700 dark:text-red-300">
|
||||
<i class="fa-solid fa-circle-pause" aria-hidden="true"></i> Disabled
|
||||
</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="px-4 py-4 text-sm text-zinc-600 dark:text-zinc-400">
|
||||
{{ $module['updated_at']?->format('d M Y H:i') ?? '—' }}
|
||||
</td>
|
||||
<td class="px-4 py-4">
|
||||
<div class="flex justify-end gap-2">
|
||||
<a href="{{ route('modules.control.show', $module['name']) }}" class="rounded-lg border border-emerald-500/40 bg-emerald-600 px-3 py-1.5 text-sm font-semibold text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/40">View</a>
|
||||
@if ($module['enabled'])
|
||||
<button type="submit" formaction="{{ route('modules.control.disable', $module['name']) }}" class="rounded-lg border border-red-500/40 bg-red-600 px-3 py-1.5 text-sm font-semibold text-white hover:bg-red-700" @disabled(! $module['can_disable'])>
|
||||
Disable
|
||||
</button>
|
||||
@else
|
||||
<button type="submit" formaction="{{ route('modules.control.enable', $module['name']) }}" class="rounded-lg border border-emerald-500/40 bg-emerald-600 px-3 py-1.5 text-sm font-semibold text-white hover:bg-emerald-700">
|
||||
Enable
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="7" class="px-4 py-12 text-center">
|
||||
<div class="mx-auto flex h-12 w-12 items-center justify-center rounded-full border border-zinc-200 bg-zinc-50 text-zinc-500 dark:border-zinc-800 dark:bg-zinc-950">
|
||||
<i class="fa-solid fa-magnifying-glass" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="mt-3 font-semibold text-zinc-900 dark:text-zinc-100">No modules found</div>
|
||||
<div class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">Adjust the search or filter and try again.</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
+192
-201
@@ -1,57 +1,65 @@
|
||||
<x-layouts.app :title="$module['name'].' Module'">
|
||||
<section class="overflow-hidden rounded-2xl border border-slate-700/60 bg-gradient-to-br from-slate-950 via-blue-950 to-slate-900 px-8 py-8 shadow-2xl shadow-slate-950/30 sm:px-10">
|
||||
<div class="grid gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(26rem,35rem)] lg:items-start">
|
||||
<div class="min-w-0">
|
||||
<p class="text-xs font-black uppercase tracking-[0.30em] text-cyan-300">
|
||||
{{ __('Module Control') }}
|
||||
</p>
|
||||
|
||||
<h1 class="mt-5 text-4xl font-black tracking-tight text-white sm:text-5xl">
|
||||
{{ $module['name'] }} {{ __('Module') }}
|
||||
</h1>
|
||||
|
||||
<p class="mt-5 max-w-3xl text-base font-semibold leading-7 text-blue-50/85 sm:text-lg">
|
||||
{{ __('Database metadata, dependencies, developer information and activation controls.') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="space-y-5">
|
||||
<div class="flex items-center justify-end gap-5">
|
||||
<span class="inline-flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl border border-emerald-300/70 bg-emerald-400/10 text-emerald-200 shadow-sm">
|
||||
<i class="fa-solid {{ $module['icon'] ?: 'fa-chart-line' }} text-2xl" aria-hidden="true"></i>
|
||||
</span>
|
||||
|
||||
<div class="h-16 w-px bg-white/15"></div>
|
||||
|
||||
<a href="{{ route('modules.control.index') }}" wire:navigate
|
||||
class="inline-flex min-h-14 items-center justify-center gap-3 rounded-2xl border border-emerald-400/50 bg-emerald-600/15 px-6 py-3 text-sm font-black text-emerald-100 shadow-sm transition hover:border-emerald-300 hover:bg-emerald-600/30 hover:text-white focus:outline-none focus:ring-2 focus:ring-emerald-300/50">
|
||||
<i class="fa-solid fa-arrow-left text-sm" aria-hidden="true"></i>
|
||||
{{ __('Back to Module Control') }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-white/15 bg-slate-950/25 p-5 shadow-xl backdrop-blur">
|
||||
<div class="grid grid-cols-2 divide-x divide-white/15">
|
||||
<div class="px-4 first:pl-0">
|
||||
<div class="text-xs font-black uppercase tracking-[0.20em] text-blue-100/80">{{ __('Status') }}</div>
|
||||
<div class="mt-3 text-2xl font-black {{ $module['enabled'] ? 'text-emerald-300' : 'text-red-300' }}">
|
||||
{{ $module['enabled'] ? __('Enabled') : __('Disabled') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="px-4">
|
||||
<div class="text-xs font-black uppercase tracking-[0.20em] text-blue-100/80">{{ __('Requires') }}</div>
|
||||
<div class="mt-3 text-2xl font-black text-white">{{ count($module['requires']) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@php
|
||||
$fileGroups = [
|
||||
'Routes' => $module['routes'] ?? [],
|
||||
'Migrations' => $module['migrations'] ?? [],
|
||||
'Models' => $module['models'] ?? [],
|
||||
'Controllers' => $module['controllers'] ?? [],
|
||||
'Providers' => $module['providers'] ?? [],
|
||||
'Service Providers' => $module['providers'] ?? [],
|
||||
];
|
||||
@endphp
|
||||
|
||||
<div class="space-y-6">
|
||||
<section class="overflow-hidden rounded-2xl border border-blue-900/40 bg-gradient-to-br from-slate-950 via-blue-950 to-slate-950 p-8 text-white shadow-sm sm:p-10">
|
||||
<div class="grid gap-8 lg:grid-cols-[minmax(0,1fr)_38rem] lg:items-start">
|
||||
<div class="max-w-3xl">
|
||||
<p class="text-xs font-black uppercase tracking-[0.34em] text-cyan-300">{{ __('Module Control') }}</p>
|
||||
<h1 class="mt-6 text-4xl font-black tracking-tight text-white sm:text-5xl">{{ $module['name'] }} {{ __('Module') }}</h1>
|
||||
<p class="mt-5 max-w-2xl text-base font-semibold leading-7 text-blue-50/90 sm:text-lg">
|
||||
{{ __('Database metadata, dependencies, developer information and activation controls.') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="space-y-6 lg:mt-1">
|
||||
<div class="flex items-center justify-end gap-6">
|
||||
<span class="inline-flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl border border-emerald-300/60 bg-emerald-400/10 text-emerald-200 shadow-sm">
|
||||
<i class="fa-solid {{ $module['icon'] ?: 'fa-chart-line' }} text-2xl" aria-hidden="true"></i>
|
||||
</span>
|
||||
|
||||
<div class="h-16 w-px bg-white/15"></div>
|
||||
|
||||
<a href="{{ route('modules.control.index') }}" wire:navigate class="inline-flex min-h-14 items-center justify-center gap-3 rounded-2xl border border-emerald-400/60 bg-emerald-600 px-7 py-3 text-sm font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-300/60">
|
||||
<i class="fa-solid fa-arrow-left" aria-hidden="true"></i>
|
||||
{{ __('Back to Module Control') }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-white/25 bg-slate-950/25 p-5 shadow-sm ring-1 ring-white/10 backdrop-blur">
|
||||
<div class="grid grid-cols-2 divide-x divide-white/15">
|
||||
<div class="pr-5">
|
||||
<div class="text-xs font-black uppercase tracking-[0.24em] text-blue-100/90">{{ __('Status') }}</div>
|
||||
<div class="mt-4 text-2xl font-black {{ $module['enabled'] ? 'text-emerald-300' : 'text-red-300' }}">
|
||||
{{ $module['enabled'] ? __('Enabled') : __('Disabled') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="pl-5">
|
||||
<div class="text-xs font-black uppercase tracking-[0.24em] text-blue-100/90">{{ __('Requires') }}</div>
|
||||
<div class="mt-4 text-2xl font-black text-white">{{ count($module['requires'] ?? []) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@foreach (['status' => 'emerald', 'warning' => 'amber', 'error' => 'red'] as $flash => $tone)
|
||||
@if (session($flash))
|
||||
<div class="rounded-2xl border px-4 py-3 text-sm font-medium {{ $tone === 'emerald' ? 'border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300' : ($tone === 'amber' ? 'border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300' : 'border-red-500/40 bg-red-500/10 text-red-700 dark:text-red-300') }}">
|
||||
@@ -60,233 +68,216 @@
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<div class="grid gap-6 xl:grid-cols-[minmax(0,1fr)_24rem]">
|
||||
<div class="space-y-6">
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between">
|
||||
<div class="flex items-start gap-4">
|
||||
<span class="inline-flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl border border-zinc-200 bg-zinc-950 text-white shadow-sm dark:border-zinc-700">
|
||||
<i class="fa-solid {{ $module['icon'] ?: 'fa-puzzle-piece' }} text-2xl" aria-hidden="true"></i>
|
||||
</span>
|
||||
<div>
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<h2 class="text-2xl font-black text-zinc-950 dark:text-zinc-100">{{ $module['name'] }}</h2>
|
||||
@if ($module['enabled'])
|
||||
<span class="rounded-full border border-emerald-500/40 bg-emerald-500/10 px-3 py-1 text-xs font-black text-emerald-700 dark:text-emerald-300">{{ __('Enabled') }}</span>
|
||||
@else
|
||||
<span class="rounded-full border border-red-500/40 bg-red-500/10 px-3 py-1 text-xs font-black text-red-700 dark:text-red-300">{{ __('Disabled') }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">{{ $module['alias'] }}</p>
|
||||
<p class="mt-4 max-w-3xl text-sm leading-6 text-zinc-600 dark:text-zinc-300">{{ $module['description'] ?: 'No database description saved yet.' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid min-w-64 grid-cols-2 gap-3 text-sm">
|
||||
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950/70">
|
||||
<div class="text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Version') }}</div>
|
||||
<div class="mt-2 font-bold text-zinc-950 dark:text-zinc-100">{{ $module['version'] ?: '—' }}</div>
|
||||
</div>
|
||||
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950/70">
|
||||
<div class="text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Author') }}</div>
|
||||
<div class="mt-2 font-bold text-zinc-950 dark:text-zinc-100">{{ $module['author'] ?: '—' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid gap-4 lg:grid-cols-4">
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="flex h-12 w-12 items-center justify-center rounded-xl border border-zinc-200 bg-zinc-50 text-zinc-700 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-200">
|
||||
<i class="fa-solid {{ $module['icon'] ?: 'fa-puzzle-piece' }}" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Module</div>
|
||||
<div class="font-semibold text-zinc-950 dark:text-zinc-100">{{ $module['name'] }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Status</div>
|
||||
<div class="mt-2">
|
||||
@if ($module['enabled'])
|
||||
<span class="inline-flex items-center gap-1.5 rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1 text-xs font-semibold text-emerald-700 dark:text-emerald-300"><i class="fa-solid fa-circle-check"></i> Enabled</span>
|
||||
@else
|
||||
<span class="inline-flex items-center gap-1.5 rounded-full border border-red-500/30 bg-red-500/10 px-3 py-1 text-xs font-semibold text-red-700 dark:text-red-300"><i class="fa-solid fa-circle-pause"></i> Disabled</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Version</div>
|
||||
<div class="mt-2 font-semibold text-zinc-950 dark:text-zinc-100">{{ $module['version'] ?: '—' }}</div>
|
||||
@if ($module['has_update'])
|
||||
<div class="mt-1 text-xs font-semibold text-amber-700 dark:text-amber-300">Update available</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Dependencies</div>
|
||||
<div class="mt-2 font-semibold {{ $module['has_missing_dependencies'] ? 'text-orange-700 dark:text-orange-300' : 'text-zinc-950 dark:text-zinc-100' }}">
|
||||
{{ count($module['requires']) }} required
|
||||
</div>
|
||||
@if ($module['has_missing_dependencies'])
|
||||
<div class="mt-1 text-xs text-orange-700 dark:text-orange-300">Missing dependency</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-6 xl:grid-cols-3">
|
||||
<div class="space-y-6 xl:col-span-2">
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">{{ __('Database metadata') }}</h2>
|
||||
<form method="POST" action="{{ route('modules.control.update', $module['name']) }}" class="mt-5 grid gap-5">
|
||||
<div>
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Database metadata</h2>
|
||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">These fields are saved only in the module_statuses table.</p>
|
||||
</div>
|
||||
|
||||
<form method="POST" action="{{ route('modules.control.update', $module['name']) }}" class="mt-6 space-y-5">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Description') }}</label>
|
||||
<textarea name="description" rows="4" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">{{ old('description', $module['database_description']) }}</textarea>
|
||||
<label for="description" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Description</label>
|
||||
<textarea id="description" name="description" rows="5" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" placeholder="Add the database-only module description...">{{ old('description', $module['database_description'] ?? $module['description']) }}</textarea>
|
||||
@error('description')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
|
||||
<div class="grid gap-4 md:grid-cols-3">
|
||||
<div class="grid gap-5 md:grid-cols-2">
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Version') }}</label>
|
||||
<input name="version" value="{{ old('version', $module['database_version']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
<label for="version" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Version</label>
|
||||
<input id="version" name="version" type="text" maxlength="50" value="{{ old('version', $module['database_version'] ?? $module['version']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" placeholder="Example: 1.0.0" />
|
||||
<p class="mt-2 text-xs text-zinc-500 dark:text-zinc-400">Disk version: {{ $module['disk_version'] ?: '—' }}</p>
|
||||
@error('version')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Sort order') }}</label>
|
||||
<input name="sort_order" type="number" min="0" value="{{ old('sort_order', $module['sort_order']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Icon') }}</label>
|
||||
<input name="icon" value="{{ old('icon', $module['icon']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-4 md:grid-cols-3">
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Category') }}</label>
|
||||
<input name="category" value="{{ old('category', $module['category']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
<label for="sort_order" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Sort order</label>
|
||||
<input id="sort_order" name="sort_order" type="number" min="0" value="{{ old('sort_order', $module['sort_order']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
@error('sort_order')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Vendor type') }}</label>
|
||||
<input name="vendor_type" value="{{ old('vendor_type', $module['vendor_type']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
<label for="icon" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Font Awesome icon</label>
|
||||
<input id="icon" name="icon" type="text" maxlength="80" value="{{ old('icon', $module['icon']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" placeholder="fa-puzzle-piece" />
|
||||
@error('icon')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Author') }}</label>
|
||||
<input name="author" value="{{ old('author', $module['author']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
<label for="category" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Category</label>
|
||||
<select id="category" name="category" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
||||
@foreach (['Core', 'Optional'] as $option)
|
||||
<option value="{{ $option }}" @selected(old('category', $module['category']) === $option)>{{ $option }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@error('category')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="vendor_type" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Vendor type</label>
|
||||
<select id="vendor_type" name="vendor_type" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">
|
||||
@foreach (['MPBA', 'Third-party'] as $option)
|
||||
<option value="{{ $option }}" @selected(old('vendor_type', $module['vendor_type']) === $option)>{{ $option }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@error('vendor_type')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="author" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Author</label>
|
||||
<input id="author" name="author" type="text" maxlength="120" value="{{ old('author', $module['author']) }}" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-2 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" />
|
||||
@error('author')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="block text-xs font-black uppercase tracking-wide text-zinc-500">{{ __('Notes') }}</label>
|
||||
<textarea name="notes" rows="3" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">{{ old('notes', $module['notes']) }}</textarea>
|
||||
<label for="notes" class="block text-sm font-semibold text-zinc-800 dark:text-zinc-200">Internal notes</label>
|
||||
<textarea id="notes" name="notes" rows="4" class="mt-2 w-full rounded-xl border border-zinc-300 bg-white px-4 py-3 text-sm text-zinc-900 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100">{{ old('notes', $module['notes']) }}</textarea>
|
||||
@error('notes')<p class="mt-2 text-sm text-red-600">{{ $message }}</p>@enderror
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end">
|
||||
<button type="submit" class="rounded-xl border border-blue-500/40 bg-blue-600 px-5 py-2 text-sm font-black text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/50">
|
||||
{{ __('Save metadata') }}
|
||||
</button>
|
||||
</div>
|
||||
<button type="submit" class="rounded-xl border border-blue-500/40 bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500/30">Save Module Metadata</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-6 lg:grid-cols-2">
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">{{ __('Dependencies') }}</h2>
|
||||
<div class="mt-5 grid gap-4">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Dependencies</h2>
|
||||
<div class="mt-4 space-y-3 text-sm">
|
||||
<div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">{{ __('Requires') }}</div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Required modules</div>
|
||||
<div class="mt-1 text-zinc-800 dark:text-zinc-200">{{ empty($module['requires']) ? 'None' : implode(', ', $module['requires']) }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">{{ __('Missing dependencies') }}</div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Missing dependencies</div>
|
||||
<div class="mt-1 {{ $module['has_missing_dependencies'] ? 'text-orange-700 dark:text-orange-300' : 'text-zinc-800 dark:text-zinc-200' }}">{{ empty($module['missing_dependencies']) ? 'None' : implode(', ', $module['missing_dependencies']) }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">{{ __('Enabled dependents') }}</div>
|
||||
<div class="text-xs font-semibold uppercase text-zinc-500">Enabled dependents</div>
|
||||
<div class="mt-1 {{ $module['can_disable'] ? 'text-zinc-800 dark:text-zinc-200' : 'text-orange-700 dark:text-orange-300' }}">{{ empty($module['enabled_dependents']) ? 'None' : implode(', ', $module['enabled_dependents']) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">{{ __('Activation') }}</h2>
|
||||
<p class="mt-2 text-sm text-zinc-500 dark:text-zinc-400">{{ __('Disabling is blocked when another enabled module depends on this module.') }}</p>
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Activation</h2>
|
||||
<p class="mt-2 text-sm text-zinc-500 dark:text-zinc-400">Disabling is blocked when another enabled module depends on this module.</p>
|
||||
<div class="mt-5">
|
||||
@if ($module['enabled'])
|
||||
<form method="POST" action="{{ route('modules.control.disable', $module['name']) }}">
|
||||
@csrf
|
||||
<button type="submit" class="w-full rounded-xl border border-red-500/40 bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:bg-red-700 disabled:cursor-not-allowed disabled:opacity-50" @disabled(! $module['can_disable'])>{{ __('Disable Module') }}</button>
|
||||
<button type="submit" class="w-full rounded-xl border border-red-500/40 bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-700 disabled:cursor-not-allowed disabled:opacity-50" @disabled(! $module['can_disable'])>Disable Module</button>
|
||||
</form>
|
||||
@else
|
||||
<form method="POST" action="{{ route('modules.control.enable', $module['name']) }}">
|
||||
@csrf
|
||||
<button type="submit" class="w-full rounded-xl border border-emerald-500/40 bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:bg-emerald-700">{{ __('Enable Module') }}</button>
|
||||
<button type="submit" class="w-full rounded-xl border border-emerald-500/40 bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-700">Enable Module</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<details class="group overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||
<summary class="flex cursor-pointer list-none items-center justify-between gap-3 bg-gradient-to-r from-slate-950 via-blue-950 to-slate-900 px-4 py-3 text-white marker:hidden sm:px-5">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<span class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-blue-500/25 text-white ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-code text-sm" aria-hidden="true"></i>
|
||||
</span>
|
||||
<div class="min-w-0">
|
||||
<p class="text-[0.65rem] font-black uppercase tracking-[0.18em] text-blue-200">{{ __('Developer') }}</p>
|
||||
<h2 class="truncate text-base font-extrabold tracking-tight">{{ __('Developer files') }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<span class="inline-flex shrink-0 items-center gap-2 rounded-xl bg-white/15 px-3 py-1.5 text-xs font-extrabold ring-1 ring-white/20">
|
||||
{{ __('Files') }}
|
||||
<i class="fa-solid fa-chevron-right transition group-open:rotate-90" aria-hidden="true"></i>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="p-5">
|
||||
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
||||
@foreach ($fileGroups as $label => $files)
|
||||
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950/60">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<h3 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ $label }}</h3>
|
||||
<span class="rounded-full border border-zinc-300 px-2 py-0.5 text-xs font-semibold text-zinc-600 dark:border-zinc-700 dark:text-zinc-300">{{ count($files) }}</span>
|
||||
</div>
|
||||
<ul class="mt-3 max-h-36 space-y-1 overflow-auto text-xs text-zinc-600 dark:text-zinc-400">
|
||||
@forelse ($files as $file)
|
||||
<li class="break-all">{{ $file }}</li>
|
||||
@empty
|
||||
<li>{{ __('None found.') }}</li>
|
||||
@endforelse
|
||||
</ul>
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Developer files</h2>
|
||||
<div class="mt-5 grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
||||
@foreach ($fileGroups as $label => $files)
|
||||
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-4 dark:border-zinc-800 dark:bg-zinc-950/60">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<h3 class="text-sm font-semibold text-zinc-900 dark:text-zinc-100">{{ $label }}</h3>
|
||||
<span class="rounded-full border border-zinc-300 px-2 py-0.5 text-xs font-semibold text-zinc-600 dark:border-zinc-700 dark:text-zinc-300">{{ count($files) }}</span>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<ul class="mt-3 max-h-36 space-y-1 overflow-auto text-xs text-zinc-600 dark:text-zinc-400">
|
||||
@forelse ($files as $file)
|
||||
<li class="break-all">{{ $file }}</li>
|
||||
@empty
|
||||
<li>None found.</li>
|
||||
@endforelse
|
||||
</ul>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-6 lg:grid-cols-2">
|
||||
<details class="group overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||
<summary class="flex cursor-pointer list-none items-center justify-between gap-3 bg-gradient-to-r from-slate-950 via-blue-950 to-slate-900 px-4 py-3 text-white marker:hidden sm:px-5">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<span class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-blue-500/25 text-white ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-book-open text-sm" aria-hidden="true"></i>
|
||||
</span>
|
||||
<h2 class="truncate text-base font-extrabold tracking-tight">{{ __('README preview') }}</h2>
|
||||
</div>
|
||||
<span class="inline-flex shrink-0 items-center gap-2 rounded-xl bg-white/15 px-3 py-1.5 text-xs font-extrabold ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-chevron-right transition group-open:rotate-90" aria-hidden="true"></i>
|
||||
</span>
|
||||
</summary>
|
||||
<pre class="max-h-96 overflow-auto whitespace-pre-wrap p-5 text-xs leading-6 text-zinc-700 dark:text-zinc-300">{{ $module['readme'] ?: 'No README found.' }}</pre>
|
||||
</details>
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">README preview</h2>
|
||||
<pre class="mt-4 max-h-96 overflow-auto whitespace-pre-wrap rounded-xl border border-zinc-200 bg-zinc-50 p-4 text-xs leading-6 text-zinc-700 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-300">{{ $module['readme'] ?: 'No README found.' }}</pre>
|
||||
</div>
|
||||
|
||||
<details open class="group overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||
<summary class="flex cursor-pointer list-none items-center justify-between gap-3 bg-gradient-to-r from-slate-950 via-blue-950 to-slate-900 px-4 py-3 text-white marker:hidden sm:px-5">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<span class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-blue-500/25 text-white ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-clock-rotate-left text-sm" aria-hidden="true"></i>
|
||||
</span>
|
||||
<h2 class="truncate text-base font-extrabold tracking-tight">{{ __('Changelog preview') }}</h2>
|
||||
</div>
|
||||
<span class="inline-flex shrink-0 items-center gap-2 rounded-xl bg-white/15 px-3 py-1.5 text-xs font-extrabold ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-chevron-right transition group-open:rotate-90" aria-hidden="true"></i>
|
||||
</span>
|
||||
</summary>
|
||||
<pre class="max-h-96 overflow-auto whitespace-pre-wrap p-5 text-xs leading-6 text-zinc-700 dark:text-zinc-300">{{ $module['changelog'] ?: 'No changelog found.' }}</pre>
|
||||
</details>
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Changelog preview</h2>
|
||||
<pre class="mt-4 max-h-96 overflow-auto whitespace-pre-wrap rounded-xl border border-zinc-200 bg-zinc-50 p-4 text-xs leading-6 text-zinc-700 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-300">{{ $module['changelog'] ?: 'No changelog found.' }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="space-y-6">
|
||||
<details class="group overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
|
||||
<summary class="flex cursor-pointer list-none items-center justify-between gap-3 bg-gradient-to-r from-slate-950 via-blue-950 to-slate-900 px-4 py-3 text-white marker:hidden sm:px-5">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<span class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-blue-500/25 text-white ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-terminal text-sm" aria-hidden="true"></i>
|
||||
</span>
|
||||
<h2 class="truncate text-base font-extrabold tracking-tight">{{ __('Developer information') }}</h2>
|
||||
</div>
|
||||
<span class="inline-flex shrink-0 items-center gap-2 rounded-xl bg-white/15 px-3 py-1.5 text-xs font-extrabold ring-1 ring-white/20">
|
||||
<i class="fa-solid fa-chevron-right transition group-open:rotate-90" aria-hidden="true"></i>
|
||||
</span>
|
||||
</summary>
|
||||
<dl class="space-y-4 p-5 text-sm">
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Installed path') }}</dt><dd class="mt-1 break-all text-zinc-900 dark:text-zinc-100">{{ $module['path'] }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Namespace') }}</dt><dd class="mt-1 break-all text-zinc-900 dark:text-zinc-100">{{ $module['namespace'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Composer package') }}</dt><dd class="mt-1 break-all text-zinc-900 dark:text-zinc-100">{{ $module['composer_name'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Git commit') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['git_commit'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Build date') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['build_date'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Database record') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">ID {{ $module['status_record']?->id ?? '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Last updated') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['updated_at']?->format('d M Y H:i') ?? '—' }}</dd></div>
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Developer information</h2>
|
||||
<dl class="mt-5 space-y-4 text-sm">
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Installed path</dt><dd class="mt-1 break-all text-zinc-900 dark:text-zinc-100">{{ $module['path'] }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Namespace</dt><dd class="mt-1 break-all text-zinc-900 dark:text-zinc-100">{{ $module['namespace'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Composer package</dt><dd class="mt-1 break-all text-zinc-900 dark:text-zinc-100">{{ $module['composer_name'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Git commit</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['git_commit'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Build date</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['build_date'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Database record</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">ID {{ $module['status_record']?->id ?? '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Last updated</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['updated_at']?->format('d M Y H:i') ?? '—' }}</dd></div>
|
||||
</dl>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">{{ __('Disk metadata') }}</h2>
|
||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Disk metadata</h2>
|
||||
<dl class="mt-5 space-y-4 text-sm">
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Alias') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['alias'] }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Disk version') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['disk_version'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">{{ __('Disk description') }}</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['disk_description'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Alias</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['alias'] }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Disk version</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['disk_version'] ?: '—' }}</dd></div>
|
||||
<div><dt class="text-xs font-semibold uppercase text-zinc-500">Disk description</dt><dd class="mt-1 text-zinc-900 dark:text-zinc-100">{{ $module['disk_description'] ?: '—' }}</dd></div>
|
||||
</dl>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
Reference in New Issue
Block a user