{{-- Expects: - $cards: Collection of card objects - $settings: Site settings object (for site_name) --}} @php $activeCards = $cards->where('status', 'active'); @endphp

Your Active Cards

@if(count($activeCards) > 0) Manage Cards @endif
@if(count($activeCards) > 0)
@foreach($activeCards->take(2) as $card)
@if($card->card_type == 'visa')
@elseif($card->card_type == 'mastercard')
@else
@endif
{{ $settings->site_name }}
Virtual Banking
@if($card->card_type == 'visa') @elseif($card->card_type == 'mastercard') @else @endif
•••• •••• •••• {{ $card->last_four ?? '****' }}
Card Holder
{{ $card->card_holder_name }}
Valid
{{ $card->expiry_month }}/{{ substr($card->expiry_year, -2) }}
{{ ucfirst(str_replace('_', ' ', $card->card_type)) }} Card
Active
{{ $card->currency }} {{ number_format($card->balance, 2) }}
View Details
@endforeach
@if(count($activeCards) > 2) @endif @else

No active cards

Apply for a virtual card to get started with secure online payments.

Apply for Card
@endif