You've already forked Atomcms-edit
cbe189fd96
- Create EmulatorControlAction and NitroControlAction classes - Extract business logic from Commandocentrum controller methods - Add Blade components for status cards, diagnostics, and summary cards - Replace shell_exec with file_get_contents in config reading - Remove duplicate methods and unused code - Commandocentrum reduced from 2033 to 1780 lines
20 lines
1.5 KiB
PHP
Executable File
20 lines
1.5 KiB
PHP
Executable File
@props(['label', 'count', 'color', 'icon'])
|
|
|
|
<div style="background:#fff;border-radius:12px;padding:16px;border:1px solid #e2e8f0;box-shadow:0 1px 3px rgba(0,0,0,0.06);">
|
|
<div style="display:flex;align-items:center;gap:10px;margin-bottom:8px;">
|
|
<div style="background:{{ $color }}15;padding:8px;border-radius:10px;">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="{{ $color }}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
@if ($icon === 'check')
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
@elseif ($icon === 'warning')
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
|
|
@elseif ($icon === 'error')
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" />
|
|
@endif
|
|
</svg>
|
|
</div>
|
|
<span style="font-size:12px;font-weight:600;color:#64748b;">{{ $label }}</span>
|
|
</div>
|
|
<div style="font-size:28px;font-weight:800;color:{{ $color }};line-height:1;">{{ $count }}</div>
|
|
</div>
|