
<?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-xl-12 col-lg-12">
                <?php if (isset($component)) { $__componentOriginal66cb34fa521ca32c539059e04f66064d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal66cb34fa521ca32c539059e04f66064d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.card'); ?>
<?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([]); ?>
                    <?php $__env->slot('header'); ?>
                        Grant Application Results
                    <?php $__env->endSlot(); ?>

                    <?php if($grantApplication->isPending()): ?>
                        <div class="container">
                            <div class="card">
                                <div class="card-body text-center p-5">

                                    <!-- Info Icon -->
                                    <div class="mb-3">
                                        <div class="d-inline-flex align-items-center justify-content-center rounded-circle bg-info bg-opacity-25 text-info"
                                            style="width:70px; height:70px;">
                                            <i class="fa-solid fa-hourglass-half fa-2x"></i>
                                        </div>
                                    </div>

                                    <!-- Title -->
                                    <h4 class="fw-bold">Application Pending</h4>

                                    <!-- Message -->
                                    <p class="text-muted mb-2">
                                        Your grant application is currently under review.
                                    </p>
                                    <p class="text-muted">
                                        Please allow some time for our team to verify your details. You’ll be notified once
                                        a decision has been made.
                                    </p>

                                    <!-- Buttons -->
                                    <div class="mt-4 mb-3 d-flex justify-content-center gap-2">
                                        <a href="<?php echo e(route('user.dashboard')); ?>" class="btn btn-primary">
                                            <i class="fa-solid fa-arrow-left me-1"></i> Return to Dashboard
                                        </a>
                                    </div>

                                    <div class="mb-3">
                                        <form
                                            action="<?php echo e(route('user.grant_application.withdrawn', $grantApplication->uuid)); ?>"
                                            method="post">
                                            <?php echo csrf_field(); ?>
                                            <?php echo method_field('PATCH'); ?>

                                            <button type="submit" name="status" value="Withdrawn"
                                                class="btn btn-soft-danger">
                                                <i class="fa-solid fa-arrow-right me-1"></i>
                                                Withdraw Application</button>
                                        </form>
                                    </div>

                                </div>
                            </div>
                        </div>
                    <?php elseif($grantApplication->isApproved()): ?>
                        <div class="container">
                            <div class="card">
                                <div class="card-body text-center p-5">

                                    <!-- Success Icon -->
                                    <div class="mb-3">
                                        <div class="d-inline-flex align-items-center justify-content-center rounded-circle bg-success bg-opacity-25 text-success"
                                            style="width:70px; height:70px;">
                                            <i class="fa-solid fa-circle-check fa-2x"></i>
                                        </div>
                                    </div>

                                    <h4 class="fw-bold">Application Approved</h4>
                                    <p class="text-muted">
                                        Congratulations! Your grant application has been approved. You may now access your
                                        grant benefits from your dashboard.
                                    </p>

                                    <div class="mt-4 d-flex justify-content-center gap-2">
                                        <a href="<?php echo e(route('user.dashboard')); ?>" class="btn btn-success">
                                            <i class="fa-solid fa-arrow-right me-1"></i> Go to Dashboard
                                        </a>
                                    </div>

                                </div>
                            </div>
                        </div>
                    <?php elseif($grantApplication->isRejected()): ?>
                        <div class="container">
                            <div class="card">
                                <div class="card-body text-center p-5">

                                    <!-- Warning Icon -->
                                    <div class="mb-3">
                                        <div class="d-inline-flex align-items-center justify-content-center rounded-circle bg-danger bg-opacity-25 text-danger"
                                            style="width:70px; height:70px;">
                                            <i class="fa-solid fa-times-circle fa-2x"></i>
                                        </div>
                                    </div>

                                    <h4 class="fw-bold">Application Rejected</h4>
                                    <p class="text-muted">
                                        <?php if(!$grantApplication->review_notes): ?>
                                            Unfortunately, your grant application was not approved.
                                            Please contact support for further clarification.
                                        <?php else: ?>
                                            <?php echo e($grantApplication->review_notes); ?>

                                        <?php endif; ?>
                                    </p>

                                    <div class="mt-4 d-flex justify-content-center gap-2">
                                        <a href="<?php echo e(route('user.dashboard')); ?>" class="btn btn-primary">
                                            <i class="fa-solid fa-arrow-left me-1"></i> Return to Dashboard
                                        </a>
                                        <a href="<?php echo e(route('user.support.index')); ?>" class="btn btn-outline-secondary">
                                            <i class="fa-solid fa-headset me-1"></i> Contact Support
                                        </a>
                                    </div>

                                </div>
                            </div>
                        </div>
                    <?php elseif($grantApplication->isWithdrawn()): ?>
                        <div class="container">
                            <div class="card">
                                <div class="card-body text-center p-5">

                                    <!-- Neutral Icon -->
                                    <div class="mb-3">
                                        <div class="d-inline-flex align-items-center justify-content-center rounded-circle bg-secondary bg-opacity-25 text-secondary"
                                            style="width:70px; height:70px;">
                                            <i class="fa-solid fa-file-circle-xmark fa-2x"></i>
                                        </div>
                                    </div>

                                    <h4 class="fw-bold">Application Withdrawn</h4>
                                    <p class="text-muted">
                                        You have withdrawn your grant application.
                                        If this was a mistake, please contact support to reapply.
                                    </p>

                                    <div class="mt-4 d-flex justify-content-center gap-2">
                                        <a href="<?php echo e(route('user.dashboard')); ?>" class="btn btn-primary">
                                            <i class="fa-solid fa-arrow-left me-1"></i> Return to Dashboard
                                        </a>
                                    </div>

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

                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $attributes = $__attributesOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__attributesOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $component = $__componentOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__componentOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
            </div>
        </div>
    </div>
<?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/grant_application/result.blade.php ENDPATH**/ ?>