3911012c65
Broad sweep across the whole codebase:
- Blade views (39 files, 315 wraps): tag-text and title/placeholder/alt
attributes wrapped with {{ __() }}. Excludes scripts, styles, @php,
@verbatim, {{ }}, {!! !!}, comments to avoid touching interpolations.
- PHP (54 files, 179 wraps): array 'key' => 'RO value' patterns and
list items with diacritics wrapped with __(). Reverted __() inside
const arrays (PHP disallows non-constant expressions).
- Added 269 new keys to lang/{ru,en}.json (identity fallback for
unknowns → 161 human RU + 163 EN translations added for the most
common enums, stages, roles, statuses, payment methods, vehicle
categories, warehouse, portal, form actions.
Missing translations fall back to RO so the UI never breaks. All 306
tests pass; view cache compiles cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
47 lines
2.5 KiB
PHP
47 lines
2.5 KiB
PHP
<x-filament-panels::page>
|
|
<style>
|
|
.bk-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; max-width: 720px; }
|
|
.dark .bk-card { background: #1f2937; border-color: #374151; }
|
|
.bk-h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
|
|
.bk-p { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; }
|
|
.bk-list { list-style: none; padding: 0; margin: 16px 0; }
|
|
.bk-list li { padding: 6px 0; font-size: 13px; }
|
|
.bk-list li::before { content: '✓'; color: #059669; font-weight: 700; margin-right: 8px; }
|
|
.bk-btn {
|
|
display: inline-block; padding: 12px 24px; background: #3b82f6; color: #fff;
|
|
border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500;
|
|
text-decoration: none;
|
|
}
|
|
.bk-btn:hover { background: #2563eb; }
|
|
</style>
|
|
|
|
<div class="bk-card">
|
|
<h2 class="bk-h2">{{ __('📦 Export complet date tenant') }}</h2>
|
|
<p class="bk-p">
|
|
{{ __('Exportă toate datele companiei tale într-un fișier ZIP. Util pentru:') }}
|
|
</p>
|
|
<ul class="bk-list">
|
|
<li>{{ __('Backup periodic (descarcă local sau sincronizează cu cloud)') }}</li>
|
|
<li>Migrare la alt sistem CRM</li>
|
|
<li>{{ __('Audit / verificări fiscale') }}</li>
|
|
<li>{{ __('Conformitate GDPR (la cererea ștergerii datelor)') }}</li>
|
|
</ul>
|
|
<p class="bk-p">
|
|
<b>{{ __('Conține:') }}</b> {{ __('clienți, mașini, lead-uri, deal-uri, programări, fișe de lucru cu manopere și piese,
|
|
depozit, furnizori, achiziții, plăți, cheltuieli, salarii, useri, logo + favicon, manifest cu metadata.') }}
|
|
</p>
|
|
<p class="bk-p">
|
|
<b>Format:</b> {{ __('ZIP cu fișiere JSON (1 per tabel) + media + manifest.json.') }}
|
|
</p>
|
|
|
|
<button type="button" class="bk-btn" wire:click="downloadBackup" wire:loading.attr="disabled">
|
|
<span wire:loading.remove wire:target="downloadBackup">{{ __('⬇ Descarcă backup acum') }}</span>
|
|
<span wire:loading wire:target="downloadBackup">Generez ZIP...</span>
|
|
</button>
|
|
|
|
<p class="bk-p" style="margin-top:24px;font-size:11px;color:#9ca3af;">
|
|
{{ __('⚠ Backup-urile pot conține date sensibile (telefoane, emailuri, plăți). Stochează-le în siguranță.') }}
|
|
</p>
|
|
</div>
|
|
</x-filament-panels::page>
|