<div class="content-wrapper">
    <div class="container-xxl flex-grow-1 container-p-y">
        <div class="row">
            <div class="col">
                <div class="card shadow">
                    <div class="card-header text-uppercase custom-header bg-primary text-bg-info fw-bold">
                        <i class="menu-icon ti ti-users-plus"></i> <?php echo e($member->firstName); ?> <?php echo e($member->lastName); ?> - <?php echo e($member->nicNumber); ?> -
                        <?php echo e($member->oldAccountNumber); ?>

                    </div>
                    <div class="card-body">
                        <input type="hidden" value="<?php echo e($member->id); ?>" id="txtMemberId">
                        <div class="nav-align-top mt-3">
                            <ul class="nav nav-tabs nav-fill rounded-0 timeline-indicator-advanced" role="tablist">
                                <?php if($userType == 'superAdmin'): ?>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link active" role="tab"
                                            data-bs-toggle="tab" data-bs-target="#navs-justified-personal"
                                            aria-controls="navs-justified-personal" aria-selected="true">
                                            Personal Details
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-savings"
                                            aria-controls="navs-justified-link-savings" aria-selected="false">
                                            Savings
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-loan"
                                            aria-controls="navs-justified-link-loan" aria-selected="false">
                                            Loan
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-death"
                                            aria-controls="navs-justified-link-death" aria-selected="false">
                                            Death
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-meetings"
                                            aria-controls="navs-justified-link-meetings" aria-selected="false">
                                            Meetings
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-documents"
                                            aria-controls="navs-justified-link-documents" aria-selected="false">
                                            Documents
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-notes"
                                            aria-controls="navs-justified-link-notes" aria-selected="false">
                                            Notes
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-login"
                                            aria-controls="navs-justified-link-login" aria-selected="false">
                                            Login Details
                                        </button>
                                    </li>
                                    <li class="nav-item">
                                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab"
                                            data-bs-target="#navs-justified-link-location"
                                            aria-controls="navs-justified-link-location" aria-selected="false">
                                            Location
                                        </button>
                                    </li>
                                <?php else: ?>
                                    <?php if($memberPermision != '' || $memberPermision != null): ?>
                                        <li class="nav-item">
                                            <button type="button" class="nav-link active" role="tab"
                                                data-bs-toggle="tab" data-bs-target="#navs-justified-personal"
                                                aria-controls="navs-justified-personal" aria-selected="true">
                                                Personal Details
                                            </button>
                                        </li>

                                        <?php if($memberPermision && in_array('savings', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab" data-bs-target="#navs-justified-link-savings"
                                                    aria-controls="navs-justified-link-savings" aria-selected="false">
                                                    Savings
                                                </button>
                                            </li>
                                        <?php endif; ?>

                                        <?php if($memberPermision && in_array('loan', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab" data-bs-target="#navs-justified-link-loan"
                                                    aria-controls="navs-justified-link-loan" aria-selected="false">
                                                    Loan
                                                </button>
                                            </li>
                                        <?php endif; ?>

                                        <?php if($memberPermision && in_array('death', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab" data-bs-target="#navs-justified-link-death"
                                                    aria-controls="navs-justified-link-death" aria-selected="false">
                                                    Death
                                                </button>
                                            </li>
                                        <?php endif; ?>

                                        <?php if($memberPermision && in_array('meetings', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab"
                                                    data-bs-target="#navs-justified-link-meetings"
                                                    aria-controls="navs-justified-link-meetings"
                                                    aria-selected="false">
                                                    Meetings
                                                </button>
                                            </li>
                                        <?php endif; ?>

                                        <?php if($memberPermision && in_array('documents', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab"
                                                    data-bs-target="#navs-justified-link-documents"
                                                    aria-controls="navs-justified-link-documents"
                                                    aria-selected="false">
                                                    Documents
                                                </button>
                                            </li>
                                        <?php endif; ?>
                                        <?php if($memberPermision && in_array('notes', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab" data-bs-target="#navs-justified-link-notes"
                                                    aria-controls="navs-justified-link-notes" aria-selected="false">
                                                    Notes
                                                </button>
                                            </li>
                                        <?php endif; ?>
                                        <?php if($memberPermision && in_array('login', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab" data-bs-target="#navs-justified-link-login"
                                                    aria-controls="navs-justified-link-login" aria-selected="false">
                                                    Login Details
                                                </button>
                                            </li>
                                        <?php endif; ?>
                                         <?php if($memberPermision && in_array('location', (array) json_decode($memberPermision, true))): ?>
                                            <li class="nav-item">
                                                <button type="button" class="nav-link" role="tab"
                                                    data-bs-toggle="tab" data-bs-target="#navs-justified-link-location"
                                                    aria-controls="navs-justified-link-location" aria-selected="false">
                                                    Location
                                                </button>
                                            </li>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                <?php endif; ?>

                            </ul>
                            <div class="tab-content border-0 mx-1">
                                <div class="tab-pane fade show active" id="navs-justified-personal" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.personal_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-savings" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.saving_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-loan" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.loan_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-death" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.death_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-meetings" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.meetings_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-documents" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.documents_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-notes" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.notes_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                <div class="tab-pane fade show " id="navs-justified-link-login" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.login_details', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                                 <div class="tab-pane fade show " id="navs-justified-link-location" role="tabpanel">
                                    <?php echo $__env->make('pages.allpages.memberpages.manage_location', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                </div>
                            </div>
                        </div>


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


<div class="modal fade" id="updateProfileModal" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-simple">
        <div class="modal-content">
            <div class="modal-body">
                <button type="button" class="btn-close btn-pinned" data-bs-dismiss="modal"
                    aria-label="Close"></button>
                <div class="text-center mb-6">
                    <h4 class="mb-2">Update Profile</h4>
                    <p>Profile</p>
                </div>
                <input type="text" class="form-control" id="txtMemberId" name="txtMemberId"
                    value="<?php echo e($memberId); ?>" hidden />
                <div class="col-12 mb-4">
                    <label class="form-label">Choose Profile</label>
                    <input type="file" class="form-control" id="txtProfile" name="txtProfile"
                        accept="image/*" />
                </div>

                <div class="col-12 text-center demo-vertical-spacing">
                    <button class="btn btn-primary me-4" id="btnUpdateProfile">Update</button>
                    <button type="reset" class="btn btn-label-secondary" data-bs-dismiss="modal"
                        aria-label="Close">
                        Discard
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>



<div class="modal fade" id="updateSignatureModal" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-simple">
        <div class="modal-content">
            <div class="modal-body">
                <button type="button" class="btn-close btn-pinned" data-bs-dismiss="modal"
                    aria-label="Close"></button>
                <div class="text-center mb-6">
                    <h4 class="mb-2">Update Signature</h4>
                    <p>Signature</p>
                </div>
                <input type="text" class="form-control" id="txtSigMemberId" name="txtSigMemberId"
                    value="<?php echo e($memberId); ?>" hidden />
                <div class="col-12 mb-4">
                    <label class="form-label">Choose Signature</label>
                    <input type="file" class="form-control" id="txtSignature" name="txtSignature"
                        accept="image/*" />
                </div>

                <div class="col-12 text-center demo-vertical-spacing">
                    <button class="btn btn-primary me-4" id="btnUpdateSignature">Update</button>
                    <button type="reset" class="btn btn-label-secondary" data-bs-dismiss="modal"
                        aria-label="Close">
                        Discard
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /Users/anlex/Desktop/untitled folder/ngo/resources/views/pages/allpages/view_member.blade.php ENDPATH**/ ?>