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

    <dl class="row">
        <dt class="col-sm-3">Document Type:</dt>
        <dd class="col-sm-9"><?php echo e($user->document_type); ?></dd>

        <dt class="col-sm-3">Document (Front):</dt>
        <dd class="col-sm-9">
            <!--[if BLOCK]><![endif]--><?php if($user->front_side): ?>
                <a href="<?php echo e(asset($user->front_side)); ?>" target="_blank" class="btn btn-sm btn-outline-primary">
                    View Front
                </a>
            <?php else: ?>
                N/A
            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        </dd>

        <dt class="col-sm-3">Document (Back):</dt>
        <dd class="col-sm-9">
            <!--[if BLOCK]><![endif]--><?php if($user->back_side): ?>
                <a href="<?php echo e(asset($user->back_side)); ?>" target="_blank" class="btn btn-sm btn-outline-primary">
                    View Back
                </a>
            <?php else: ?>
                N/A
            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        </dd>

        <dt class="col-sm-3">Status:</dt>
        <dd class="col-sm-9">
            <?php echo e($user->kyc); ?>

        </dd>
    </dl>

    <form wire:submit.prevent="updateKycStatus" method="POST">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PATCH'); ?>

        <div class="col-md-12 mb-3">
            <label class="form-label" for="kyc">KYC Status</label>
            <select id="kyc" wire:model="kyc" class="form-control <?php $__errorArgs = ['kyc'];
$__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 KYC Status</option>
                <!--[if BLOCK]><![endif]--><?php $__currentLoopData = config('setting.kyc'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $kyc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($kyc); ?>"><?php echo e($kyc); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
            </select>

            <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['kyc'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <span class="invalid-feedback"><?php echo e($message); ?></span>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
        </div>

        <div class="mb-3">
            <a href="<?php echo e(route('admin.user.show', $uuid)); ?>" class="btn btn-soft-primary me-1 my-1"><i
                    class="fa-solid fa-arrow-left me-1"></i>
                Back to User Details</a>
            <button type="submit" class="btn btn-primary me-1 my-1"><i class="fa-solid fa-paper-plane me-1"></i>
                Update KYC Status</button>

            <button type="button" wire:click="$refresh" class="btn btn-soft-secondary me-1 my-1"><i
                    class="fa-solid fa-refresh me-1"></i> Refresh</button>
        </div>
    </form>
</div>
<?php /**PATH C:\xampp\htdocs\projects\online-banking-v7.0\resources\views/livewire/dashboard/admin/user-kyc-status.blade.php ENDPATH**/ ?>