Files
2026-06-02 16:32:20 +07:00

28 lines
1.4 KiB
PHP

@props(['title', 'mainCount', 'icon', 'color' => 'primary', 'subLabel1', 'subCount1', 'subLabel2', 'subCount2'])
<div class="card h-100 shadow-sm border-0">
<div class="card-body p-3">
<div class="d-flex justify-content-between align-items-start mb-3">
<div>
<p class="text-muted fw-medium mb-1 small text-uppercase">{{ $title }}</p>
<h3 class="mb-0 fw-bold text-secondary">{{ number_format($mainCount, 0, ',', '.') }}</h3>
</div>
<div class="badge bg-label-{{ $color }} p-2 rounded">
<i class="ti tabler-{{ $icon }}" style="font-size: 1.5rem;"></i>
</div>
</div>
<div class="bg-lighter rounded p-2 mt-auto">
<div class="row text-center gx-0">
<div class="col-6 border-end">
<span class="text-muted d-block" style="font-size: 0.75rem;">{{ $subLabel1 }}</span>
<span class="fw-semibold text-dark small">{{ number_format($subCount1, 0, ',', '.') }}</span>
</div>
<div class="col-6">
<span class="text-muted d-block" style="font-size: 0.75rem;">{{ $subLabel2 }}</span>
<span class="fw-semibold text-dark small">{{ number_format($subCount2, 0, ',', '.') }}</span>
</div>
</div>
</div>
</div>
</div>