@if(!$logTablesReady)
Brak tabel logowania/archiwizacji dla MySQL Editor. Uruchom update SQL:
_DB_Update/DB_Update_2026.04.01_mysql_editor_multidb.sql
@endif
@if (session('mysql_editor_success'))
{{ session('mysql_editor_success') }}
@endif
@if (session('mysql_editor_error'))
{{ session('mysql_editor_error') }}
@endif
@if ($logTablesReady)
Wszystkie daty i godziny sa wyswietlane w czasie lokalnym: {{ $displayTimezone }}
@if($selectedRun)
Status: {{ strtoupper($selectedRun->status ?? '-') }}
OK: {{ (int) ($selectedRun->success_count ?? 0) }}
Bledy: {{ (int) ($selectedRun->error_count ?? 0) }}
Start: {{ $formatLocalDateTime($selectedRun->started_at ?? null) }}
@endif
| Lp |
Data i godzina skryptu |
db_name |
status |
Szczegoly |
@forelse($actions as $index => $action)
@php
$rawStatus = strtolower((string) ($action->status ?? ''));
$isOk = $rawStatus === 'success';
$statusLabel = $isOk ? 'OK' : 'Error';
$statusClass = $isOk ? 'text-success' : 'text-danger';
$details = trim((string) ($action->error_message ?? ''));
if ($isOk && $details === '') {
$details = 'Wykonano poprawnie.';
}
if (!$isOk && $details === '') {
$details = 'Brak szczegolow bledu.';
}
if (!empty($action->failed_statement_index)) {
$details .= ' | Instrukcja #' . $action->failed_statement_index;
}
if (!empty($action->failed_statement_preview)) {
$details .= ' | SQL: ' . $action->failed_statement_preview;
}
if ((int) $action->run_id > 0) {
$details .= ' | Run #' . $action->run_id;
}
$scriptDateTime = $formatLocalDateTime($action->run_started_at ?? $action->started_at ?? null);
$details .= ' | Start run: ' . $formatLocalDateTime($action->run_started_at ?? null);
$details .= ' | Koniec akcji: ' . $formatLocalDateTime($action->finished_at ?? null);
@endphp
| {{ $index + 1 }} |
{{ $scriptDateTime }} |
{{ $action->database_name ?? '-' }} |
{{ $statusLabel }} |
{{ $details }} |
@empty
| Brak wykonanych akcji. |
@endforelse
@endif