<?php
if (Auth('admin')->User()->dashboard_style == 'light') {
    $text = 'dark';
    $bg = 'light';
} else {
    $text = 'light';
    $bg = 'dark';
}
?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('admin.topmenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('admin.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="main-panel ">
        <div class="content ">
            <div class="page-inner">
                <div class="mt-2 mb-5">
                    <h1 class="title1 d-inline "><?php echo e($withdrawal->first_name); ?> <?php echo e($withdrawal->last_name); ?> Application </h1>
                    <div class="d-inline">

                    </div>
                </div>
            </div>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <div class="mb-4 row">
                <div class="col-lg-8 offset-lg-2 card p-md-4 p-2  shadow">

                    <div class="">

                        <div class="mb-1 form-group">
                            <h5 class="">First Name</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->first_name); ?>"
                                readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Last Name</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->last_name); ?>"
                                readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Email</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->email); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Phone</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->phone); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Date</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->date); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Zip</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->zip); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Address</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->address); ?>"
                                readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">City</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->city); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">State</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->state); ?>"
                                readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">country</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->country); ?>"
                                readonly>
                        </div>



                        <div class="mb-1 form-group">
                            <h5 class="">Age</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->age); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Employment Status</h5>
                            <input type="text" class="form-control readonly  "
                                value="<?php echo e($withdrawal->employment_status); ?>" readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Grant Type</h5>
                            <input type="text" class="form-control readonly  " value="<?php echo e($withdrawal->grant_type); ?>"
                                readonly>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Briefly Description How to Use The Money</h5>
                            <textarea id="largeText" name="largeText" class="large-textarea form-control readonly" rows="5" readonly><?php echo e($withdrawal->message1); ?></textarea>
                        </div>


                        <div class="mb-1 form-group">
                            <h5 class="">Repayment Plan</h5>
                            <textarea id="largeText" name="largeText" class="large-textarea form-control readonly" readonly rows="5"><?php echo e($withdrawal->message2); ?></textarea>

                        </div>

                    </div>


                </div>
            </div>
        </div>
    </div>

    <script>
        let action = document.getElementById('action');

        $('#action').change(function() {
            if (action.value === "Reject") {
                document.getElementById('emailcheck').classList.remove('d-none');
            } else {
                document.getElementById('emailcheck').classList.add('d-none');
                document.getElementById('emailtext').classList.add('d-none');
                document.getElementById('dontsend').checked = true;
                document.getElementById('subject').removeAttribute('required');
                document.getElementById('message').removeAttribute('required');
            }
        });

        $('#sendemail').click(function() {
            document.getElementById('emailtext').classList.remove('d-none');
            document.getElementById('subject').setAttribute('required', '');
            document.getElementById('message').setAttribute('required', '');
        });

        $('#dontsend').click(function() {
            document.getElementById('emailtext').classList.add('d-none');
            document.getElementById('subject').removeAttribute('required');
            document.getElementById('message').removeAttribute('required');
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\form\resources\views/admin/Withdrawals/pwithrdawal.blade.php ENDPATH**/ ?>