presseportale/resources/views/livewire/admin/reports/slow-requests-table.blade.php
Kevin Adametz 9b47296cea
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Rebrand Hub+Flux
2026-05-20 15:44:15 +02:00

28 lines
1.9 KiB
PHP

<flux:table>
<flux:table.columns>
<flux:table.column>{{ $label }}</flux:table.column>
<flux:table.column>{{ __('Requests') }}</flux:table.column>
<flux:table.column>{{ __('Ø Dauer') }}</flux:table.column>
<flux:table.column>{{ __('Max. Dauer') }}</flux:table.column>
<flux:table.column>{{ __('Ø DB') }}</flux:table.column>
<flux:table.column>{{ __('Queries') }}</flux:table.column>
</flux:table.columns>
<flux:table.rows>
@forelse ($rows as $row)
<flux:table.row :key="$row['value']">
<flux:table.cell><span class="text-[12px] text-[color:var(--color-ink)] font-mono">{{ $row['value'] }}</span></flux:table.cell>
<flux:table.cell><span class="text-[12.5px] text-[color:var(--color-ink)] tabular-nums">{{ number_format($row['requests']) }}</span></flux:table.cell>
<flux:table.cell><span class="text-[12px] text-[color:var(--color-ink-2)] tabular-nums">{{ number_format($row['average_duration_ms'], 2, ',', '.') }} ms</span></flux:table.cell>
<flux:table.cell><span class="text-[12px] text-[color:var(--color-ink-2)] tabular-nums">{{ number_format($row['max_duration_ms']) }} ms</span></flux:table.cell>
<flux:table.cell><span class="text-[12px] text-[color:var(--color-ink-2)] tabular-nums">{{ number_format($row['average_database_time_ms'], 2, ',', '.') }} ms</span></flux:table.cell>
<flux:table.cell><span class="text-[12px] text-[color:var(--color-ink-2)] tabular-nums">{{ number_format($row['total_queries']) }}</span></flux:table.cell>
</flux:table.row>
@empty
<flux:table.row>
<flux:table.cell colspan="6">
<div class="py-8 text-center text-[12px] text-[color:var(--color-ink-3)]">{{ __('Keine Daten gefunden.') }}</div>
</flux:table.cell>
</flux:table.row>
@endforelse
</flux:table.rows>
</flux:table>