with pagination nwo with the proper view selection

This commit is contained in:
Mark Gregory
2026-07-01 13:42:51 +01:00
parent f697fca305
commit 5118595871
2 changed files with 67 additions and 18 deletions
+35 -8
View File
@@ -1,17 +1,44 @@
<x-layouts.app :title="__('Module Control')">
<section class="overflow-hidden rounded-2xl border border-zinc-800 bg-gradient-to-br from-slate-950 via-blue-950 to-cyan-800 px-8 py-8 shadow-sm sm:px-10">
<div class="flex flex-col gap-8 lg:flex-row lg:items-center lg:justify-between">
<section class="relative overflow-hidden rounded-2xl border border-slate-800 bg-gradient-to-br from-slate-950 via-blue-950 to-slate-900 shadow-sm">
<div class="absolute inset-0 bg-[radial-gradient(circle_at_85%_25%,rgba(34,211,238,0.22),transparent_32%),radial-gradient(circle_at_75%_80%,rgba(16,185,129,0.16),transparent_30%)]"></div>
<div class="relative grid gap-6 px-6 py-6 sm:px-8 lg:grid-cols-[minmax(0,1fr)_20rem] lg:items-center lg:py-7 xl:grid-cols-[minmax(0,1fr)_24rem]">
<div class="min-w-0">
<p class="text-xs font-black uppercase tracking-[0.34em] text-cyan-300">{{ __('Module Control') }}</p>
<h1 class="mt-4 text-4xl font-black tracking-tight text-white sm:text-5xl">{{ __('Module Control') }}</h1>
<p class="mt-4 max-w-3xl text-base font-medium leading-7 text-slate-200">
<p class="text-xs font-black uppercase tracking-[0.28em] text-cyan-200">{{ __('Platform Administration') }}</p>
<h1 class="mt-3 text-3xl font-black tracking-tight text-white sm:text-4xl">{{ __('Module Control') }}</h1>
<p class="mt-3 max-w-3xl text-sm font-semibold leading-6 text-slate-200 sm:text-base">
{{ __('Manage installed modules, database metadata, dependencies and activation state.') }}
</p>
</div>
<div class="flex shrink-0 items-center justify-end">
<div class="inline-flex h-24 w-24 items-center justify-center rounded-2xl border border-cyan-300/20 bg-white/10 text-emerald-300 shadow-sm ring-1 ring-white/10 backdrop-blur">
<i class="fa-solid fa-puzzle-piece text-4xl" aria-hidden="true"></i>
<div class="hidden lg:block">
<div class="relative ml-auto max-w-sm rounded-2xl border border-white/10 bg-white/[0.08] p-4 shadow-2xl shadow-slate-950/40 ring-1 ring-white/10 backdrop-blur">
<div class="flex items-center justify-between gap-3">
<span class="inline-flex h-14 w-14 items-center justify-center rounded-2xl bg-emerald-500/15 text-emerald-200 ring-1 ring-emerald-300/25">
<i class="fa-solid fa-puzzle-piece text-2xl" aria-hidden="true"></i>
</span>
<span class="rounded-full bg-white/10 px-3 py-1 text-[0.65rem] font-black uppercase tracking-[0.16em] text-cyan-100 ring-1 ring-white/10">
{{ __('Database backed') }}
</span>
</div>
<div class="mt-5 grid grid-cols-3 gap-3">
<div class="rounded-xl border border-white/10 bg-slate-950/40 p-3">
<div class="text-2xl font-black text-white">{{ $stats['installed'] }}</div>
<div class="mt-1 text-[0.65rem] font-bold uppercase tracking-wide text-slate-300">{{ __('Installed') }}</div>
</div>
<div class="rounded-xl border border-emerald-300/20 bg-emerald-500/10 p-3">
<div class="text-2xl font-black text-emerald-100">{{ $stats['enabled'] }}</div>
<div class="mt-1 text-[0.65rem] font-bold uppercase tracking-wide text-emerald-200/90">{{ __('Enabled') }}</div>
</div>
<div class="rounded-xl border border-red-300/20 bg-red-500/10 p-3">
<div class="text-2xl font-black text-red-100">{{ $stats['disabled'] }}</div>
<div class="mt-1 text-[0.65rem] font-bold uppercase tracking-wide text-red-200/90">{{ __('Disabled') }}</div>
</div>
</div>
<div class="mt-4 h-2 overflow-hidden rounded-full bg-white/10">
<div class="h-full rounded-full bg-gradient-to-r from-emerald-400 via-cyan-300 to-blue-400" style="width: {{ $stats['installed'] > 0 ? round(($stats['enabled'] / max(1, $stats['installed'])) * 100) : 0 }}%"></div>
</div>
</div>
</div>
</div>
+32 -10
View File
@@ -1,25 +1,47 @@
<x-layouts.app :title="$module['name'].' Module'">
<section class="overflow-hidden rounded-2xl border border-zinc-800 bg-gradient-to-br from-slate-950 via-blue-950 to-cyan-800 px-8 py-8 shadow-sm sm:px-10">
<div class="flex flex-col gap-8 lg:flex-row lg:items-center lg:justify-between">
<section class="relative overflow-hidden rounded-2xl border border-slate-800 bg-gradient-to-br from-slate-950 via-blue-950 to-slate-900 shadow-sm">
<div class="absolute inset-0 bg-[radial-gradient(circle_at_85%_25%,rgba(34,211,238,0.22),transparent_32%),radial-gradient(circle_at_75%_80%,rgba(16,185,129,0.16),transparent_30%)]"></div>
<div class="relative grid gap-6 px-6 py-6 sm:px-8 lg:grid-cols-[minmax(0,1fr)_22rem] lg:items-center lg:py-7 xl:grid-cols-[minmax(0,1fr)_26rem]">
<div class="min-w-0">
<p class="text-xs font-black uppercase tracking-[0.34em] text-cyan-300">{{ __('Module Control') }}</p>
<h1 class="mt-4 text-4xl font-black tracking-tight text-white sm:text-5xl">{{ $module['name'] }} {{ __('Module') }}</h1>
<p class="mt-4 max-w-3xl text-base font-medium leading-7 text-slate-200">
<p class="text-xs font-black uppercase tracking-[0.28em] text-cyan-200">{{ __('Module Control') }}</p>
<h1 class="mt-3 text-3xl font-black tracking-tight text-white sm:text-4xl">{{ $module['name'] }} {{ __('Module') }}</h1>
<p class="mt-3 max-w-3xl text-sm font-semibold leading-6 text-slate-200 sm:text-base">
{{ __('Database metadata, dependencies, developer information and activation controls.') }}
</p>
</div>
<div class="flex shrink-0 flex-col gap-4 sm:flex-row sm:items-center sm:justify-end">
<div class="flex flex-col gap-4 lg:items-end">
<a href="{{ route('modules.control.index') }}" wire:navigate
class="inline-flex min-h-12 items-center justify-center gap-3 rounded-2xl border border-emerald-400/40 bg-emerald-600 px-6 py-3 text-sm font-black text-white shadow-lg shadow-emerald-950/30 ring-1 ring-white/10 transition hover:bg-emerald-500 focus:outline-none focus:ring-2 focus:ring-emerald-300/60">
class="inline-flex w-full items-center justify-center gap-3 rounded-xl bg-emerald-600 px-5 py-3 text-sm font-black text-white shadow-lg shadow-emerald-950/30 ring-1 ring-emerald-300/30 transition hover:bg-emerald-500 focus:outline-none focus:ring-2 focus:ring-emerald-300/70 sm:w-auto">
<i class="fa-solid fa-arrow-left text-sm" aria-hidden="true"></i>
<span>{{ __('Back to Module Control') }}</span>
</a>
<div class="hidden h-16 w-px bg-white/15 sm:block"></div>
<div class="hidden w-full max-w-sm rounded-2xl border border-white/10 bg-white/[0.08] p-4 shadow-2xl shadow-slate-950/40 ring-1 ring-white/10 backdrop-blur lg:block">
<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 bg-emerald-500/15 text-emerald-200 ring-1 ring-emerald-300/25">
<i class="fa-solid {{ $module['icon'] ?: 'fa-puzzle-piece' }} text-3xl" aria-hidden="true"></i>
</span>
<div class="inline-flex h-20 w-20 items-center justify-center rounded-2xl border border-cyan-300/20 bg-white/10 text-emerald-300 shadow-sm ring-1 ring-white/10 backdrop-blur">
<i class="fa-solid {{ $module['icon'] ?: 'fa-puzzle-piece' }} text-3xl" aria-hidden="true"></i>
<div class="min-w-0 text-right">
<p class="text-[0.65rem] font-black uppercase tracking-[0.16em] text-cyan-100">{{ __('Profile') }}</p>
<p class="mt-1 truncate text-lg font-black text-white">{{ $module['alias'] ?: $module['name'] }}</p>
<p class="mt-1 text-xs font-semibold text-slate-300">{{ $module['version'] ?: __('No version set') }}</p>
</div>
</div>
<div class="mt-4 grid grid-cols-2 gap-3">
<div class="rounded-xl border border-white/10 bg-slate-950/40 p-3">
<div class="text-[0.65rem] font-bold uppercase tracking-wide text-slate-300">{{ __('Status') }}</div>
<div class="mt-1 text-sm font-black {{ $module['enabled'] ? 'text-emerald-200' : 'text-red-200' }}">
{{ $module['enabled'] ? __('Enabled') : __('Disabled') }}
</div>
</div>
<div class="rounded-xl border border-white/10 bg-slate-950/40 p-3">
<div class="text-[0.65rem] font-bold uppercase tracking-wide text-slate-300">{{ __('Requires') }}</div>
<div class="mt-1 text-sm font-black text-white">{{ count($module['requires']) }}</div>
</div>
</div>
</div>
</div>
</div>