
<?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'); ?>
                        <?php echo e($title); ?>

                    <?php $__env->endSlot(); ?>

                    <dl class="row">
                        <?php if($grantApplication->isTypeCompany()): ?>
                            <dt class="col-sm-3">Organization Name</dt>
                            <dd class="col-sm-9"><?php echo e($grantApplication->name); ?></dd>

                            <dt class="col-sm-3">Tax ID</dt>
                            <dd class="col-sm-9"><?php echo e($grantApplication->tax_id); ?></dd>

                            <dt class="col-sm-3">Organization Type</dt>
                            <dd class="col-sm-9"><?php echo e($grantApplication->organization_type); ?></dd>

                            <dt class="col-sm-3">Founding Year</dt>
                            <dd class="col-sm-9"><?php echo e($grantApplication->founding_year); ?></dd>

                            <dt class="col-sm-3">Mailing Address</dt>
                            <dd class="col-sm-9">
                                <address>
                                    <?php echo e($grantApplication->full_mailing_address); ?>

                                </address>
                            </dd>

                            <dt class="col-sm-3">Contact Phone</dt>
                            <dd class="col-sm-9">
                                <?php echo e($grantApplication->contact_phone); ?>

                            </dd>

                            <dt class="col-sm-3">Contact Person</dt>
                            <dd class="col-sm-9">
                                <?php echo e($grantApplication->contact_person); ?>

                            </dd>

                            <dt class="col-sm-3">Mission Statement</dt>
                            <dd class="col-sm-9">
                                <?php echo e($grantApplication->mission_statement); ?>

                            </dd>

                            <dt class="col-sm-3">Date Of Incorporation</dt>
                            <dd class="col-sm-9">
                                <?php echo e(formatDate($grantApplication->date_of_incorporation)); ?>

                            </dd>

                            <dt class="col-sm-3">Project Title</dt>
                            <dd class="col-sm-9">
                                <?php echo e($grantApplication->contact_person); ?>

                            </dd>

                            <dt class="col-sm-3">Project Description</dt>
                            <dd class="col-sm-9">
                                <?php echo e($grantApplication->project_description); ?>

                            </dd>

                            <dt class="col-sm-3">Expected Outcome</dt>
                            <dd class="col-sm-9">
                                <?php echo e($grantApplication->expected_outcome); ?>

                            </dd>

                            <dt class="col-sm-3">Amount</dt>
                            <dd class="col-sm-9">
                                <?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($grantApplication->amount)); ?>

                            </dd>

                            <dt class="col-sm-3">Status</dt>
                            <dd class="col-sm-9">
                                <span class="<?php echo e($grantApplication->status->badge()); ?>">
                                    <?php echo e($grantApplication->status->label()); ?>

                                </span>
                            </dd>

                            <?php if($grantApplication->review_notes): ?>
                                <dt class="col-sm-3">Review Note</dt>
                                <dd class="col-sm-9">
                                    <?php echo e($grantApplication->review_notes ?? 'N/A'); ?>

                                </dd>
                            <?php endif; ?>

                            <dt class="col-sm-3">Submitted At</dt>
                            <dd class="col-sm-9">
                                <?php echo e(formatDateTime($grantApplication->submitted_at)); ?>

                            </dd>
                        <?php else: ?>
                            <dt class="col-sm-3">Amount</dt>
                            <dd class="col-sm-9">
                                <?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($grantApplication->amount)); ?>

                            </dd>

                            <dt class="col-sm-3">Grant Category & Description</dt>
                            <dd class="col-sm-9">
                                <ul class="list-unstyled">
                                    <?php $__currentLoopData = $grantApplication->grantCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li> <?php echo e($value->name); ?> - <?php echo e($value->description); ?></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </dd>

                            <dt class="col-sm-3">Status</dt>
                            <dd class="col-sm-9">
                                <span class="<?php echo e($grantApplication->status->badge()); ?>">
                                    <?php echo e($grantApplication->status->label()); ?>

                                </span>
                            </dd>

                            <?php if($grantApplication->review_notes): ?>
                                <dt class="col-sm-3">Review Note</dt>
                                <dd class="col-sm-9">
                                    <?php echo e($grantApplication->review_notes ?? 'N/A'); ?>

                                </dd>
                            <?php endif; ?>

                            <dt class="col-sm-3">Submitted At</dt>
                            <dd class="col-sm-9">
                                <?php echo e(formatDateTime($grantApplication->submitted_at)); ?>

                            </dd>
                        <?php endif; ?>
                    </dl>

                 <?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; ?>

                <?php if($grantApplication->isPending()): ?>
                    <?php if (isset($component)) { $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.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([]); ?>
                        <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>
                     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $attributes = $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $component = $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
                <?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/show.blade.php ENDPATH**/ ?>