<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <div class="portal-container">
        <?php if(session('status')): ?>
            <div class="alert <?php echo e(str_contains((string) session('status'), 'failed') ? 'alert-error' : 'alert-success'); ?>">
                <?php switch(session('status')):
                    case ('profile-updated'): ?>
                        Profile updated locally.
                        <?php break; ?>
                    <?php case ('profile-updated-whmcs-synced'): ?>
                        Profile updated successfully.
                        <?php break; ?>
                    <?php case ('profile-updated-whmcs-sync-failed'): ?>
                        Profile saved, but some account details may take longer to update.
                        <?php break; ?>
                    <?php default: ?>
                        <?php echo e(session('status')); ?>

                <?php endswitch; ?>
            </div>
        <?php endif; ?>

        <h1 class="page-title">Profile</h1>

        <div class="dashboard-two-col" style="align-items:flex-start;">
            <div class="dashboard-card accent-blue">
                <div class="dashboard-card-head"><h2>Account Details</h2></div>
                <p><strong>Email:</strong> <?php echo e($user->email); ?></p>
<p><strong>Currency:</strong> <?php echo e($user->currency ?: config('zt.currency.fallback')); ?></p>
                <p><strong>Currency Lock:</strong> <?php echo e($user->currency_locked_at ? 'Locked after first order' : 'Not locked yet'); ?></p>
                <p class="card-subtitle">Email and billing currency are account records and cannot be changed here.</p>
            </div>

            <div class="dashboard-card accent-green">
                <?php echo $__env->make('profile.partials.update-profile-information-form', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>
        </div>

        <div class="dashboard-two-col" style="align-items:flex-start; margin-top:24px;">
            <div class="dashboard-card accent-gray">
                <?php if(config('zt.profile.local_password_update_enabled', false)): ?>
                    <?php echo $__env->make('profile.partials.update-password-form', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php else: ?>
                    <h2>Change Password</h2>
                    <p>Use the password reset page to change your account password.</p>
                    <a class="secondary-btn" href="<?php echo e(route('password.request')); ?>">Send Password Reset</a>
                <?php endif; ?>
            </div>

            <div class="dashboard-card accent-red">
                <?php if(config('zt.profile.local_account_delete_enabled', false)): ?>
                    <?php echo $__env->make('profile.partials.delete-user-form', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php else: ?>
                    <h2>Delete Account</h2>
                    <p>Account deletion is handled by support to protect your services and billing history.</p>
                <?php endif; ?>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH /home/ovbopdha/public_html/ztcart.eagale.xyz/resources/views/profile/edit.blade.php ENDPATH**/ ?>