{{-- iPass Money --}}
{{--
--}}
{{-- Line Bank --}}
{{--
--}}
{{-- Credit Card --}}
{{--
--}}
{{-- Line Pay --}}
{{--
--}}
@foreach ($types as $typeKey => $typeData)
@php
$paymentDetail = $paymentDetailsList->firstWhere('paymentMethod', $typeKey);
$isDefault = $paymentDetail?->isDefault == 1;
$exists = !is_null($paymentDetail);
$actionUrl = match ($typeKey) {
'creditCard' => $exists
? route('payment-details.credit-card.edit', ['id' => $paymentDetail?->id])
: route('payment-details.credit-card.create'),
'linePay' => $exists ? '#' : '#',
default => '#',
};
@endphp
@if ($typeKey != 'linePay')
 }})
@endif
{{ $typeData['label'] }}
已綁定
@endforeach