<?php $__env->startSection('content'); ?>
    <div class="page-container">

        <div class="page-title-head d-flex align-items-sm-center flex-sm-row flex-column gap-2">
            <div class="flex-grow-1">
                <h4 class="fs-18 fw-semibold mb-0"><?php echo e($title); ?></h4>
            </div>

            <div class="text-end">
                <?php if (isset($component)) { $__componentOriginalf249638ac7504c50bf0259c0cb71919d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf249638ac7504c50bf0259c0cb71919d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.breadcrumbs'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumbs)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $attributes = $__attributesOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $component = $__componentOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__componentOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="container-fluid py-4">
                    <!-- Transfer Header -->
                    <div class="card shadow-sm border-0 mb-4">
                        <div class="card-body bg-primary text-white rounded-3">
                            <div class="d-flex justify-content-between align-items-center">
                                <div>
                                    <h4 class="fw-bold mb-1">
                                        <i class="bi bi-send"></i> International Wire Transfer
                                    </h4>
                                    
                                </div>
                                <div class="text-end small">
                                    <i class="bi bi-shield-check"></i> Secure
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Quick Transfer -->
                    

                    <?php if (isset($component)) { $__componentOriginal9f62502e3945f54811d2559dbe1792df = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9f62502e3945f54811d2559dbe1792df = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.available_balance','data' => ['user' => $user,'badge' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.available_balance'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($user),'badge' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9f62502e3945f54811d2559dbe1792df)): ?>
