Payment Failures (24h)

@foreach($this->getViewData()['failures'] as $failure) @php $bgColorClass = 'bg-gray-50'; $iconColorClass = 'text-gray-500'; $textColorClass = 'text-gray-600'; $buttonBgClass = 'bg-gray-600'; $buttonHoverClass = 'hover:bg-gray-700'; $buttonRingClass = 'focus:ring-gray-500'; switch($failure['color']) { case 'red': $bgColorClass = 'bg-red-50'; $iconColorClass = 'text-red-500'; $textColorClass = 'text-red-600'; $buttonBgClass = 'bg-red-600'; $buttonHoverClass = 'hover:bg-red-700'; $buttonRingClass = 'focus:ring-red-500'; break; case 'orange': $bgColorClass = 'bg-orange-50'; $iconColorClass = 'text-orange-500'; $textColorClass = 'text-orange-600'; $buttonBgClass = 'bg-orange-600'; $buttonHoverClass = 'hover:bg-orange-700'; $buttonRingClass = 'focus:ring-orange-500'; break; case 'yellow': $bgColorClass = 'bg-yellow-50'; $iconColorClass = 'text-yellow-500'; $textColorClass = 'text-yellow-600'; $buttonBgClass = 'bg-yellow-600'; $buttonHoverClass = 'hover:bg-yellow-700'; $buttonRingClass = 'focus:ring-yellow-500'; break; case 'blue': $bgColorClass = 'bg-blue-50'; $iconColorClass = 'text-blue-500'; $textColorClass = 'text-blue-600'; $buttonBgClass = 'bg-blue-600'; $buttonHoverClass = 'hover:bg-blue-700'; $buttonRingClass = 'focus:ring-blue-500'; break; case 'gray': $bgColorClass = 'bg-gray-50'; $iconColorClass = 'text-gray-500'; $textColorClass = 'text-gray-600'; $buttonBgClass = 'bg-gray-600'; $buttonHoverClass = 'hover:bg-gray-700'; $buttonRingClass = 'focus:ring-gray-500'; break; } @endphp
{{ $failure['type'] }}
{{ $failure['count'] }}
Action:
@endforeach