```blade
<?php

use Illuminate\Pagination\LengthAwarePaginator;
use Livewire\Attributes\Computed;
use Livewire\Component;

/**
 * The homepage hero: the gallery's Transactions demo, polished in Paraframe for the hero
 * ("fluxui.dev/demo/transactions" on the "Flux React: Docs site" board). Captured into
 * public/img/hero-transactions(-dark).png at 1280×560, 2x.
 */
new class extends Component {
    #[Computed]
    public function statuses(): array
    {
        return [
            ['label' => 'All payments', 'count' => 20],
            ['label' => 'Succeeded', 'count' => 12],
            ['label' => 'Refunded', 'count' => 2],
            ['label' => 'Needs attention', 'count' => 6],
        ];
    }

    #[Computed]
    public function transactions(): LengthAwarePaginator
    {
        return new LengthAwarePaginator(items: [
            ['amount' => '$299.00', 'status' => 'Refunded', 'logo' => 'paypal', 'method' => 'PayPal', 'description' => 'Pro plan - Monthly', 'customer' => 'lmeyer@email.com', 'date' => 'Jul 5, 10:15 AM'],
            ['amount' => '$499.00', 'status' => 'Succeeded', 'logo' => 'visa', 'method' => '•••• 1098', 'description' => 'Growth plan - Annual', 'customer' => 'olivia.chen@arcwell.co', 'date' => 'Jul 17, 11:14 AM'],
            ['amount' => '$2,500.00', 'status' => 'Succeeded', 'logo' => 'bank', 'method' => 'Bank transfer', 'description' => 'Invoice #INV-2047', 'customer' => 'billing@evergreen.studio', 'date' => 'Jul 16, 2:48 PM'],
            ['amount' => '$199.00', 'status' => 'Incomplete', 'logo' => 'apple-pay', 'method' => 'Apple Pay', 'description' => 'Pro plan - Monthly', 'customer' => 'daniel.roberts@pixelgrid.com', 'date' => 'Jul 15, 9:06 AM'],
            ['amount' => '$799.00', 'status' => 'Succeeded', 'logo' => 'visa', 'method' => '•••• 7742', 'description' => 'Invoice #INV-2046', 'customer' => 'finance@brightpath.ai', 'date' => 'Jul 14, 5:27 PM'],
            ['amount' => '£149.00', 'status' => 'Succeeded', 'logo' => 'paypal', 'method' => 'PayPal', 'description' => 'Pro plan - Monthly', 'customer' => 'sophia.martin@email.com', 'date' => 'Jul 13, 12:42 PM'],
            ['amount' => '$3,200.00', 'status' => 'Succeeded', 'logo' => 'amex', 'method' => '•••• 3007', 'description' => 'Enterprise plan', 'customer' => 'accounts@vertexsystems.co', 'date' => 'Jul 12, 3:19 PM'],
            ['amount' => '€1,250.00', 'status' => 'Failed', 'logo' => 'visa', 'method' => '•••• 9254', 'description' => 'Enterprise plan', 'customer' => 'laura.hughes@oakandco.com', 'date' => 'Jul 10, 4:03 PM'],
            ['amount' => '$2,750.00', 'status' => 'Disputed', 'logo' => 'amex', 'method' => '•••• 1045', 'description' => 'Enterprise plan', 'customer' => 'billing@clearframe.com', 'date' => 'Jul 6, 3:41 PM'],
            ['amount' => '$1,299.00', 'status' => 'Succeeded', 'logo' => 'mastercard', 'method' => '•••• 4821', 'description' => 'Invoice #INV-2048', 'customer' => 'northstar@northstar.io', 'date' => 'Jul 18, 4:32 PM'],
        ], total: 20, perPage: 10, currentPage: 1);
    }
};
?>

<div class="hero-demo">
    <flux:sidebar sticky collapsible persist="false" data-flux-sidebar-collapsed-desktop class="border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
        {{-- As tall as the header, so its bottom border runs across the sidebar too --}}
        <flux:sidebar.header class="hero-sidebar-header">
            <flux:sidebar.brand
                href="#"
                logo="https://fluxui.dev/img/demos/payments/logo.svg"
                logo:dark="https://fluxui.dev/img/demos/payments/logo-dark.svg"
                name="Arc"
            />

            <flux:sidebar.collapse class="in-data-flux-sidebar-on-desktop:not-in-data-flux-sidebar-collapsed-desktop:-mr-2" />
        </flux:sidebar.header>

        <flux:sidebar.nav>
            <flux:sidebar.item icon="home" href="#">Home</flux:sidebar.item>
            <flux:sidebar.item icon="arrows-right-left" href="#" current>Transactions</flux:sidebar.item>
            <flux:sidebar.item icon="users" href="#">Customers</flux:sidebar.item>
            <flux:sidebar.item icon="square-3-stack-3d" href="#">Product catalog</flux:sidebar.item>
            <flux:sidebar.item icon="chart-bar" href="#">Reporting</flux:sidebar.item>
        </flux:sidebar.nav>

        <flux:sidebar.spacer />

        <flux:sidebar.nav>
            <flux:sidebar.item icon="cog-6-tooth" href="#">Settings</flux:sidebar.item>
        </flux:sidebar.nav>
    </flux:sidebar>

    <flux:header class="border-b border-zinc-200 dark:border-zinc-700">
        <flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" />

        <flux:button variant="ghost" size="sm" icon:trailing="chevron-up-down" class="hero-workspace hero-quiet-icons">Paraframe</flux:button>

        <flux:spacer />

        <flux:input as="button" variant="filled" size="sm" icon="magnifying-glass" kbd="⌘K" placeholder="Search" class="hero-search" />

        <flux:field variant="inline">
            <flux:label>Live mode</flux:label>
            <flux:switch />
        </flux:field>

        <flux:navbar class="ms-2 me-1">
            <flux:navbar.item icon="bell" icon-dot href="#" label="Notifications" aria-label="Notifications" />
        </flux:navbar>

        <flux:profile avatar="/img/demo/caleb.png" circle :chevron="false" aria-label="Account menu" />
    </flux:header>

    {{-- Start the sidebar collapsed on desktop, as the gallery's Transactions demo does --}}
    <script>customElements.whenDefined('ui-sidebar').then(() => matchMedia('(min-width: 1024px)').matches && document.dispatchEvent(new Event('flux-sidebar-toggle')))</script>

    <flux:main class="flex flex-col gap-6">
        <div class="flex flex-wrap items-center justify-between gap-4">
            <flux:heading size="xl" level="1">Transactions</flux:heading>

            <div class="flex items-center gap-2 hero-quiet-icons">
                <flux:button size="sm" icon="calendar" icon:trailing="chevron-down">Last 30 days</flux:button>
                <flux:button size="sm" icon="arrow-up-tray">Export</flux:button>
            </div>
        </div>

        <flux:tabs scrollable scrollable:scrollbar="hide">
            <flux:tab name="payments" :accent="false" selected>Payments</flux:tab>
            <flux:tab name="payouts" :accent="false">Payouts</flux:tab>
            <flux:tab name="top-ups" :accent="false">Top-ups</flux:tab>
            <flux:tab name="analytics" :accent="false">Analytics</flux:tab>
            <flux:tab name="reports" :accent="false">Reports</flux:tab>
        </flux:tabs>

        <flux:radio.group variant="cards" aria-label="Payment status" class="hero-cards">
            @foreach ($this->statuses as $status)
                <flux:radio :value="$status['label']" :checked="$loop->first" class="hero-card">
                    <div>
                        <flux:text>{{ $status['label'] }}</flux:text>
                        <flux:heading size="xl" class="mt-1 hero-count">{{ $status['count'] }}</flux:heading>
                    </div>
                </flux:radio>
            @endforeach
        </flux:radio.group>

        <div class="flex items-start justify-between gap-2">
            {{-- Quiet filter chips: grey icons --}}
            <div class="flex flex-wrap items-center gap-2 hero-chips">
                @foreach (['Date and time', 'Amount', 'Payment method', 'More filters'] as $filter)
                    <flux:button size="sm" variant="filled" icon="plus-circle">{{ $filter }}</flux:button>
                @endforeach
            </div>

            <flux:button size="sm" icon="cog-6-tooth" class="max-sm:hidden hero-quiet-icons">Columns</flux:button>
        </div>

        <flux:checkbox.group>
            <flux:table :paginate="$this->transactions" class="hero-table">
                <flux:table.columns>
                    <flux:table.column><flux:checkbox.all aria-label="Select all transactions" /></flux:table.column>
                    <flux:table.column align="end">Amount</flux:table.column>
                    <flux:table.column>Status</flux:table.column>
                    <flux:table.column>Payment method</flux:table.column>
                    <flux:table.column>Description</flux:table.column>
                    <flux:table.column>Customer</flux:table.column>
                    <flux:table.column>Date</flux:table.column>
                    <flux:table.column></flux:table.column>
                </flux:table.columns>

                <flux:table.rows>
                    @foreach ($this->transactions as $transaction)
                        <flux:table.row>
                            <flux:table.cell><flux:checkbox aria-label="Select {{ $transaction['description'] }}" /></flux:table.cell>
                            <flux:table.cell variant="strong" align="end" class="hero-num">{{ $transaction['amount'] }}</flux:table.cell>

                            <flux:table.cell>
                                {{-- An outlined badge with a colored dot; Succeeded, the usual case, has no dot --}}
                                <span class="hero-badge">
                                    @if ($transaction['status'] !== 'Succeeded')
                                        <span class="hero-dot hero-dot-{{ strtolower($transaction['status']) }}"></span>
                                    @endif

                                    {{ $transaction['status'] }}
                                </span>
                            </flux:table.cell>

                            <flux:table.cell>
                                <div class="flex items-center gap-2.5">
                                    {{-- Quiet grey payment marks, so the status column carries the color --}}
                                    <div class="hero-mark">
                                        @if ($transaction['logo'] === 'bank')
                                            <flux:icon.building-library variant="micro" />
                                        @else
                                            <img src="https://fluxui.dev/img/demos/transactions/{{ $transaction['logo'] }}.svg" alt="" class="hero-logo-{{ $transaction['logo'] }}">
                                        @endif
                                    </div>

                                    {{ $transaction['method'] }}
                                </div>
                            </flux:table.cell>

                            <flux:table.cell>{{ $transaction['description'] }}</flux:table.cell>
                            <flux:table.cell>{{ $transaction['customer'] }}</flux:table.cell>
                            <flux:table.cell class="hero-num">{{ $transaction['date'] }}</flux:table.cell>

                            <flux:table.cell>
                                <flux:button variant="ghost" size="sm" icon="ellipsis-horizontal" inset="top bottom" class="hero-quiet-icons" aria-label="Actions for {{ $transaction['description'] }}" />
                            </flux:table.cell>
                        </flux:table.row>
                    @endforeach
                </flux:table.rows>
            </flux:table>
        </flux:checkbox.group>
    </flux:main>
    {{-- Plain CSS, like the gallery's: the production stylesheet isn't rebuilt on deploy... --}}
    <style>
        .hero-demo .hero-sidebar-header { box-sizing: border-box; height: 57px; min-height: 57px; margin: -16px -8px -4px; padding: 0 8px; justify-content: center; border-bottom: 1px solid #e4e4e7; }
        .dark .hero-demo .hero-sidebar-header { border-color: #3f3f46; }
        .hero-demo .hero-quiet-icons [data-flux-icon] { color: #9f9fa9 !important; }
        .hero-demo .hero-workspace { margin-inline-start: -8px; padding-inline: 8px !important; }
        .hero-demo .hero-search { width: 232px !important; margin-inline-end: 20px; }
        .hero-demo .hero-cards { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
        .hero-demo .hero-card { padding: 14px 16px 12px !important; }
        .hero-demo .hero-count, .hero-demo .hero-num { font-variant-numeric: tabular-nums; }
        .hero-demo .hero-count { letter-spacing: -.02em; }
        .hero-demo .hero-chips [data-flux-button] { gap: 6px; color: #3f3f47; }
        .dark .hero-demo .hero-chips [data-flux-button] { color: #e4e4e7; }
        .hero-demo .hero-chips [data-flux-icon] { width: 14px; height: 14px; color: #9f9fa9; }
        .hero-demo .hero-table tbody td { padding-top: 10px !important; padding-bottom: 10px !important; }

        /* Outlined status badges with a colored dot; Succeeded, the usual case, has none */
        .hero-demo .hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid #e4e4e7; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 12px; line-height: 18px; font-weight: 500; color: #3f3f47; }
        .dark .hero-demo .hero-badge { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #e4e4e7; }
        .hero-demo .hero-dot { width: 6px; height: 6px; border-radius: 50%; background: #9f9fa9; }
        .hero-demo .hero-dot-refunded { background: #3b82f6; }
        .hero-demo .hero-dot-failed { background: #ef4444; }
        .hero-demo .hero-dot-disputed { background: #f59e0b; }

        /* Quiet grey payment marks, so the status column carries the color */
        .hero-demo .hero-mark { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 20px; border: 1px solid #e4e4e7; border-radius: 4px; background: #fafafa; }
        .dark .hero-demo .hero-mark { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
        .hero-demo .hero-mark [data-flux-icon] { width: 13px; height: 13px; color: #9f9fa9; }
        .hero-demo .hero-mark img { max-width: 22px; max-height: 14px; filter: grayscale(1); opacity: .5; }
        .hero-demo .hero-mark img.hero-logo-mastercard { opacity: .85; }
        /* White logos go dark on the light mark; the dark PayPal mark goes light in dark mode */
        .hero-demo .hero-mark img.hero-logo-visa, .hero-demo .hero-mark img.hero-logo-apple-pay { filter: invert(1) grayscale(1); opacity: .55; }
        .dark .hero-demo .hero-mark img.hero-logo-visa, .dark .hero-demo .hero-mark img.hero-logo-apple-pay { filter: grayscale(1); opacity: .5; }
        .dark .hero-demo .hero-mark img.hero-logo-paypal { filter: invert(1) grayscale(1); }
    </style>
</div>

```