<?php $attributes = $__attributesOriginal9f62502e3945f54811d2559dbe1792df; ?>
<?php unset($__attributesOriginal9f62502e3945f54811d2559dbe1792df); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9f62502e3945f54811d2559dbe1792df)): ?>
<?php $component = $__componentOriginal9f62502e3945f54811d2559dbe1792df; ?>
<?php unset($__componentOriginal9f62502e3945f54811d2559dbe1792df); ?>
<?php endif; ?>

                    <!-- Transfer Form -->
                    <form action="<?php echo e(route('user.transfer.international')); ?>" method="POST">
                        <?php echo csrf_field(); ?>

                        <?php echo $__env->make('partials.validation_message', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                        <!-- Transfer Amount -->
                        <div class="card shadow-sm border-0 mb-4">
                            <div class="card-header border-bottom">
                                <h4 class="mb-0"><i class="bi bi-cash-stack text-primary"></i> Transfer Amount</h4>
                            </div>
                            <div class="card-body">
                                <div class="mb-3">
                                    <div class="input-group">
                                        <span class="input-group-text"><?php echo e(currency($user->currency)); ?></span>
                                        <input type="number" name="amount" value="<?php echo e(old('amount')); ?>"
                                            class="form-control <?php $__errorArgs = ['amount'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                            placeholder="Enter amount" required>
                                    </div>
                                </div>
                                <div class="d-flex gap-2">
                                    <button type="button" class="btn btn-outline-primary btn-sm quick-amount"
                                        data-value="100"><?php echo e(currency($user->currency)); ?>100</button>
                                    <button type="button" class="btn btn-outline-primary btn-sm quick-amount"
                                        data-value="500"><?php echo e(currency($user->currency)); ?>500</button>
                                    <button type="button" class="btn btn-outline-primary btn-sm quick-amount"
                                        data-value="1000"><?php echo e(currency($user->currency)); ?>1000</button>
                                    <button type="button" class="btn btn-outline-secondary btn-sm quick-amount"
                                        data-value="all">All</button>
                                </div>
                            </div>
                        </div>

                        <!-- Beneficiary Details -->
                        <div class="card shadow-sm border-0 mb-4">
                            <div class="card-header border-bottom">
                                <h4 class="mb-0"><i class="bi bi-people text-primary"></i> Beneficiary Details</h4>
                            </div>
                            <div class="card-body row g-3">
                                <div class="col-md-6">
                                    <label class="form-label">Beneficiary Account Name</label>
                                    <input type="text" name="beneficiary_name" value="<?php echo e(old('beneficiary_name')); ?>"
                                        class="form-control <?php $__errorArgs = ['beneficiary_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        placeholder="Enter beneficiary's full name" required>
                                </div>
                                <div class="col-md-6">
                                    <label class="form-label">Beneficiary Account Number</label>
                                    <input type="text" name="beneficiary_account_number"
                                        value="<?php echo e(old('beneficiary_account_number')); ?>"
                                        class="form-control <?php $__errorArgs = ['beneficiary_account_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        placeholder="Enter account number" required>
                                </div>
                                <div class="col-md-6">
                                    <label class="form-label">Bank Name</label>
                                    <input type="text" name="bank_name" value="<?php echo e(old('bank_name')); ?>"
                                        class="form-control <?php $__errorArgs = ['bank_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        placeholder="Enter bank name" required>
                                </div>
                                <div class="col-md-6">
                                    <label class="form-label">Bank Address</label>
                                    <input type="text" name="bank_address" value="<?php echo e(old('bank_address')); ?>"
                                        class="form-control <?php $__errorArgs = ['bank_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        placeholder="Enter bank address" required>
                                </div>
                                <div class="col-md-6">
                                    <label class="form-label">Account Type</label>
                                    <select name="account_type"
                                        class="form-select <?php $__errorArgs = ['account_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                                        <option value="">Select account type</option>
                                        <option value="Checking" <?php if(old('account_type') == 'Checking'): echo 'selected'; endif; ?>>Checking</option>
                                        <option value="Savings" <?php if(old('account_type') == 'Savings'): echo 'selected'; endif; ?>>Savings</option>
                                        <option value="Joint Account" <?php if(old('account_type') == 'Joint Account'): echo 'selected'; endif; ?>>Joint Account</option>
                                        <option value="Online Banking" <?php if(old('account_type', 'Online Banking') == 'Online Banking'): echo 'selected'; endif; ?>>Online Banking</option>
                                    </select>
                                </div>

                                <?php if (isset($component)) { $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-select','data' => ['name' => 'country','label' => 'Country','type' => 'select','class' => 'col-md-6','value' => ''.e($user->country).'','options' => config('setting.countries')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'country','label' => 'Country','type' => 'select','class' => 'col-md-6','value' => ''.e($user->country).'','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(config('setting.countries'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $attributes = $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $component = $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>

                                <div class="col-md-6">
                                    <label class="form-label">IBAN Number</label>
                                    <input type="text" name="iban_number" value="<?php echo e(old('iban_number')); ?>"
                                        class="form-control <?php $__errorArgs = ['iban_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        placeholder="Enter IBAN number">
                                    <p class="mb-0 small text-muted">International Bank Account Number</p>
                                </div>
                                <div class="col-md-6">
                                    <label class="form-label">SWIFT Code</label>
                                    <input type="text" name="swift_code" value="<?php echo e(old('swift_code')); ?>"
                                        class="form-control <?php $__errorArgs = ['swift_code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        placeholder="Enter SWIFT/BIC code">
                                    <p class="mb-0 small text-muted">8-11 character bank identifier code</p>
                                </div>
                            </div>
                        </div>

                        <!-- Additional Info -->
                        <div class="card shadow-sm border-0 mb-4">
                            <div class="card-header border-bottom">
                                <h4 class="mb-0"><i class="bi bi-info-circle text-primary"></i> Additional Information
                                </h4>
                            </div>
                            <div class="card-body">
                                <div class="mb-3">
                                    <label class="form-label">Note (Optional)</label>
                                    <textarea name="description" value="<?php echo e(old('description')); ?>"
                                        class="form-control <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" rows="2"
                                        placeholder="Optional payment description or none"></textarea>
                                </div>
                                <div class="mb-3">
                                    <label class="form-label">Transaction PIN</label>
                                    <input type="password" name="transaction_pin"
                                        class="form-control <?php $__errorArgs = ['transaction_pin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        id="transfer_transaction_pin" placeholder="Enter transaction PIN" required>
                                    <small class="text-muted">This is your transaction PIN, not your login
                                        password.</small>
                                </div>
                            </div>
                        </div>

                        <!-- Actions -->
                        <div class="d-flex justify-content-between mb-4">
                            <a href="<?php echo e(route('user.dashboard')); ?>" class="btn btn-outline-secondary"><i
                                    class="bi bi-arrow-left me-1"></i> Back to Dashboard</a>
                            <div class="d-flex gap-2">
                                
                                <button type="submit" class="btn btn-primary"><i class="bi bi-eye me-1"></i> Preview
                                    Transfer</button>
                            </div>
                        </div>
                    </form>

                    <!-- Bank Level Security -->
                    <div class="alert alert-light border shadow-sm">
                        <h6 class="fw-bold"><i class="bi bi-shield-lock text-success"></i> Bank-Level Security</h6>
                        <p class="mb-0 small text-muted">
                            All transfers are protected with 256-bit SSL encryption and processed through secure banking
                            channels.
                            Your financial information is never stored on our servers and transactions are monitored for
                            fraud
                            protection.
                        </p>
                        <ul class="small mt-2 mb-0">
                            <li>🔒 SSL Encrypted</li>
                            <li>💾 Zero Data Storage</li>
                            <li>🟢 24/7 Monitoring</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php $__env->startPush('scripts'); ?>
        <script>
            document.querySelectorAll('.quick-amount').forEach(btn => {
                btn.addEventListener('click', function() {
                    let input = document.querySelector('input[name="amount"]');
                    if (this.dataset.value === 'all') {
                        input.value =
                            <?php echo e($user->account_balance); ?>; // Replace with actual available balance
                    } else {
                        input.value = this.dataset.value;
                    }
                });
            });
        </script>
    <?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.user.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v7.0\resources\views/dashboard/user/transfer/international.blade.php ENDPATH**/ ?>