@extends('frontend.layouts.user.index') @section('title', __('Edit Cardholder')) @push('styles') @endpush @section('content')
{{ __('All Cardholders') }}
@csrf @method('PUT') {{-- 1. Profile type (read-only on edit — type cannot change) --}}
{{ __('Profile Type') }}
{{ __('Cardholder type is locked once a profile exists.') }}
{{-- 2. Personal / Business details --}} @if($cardholder->card_type === \App\Enums\VirtualCard\CardholderType::PERSONAL) @include('frontend.user.virtual_card.cardholders.partials._personal_details', ['cardholder' => $cardholder]) @elseif($cardholder->card_type === \App\Enums\VirtualCard\CardholderType::BUSINESS) @include('frontend.user.virtual_card.cardholders.partials._business_details', ['business' => $cardholder->business]) @endif {{-- 3. Action bar --}}
{{ __('Changes apply immediately. Pending KYC reviews will keep their current state.') }} @lang('Cancel')
@endsection @push('scripts') @include('frontend.user.virtual_card.cardholders.partials._script') @endpush