@php $i = 0; @endphp @foreach ($getpaymentmethods as $key => $pmdata) @php // Check if the current $pmdata is a system addon and activated if ($pmdata->payment_type == '1' || $pmdata->payment_type == '2') { $systemAddonActivated = true; } else { $systemAddonActivated = false; } $addon = App\Models\SystemAddons::where('unique_identifier', $pmdata->unique_identifier)->first(); if ($addon != null && $addon->activated == 1) { $systemAddonActivated = true; } $transaction_type = $pmdata->payment_type; @endphp @if ($systemAddonActivated) @endif @if (in_array($transaction_type, [3, 4, 5, 6])) @if ($transaction_type == 3) @endif @if ($transaction_type == 4) @endif @if ($transaction_type == 5) @endif @if ($transaction_type == 6) @endif @endif @if ($transaction_type == 4)
@endif @endforeach @if (!in_array(4, array_column($getpaymentmethods->toArray(), 'id'))) @endif