Sharing certificates now creates a Share: a public page behind an
unguessable token where the recipient views and downloads the selected
certificates individually or as a ZIP, instead of receiving links or
attachments by email.
- Share model + certificate_share pivot; expiration (1/7/30 days),
optional password (encrypted so the owner can re-view it), revocation,
and open tracking
- Public routes under shared/{token}: password unlock gate (throttled,
session-scoped), per-certificate download, on-the-fly ZIP that is
AES-256 encrypted when the share has a password, friendly 410 page
for expired/revoked links
- Share modal on the certificates index now creates the page and
reveals a copyable link + password; optional transactional email
(ShareCreatedMail) still sends the link to a recipient
- New Shares page in the sidebar to copy links, look up passwords,
revoke, and delete shares
- Old signed-URL controller and both attachment/link mailables removed;
Dutch translations updated; Pest coverage for the full lifecycle
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
115 lines
5.1 KiB
PHP
115 lines
5.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
@include('partials.head')
|
|
</head>
|
|
<body class="min-h-screen bg-white antialiased selection:bg-emerald-200 selection:text-emerald-950 dark:bg-zinc-950 dark:selection:bg-emerald-900 dark:selection:text-emerald-100">
|
|
<flux:sidebar sticky collapsible="mobile" class="border-e border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-900">
|
|
<flux:sidebar.header>
|
|
<x-app-logo :sidebar="true" href="{{ route('dashboard') }}" wire:navigate />
|
|
<flux:sidebar.collapse class="lg:hidden" />
|
|
</flux:sidebar.header>
|
|
|
|
<flux:sidebar.nav>
|
|
<flux:sidebar.group :heading="__('Platform')" class="grid">
|
|
<flux:sidebar.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
|
{{ __('Dashboard') }}
|
|
</flux:sidebar.item>
|
|
<flux:sidebar.item icon="shield-check" :href="route('certificates.index')" :current="request()->routeIs('certificates.index')" wire:navigate>
|
|
{{ __('Certificates') }}
|
|
</flux:sidebar.item>
|
|
<flux:sidebar.item icon="tag" :href="route('categories.index')" :current="request()->routeIs('categories.index')" wire:navigate>
|
|
{{ __('Categories') }}
|
|
</flux:sidebar.item>
|
|
<flux:sidebar.item icon="share" :href="route('shares.index')" :current="request()->routeIs('shares.index')" wire:navigate>
|
|
{{ __('Shares') }}
|
|
</flux:sidebar.item>
|
|
</flux:sidebar.group>
|
|
</flux:sidebar.nav>
|
|
|
|
<flux:spacer />
|
|
|
|
<flux:sidebar.nav>
|
|
<x-language-switcher sidebar />
|
|
</flux:sidebar.nav>
|
|
|
|
<x-desktop-user-menu class="hidden lg:block" :name="auth()->user()->name" />
|
|
</flux:sidebar>
|
|
|
|
<!-- Mobile User Menu -->
|
|
<flux:header class="lg:hidden">
|
|
<flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" />
|
|
|
|
<flux:spacer />
|
|
|
|
<flux:dropdown position="top" align="end">
|
|
<flux:profile
|
|
:initials="auth()->user()->initials()"
|
|
icon-trailing="chevron-down"
|
|
/>
|
|
|
|
<flux:menu>
|
|
<flux:menu.radio.group>
|
|
<div class="p-0 text-sm font-normal">
|
|
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
|
<flux:avatar
|
|
:name="auth()->user()->name"
|
|
:initials="auth()->user()->initials()"
|
|
/>
|
|
|
|
<div class="grid flex-1 text-start text-sm leading-tight">
|
|
<flux:heading class="truncate">{{ auth()->user()->name }}</flux:heading>
|
|
<flux:text class="truncate">{{ auth()->user()->email }}</flux:text>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</flux:menu.radio.group>
|
|
|
|
<flux:menu.separator />
|
|
|
|
<flux:menu.radio.group>
|
|
<flux:menu.item :href="route('profile.edit')" icon="cog" wire:navigate>
|
|
{{ __('Settings') }}
|
|
</flux:menu.item>
|
|
|
|
<flux:menu.submenu heading="{{ __('Language') }}" icon="language">
|
|
@foreach (\App\Enums\Locale::cases() as $locale)
|
|
<flux:menu.item
|
|
:href="route('language.switch', $locale->value)"
|
|
:icon="app()->getLocale() === $locale->value ? 'check' : null"
|
|
>
|
|
{{ $locale->label() }}
|
|
</flux:menu.item>
|
|
@endforeach
|
|
</flux:menu.submenu>
|
|
</flux:menu.radio.group>
|
|
|
|
<flux:menu.separator />
|
|
|
|
<form method="POST" action="{{ route('logout') }}" class="w-full">
|
|
@csrf
|
|
<flux:menu.item
|
|
as="button"
|
|
type="submit"
|
|
icon="arrow-right-start-on-rectangle"
|
|
class="w-full cursor-pointer"
|
|
data-test="logout-button"
|
|
>
|
|
{{ __('Log out') }}
|
|
</flux:menu.item>
|
|
</form>
|
|
</flux:menu>
|
|
</flux:dropdown>
|
|
</flux:header>
|
|
|
|
{{ $slot }}
|
|
|
|
@persist('toast')
|
|
<flux:toast.group>
|
|
<flux:toast />
|
|
</flux:toast.group>
|
|
@endpersist
|
|
|
|
@fluxScripts
|
|
</body>
|
|
</html>
|