Refresh list status over Reverb with polling fallback, clarify queued vs processing, streamline upload empty states, and seed an admin login.
90 lines
3.1 KiB
PHP
90 lines
3.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
@include('partials.head', ['title' => $title ?? null])
|
|
<style>[x-cloak]{display:none!important}</style>
|
|
</head>
|
|
<body class="min-h-screen bg-white text-zinc-800 antialiased dark:bg-zinc-900 dark:text-zinc-100">
|
|
<flux:header container class="border-b border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
|
<flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" />
|
|
|
|
<flux:brand href="{{ route('recordings.index') }}" name="AndyTranscribe" wire:navigate class="max-lg:hidden" />
|
|
|
|
<flux:navbar class="-mb-px max-lg:hidden">
|
|
<flux:navbar.item
|
|
:href="route('recordings.index')"
|
|
:current="request()->routeIs('recordings.index', 'recordings.show')"
|
|
wire:navigate
|
|
>
|
|
{{ __('Recordings') }}
|
|
</flux:navbar.item>
|
|
<flux:navbar.item
|
|
:href="route('recordings.create')"
|
|
:current="request()->routeIs('recordings.create')"
|
|
wire:navigate
|
|
>
|
|
{{ __('Upload') }}
|
|
</flux:navbar.item>
|
|
</flux:navbar>
|
|
|
|
<flux:spacer />
|
|
|
|
<x-disk-space-bar />
|
|
|
|
<x-appearance-toggle />
|
|
|
|
@auth
|
|
<x-desktop-user-menu />
|
|
@endauth
|
|
</flux:header>
|
|
|
|
<flux:sidebar collapsible="mobile" sticky class="lg:hidden">
|
|
<flux:sidebar.header>
|
|
<flux:sidebar.brand href="{{ route('recordings.index') }}" name="AndyTranscribe" wire:navigate />
|
|
<flux:sidebar.collapse />
|
|
</flux:sidebar.header>
|
|
|
|
<flux:sidebar.nav>
|
|
<flux:sidebar.item :href="route('recordings.index')" :current="request()->routeIs('recordings.*')" wire:navigate>
|
|
{{ __('Recordings') }}
|
|
</flux:sidebar.item>
|
|
<flux:sidebar.item :href="route('recordings.create')" :current="request()->routeIs('recordings.create')" wire:navigate>
|
|
{{ __('Upload') }}
|
|
</flux:sidebar.item>
|
|
</flux:sidebar.nav>
|
|
</flux:sidebar>
|
|
|
|
<flux:main container>
|
|
@if (session('success'))
|
|
<flux:callout variant="success" icon="check-circle" class="mb-6">
|
|
<flux:callout.text>{{ session('success') }}</flux:callout.text>
|
|
</flux:callout>
|
|
@endif
|
|
|
|
@if (session('error'))
|
|
<flux:callout variant="danger" icon="exclamation-triangle" class="mb-6">
|
|
<flux:callout.text>{{ session('error') }}</flux:callout.text>
|
|
</flux:callout>
|
|
@endif
|
|
|
|
@if ($errors->any())
|
|
<flux:callout variant="danger" icon="exclamation-triangle" class="mb-6">
|
|
<flux:callout.text>
|
|
<ul class="list-disc space-y-1 pl-5">
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</flux:callout.text>
|
|
</flux:callout>
|
|
@endif
|
|
|
|
{{ $slot }}
|
|
</flux:main>
|
|
|
|
<flux:toast />
|
|
|
|
@fluxScripts
|
|
</body>
|
|
</html>
|