{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: type-badge.blade.php ------------------------------------------------------ Use: The transaction-type chip. One definition for the whole project so a type never wears two different colours on two different pages. ===================================================== --}} @props(['type', 'label']) @php $palette = match ($type) { \App\Models\Transaction::TYPE_INSTALLMENT => 'bg-[#efeafb] text-primary-600', // Internal movements are violet too, one step lighter than the // installment chip so the two stay tellable apart. \App\Models\Transaction::TYPE_INTERNAL => 'bg-[#f2effb] text-primary-500', \App\Models\Transaction::TYPE_ONLINE => 'bg-[#eaf3fe] text-blue-600', // Money leaving the system gets its own amber chip -- close to the // design's outgoing colour, and never confusable with a failed status. \App\Models\Transaction::TYPE_WITHDRAW => 'bg-[#fff5e6] text-amber-600', default => 'bg-[#e7f7ee] text-green-600', }; @endphp class(['rounded-[14px] px-2.5 py-1 text-[11.5px] font-bold', $palette]) }}>{{ $label }}