{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: status-badge.blade.php ------------------------------------------------------ Use: The transaction-status chip. One definition for the whole project, so a reversed transaction is grey everywhere and never reads as a plain failure. ===================================================== --}} @props(['status', 'label']) @php $palette = match ($status) { \App\Models\Transaction::STATUS_SUCCESSFUL => 'bg-[#e7f7ee] text-green-600', // Reversed is a decision, not a failure: grey, never red. \App\Models\Transaction::STATUS_REVERSED => 'bg-[#f1f0f5] text-ink-muted', default => 'bg-secondary-50 text-secondary-500', }; @endphp class(['rounded-2xl px-[11px] py-[5px] text-xs font-bold', $palette]) }}>{{ $label }}