<?php $__env->startSection('main-body'); ?>
<?php echo $__env->make('modals.confirmation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="container-fluid">
    <div class="page-header">
        <div class="row">
            <div class="col-sm-12">
                <h3>Professional Management</h3>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="/">Dashboard</a></li>
                    <li class="breadcrumb-item active"><a href="/professionals">Professionals</a></li>
                </ol>

            </div>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-styling" id="profession-list">
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Profession</th>
                                    <th>Email</th>
                                    <th>Registration Status</th>
                                    <th>Application Status</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $professionals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $professional): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo $professional->profile->first_name . " " . $professional->profile->last_name; ?></td>
                                    <td>
                                        <?php if($professional->profession): ?>
                                            <?php echo $professional->profession->name; ?>

                                        <?php else: ?>
                                        Not Available
                                        <?php endif; ?>
                                    </td>
                                    <td><?php echo $professional->user->email; ?></td>
                                    <td>
                                        <?php if($professional->user->verified): ?>
                                            Email Verified
                                        <?php else: ?>
                                            New
                                        <?php endif; ?>
                                    </td>
                                    <td><?php if($professional->has_applied): ?>
                                            <?php if($professional->status == 'pending'): ?>
                                                For Review
                                            <?php else: ?>
                                                <?php echo ucfirst($professional->status); ?>

                                            <?php endif; ?>
                                        <?php else: ?>
                                            New
                                        <?php endif; ?>
                                    </td>
                                        <td>

                                            <div class="d-flex w-25"  style="font-size:30px;">
                                                <?php if($loggedUser->can('review-professionals')): ?>
                                                     <?php if($professional->has_applied): ?>
                                                        <a href="#" class="m-auto text-dark" type="button" id="<?php echo e($professional->id); ?>" onclick="viewDetails(this)"><i class="fa fa-user"></i></a>
                                                        <?php if($professional->status == 'pending'): ?>
                                                            <?php echo Form::open(array('route'=>array('professionals.update-status',$professional->id),'class'=>'d-flex justify-content-around align-items-center','method'=>'PUT','id'=>'application-form-'.$professional->id)); ?>

                                                                <i id = "<?php echo e($professional->id); ?>-approve" onclick = "updateStatus(this)" data-feather="check-circle" class = "text-success" style= "cursor: pointer;margin-left:10px;"></i>
                                                                <i id = "<?php echo e($professional->id); ?>-decline" onclick = "updateStatus(this)" data-feather="x-circle" class="text-danger"style="cursor: pointer;"></i>
                                                                <?php echo Form::hidden('status', '', ['id'=>'applicationStatus-'.$professional->id]); ?>

                                                            <?php echo Form::close(); ?>

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

                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div>
  <!-- Modal -->
  <div class="modal fade" id="professionalProfileModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl">
        <div style="border-radius: 1em" class="modal-content border-0 px-3 py-2">
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.modal-body','data' => ['label' => 'Details']]); ?>
<?php $component->withName('modal-body'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Details']); ?>
                <div class="d-flex align-items-center justify-content-around">

                    <div class="col-2">
                        <img style="width: 100%" class="rounded-circle" src="<?php echo e(asset('assets/images/user/avatar.png')); ?>" alt="My Profile Picture">
                    </div>

                    <div style="height: 12em" class="row flex-wrap col-9 justify-content-between align-content-between">
                        <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                            <label style="font-size: .8rem" for="value" class="fw-light">FirstName</label>
                            <p id = "profileFirstName" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                        </div>
                        <div style="height: 12em" class="row flex-wrap col-9 justify-content-between align-content-between">
                        <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                            <label style="font-size: .8rem" for="value" class="fw-light">MiddleName</label>
                            <p id = "profileMiddleName" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                        </div>
                        <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                            <label style="font-size: .8rem" for="value" class="fw-light">LastName</label>
                            <p id = "profileLastName" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                        </div>
                        <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                            <label style="font-size: .8rem" for="value" class="fw-light">Gender</label>
                            <p id = "profileGender" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                        </div>
                        <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                            <label style="font-size: .8rem" for="value" class="fw-light">Email</label>
                            <p id = "profileEmail" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                        </div>
                        <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                            <label style="font-size: .8rem" for="value" class="fw-light">Mobile Number</label>
                            <p id = "profileMobileNumber" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                        </div>
                    </div>
                </div>
             <?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.modal-body','data' => ['label' => 'Profession']]); ?>
<?php $component->withName('modal-body'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Profession']); ?>
                <div style="height: 12em" class="row flex-wrap col-11 justify-content-between align-content-between m-auto">
                    <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                        <label style="font-size: .8rem" for="value" class="fw-light">Profession</label>
                        <p id = "profileProfession" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                    </div>
                    <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                        <label style="font-size: .8rem" for="value" class="fw-light">Specialty</label>
                        <p id = "profileSpecialty" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                    </div>
                    <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                        <label style="font-size: .8rem" for="value" class="fw-light">HMO</label>
                        <p id = "profileHMO" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                    </div>
                    <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                        <label style="font-size: .8rem" for="value" class="fw-light">Afiliations</label>
                        <p id = "profileAfiliations" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                    </div>
                </div>
             <?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.modal-body','data' => ['label' => 'Professional Practice']]); ?>
<?php $component->withName('modal-body'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Professional Practice']); ?>
                <div style="height: 12em" class="row flex-wrap col-11 justify-content-between align-content-between m-auto">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.read-only-text','data' => ['label' => 'Clinic / Hospital','value' => 'East Avenue Medical Center']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Clinic / Hospital','value' => 'East Avenue Medical Center']); ?>
<?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.read-only-text','data' => ['label' => 'Address','value' => 'East Ave, Diliman, Quezon City, 1100 Metro Manila']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Address','value' => 'East Ave, Diliman, Quezon City, 1100 Metro Manila']); ?>
<?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.read-only-text','data' => ['label' => 'Region / Provinces','value' => 'National Capital Region']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Region / Provinces','value' => 'National Capital Region']); ?>
<?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.read-only-text','data' => ['label' => 'Country','value' => 'Phillipines']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Country','value' => 'Phillipines']); ?>
<?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.read-only-text','data' => ['label' => 'City','value' => 'Quezon City']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'City','value' => 'Quezon City']); ?>
<?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.read-only-text','data' => ['label' => 'Postal Code','value' => '1100']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Postal Code','value' => '1100']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>
             <?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.modal-body','data' => ['label' => 'Schedule Section','displayLine' => 'block']]); ?>
<?php $component->withName('modal-body'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Schedule Section','displayLine' => 'block']); ?>
                <div class="row flex-wrap col-10 justify-content-between align-content-between m-auto">
                    <div style="background: #dcdfe0 ;border-radius: 2em" class="p-3">
                        <p class="mx-4 mb-2 fs-5 fw-bold mt-0">Schedules</p>
                    <table style="border-radius: 2em; border-collapse:separate; border-spacing: 0 .3em;" class="table text-center border-0">
                        <thead class="fw-bold">
                            <tr>
                                <td style="border-radius: 1em 0 0 0">Day</td>
                                <td>Time</td>
                                <td style="border-radius: 0 1em 0 0">Consultation Fee</td>
                            </tr>
                        </thead>
                        <tbody class="table-hover">
                            <tr>
                                <td>Monday</td>
                                <td>00:00 PM - 00:00 PM</td>
                                <td>Php 1,000.00</td>
                            </tr>
                            <tr>
                                <td>Teusday</td>
                                <td>00:00 PM - 00:00 PM</td>
                                <td>Php 1,000.00</td>
                        </tr>
                        <tr>
                            <td>Wednesday</td>
                            <td>00:00 PM - 00:00 PM</td>
                            <td>Php 1,000.00</td>
                        </tr>
                        <tr>
                            <td>Thursday</td>
                            <td>00:00 PM - 00:00 PM</td>
                            <td>Php 1,000.00</td>
                        </tr>
                        <tr>
                            <td>Friday</td>
                            <td>00:00 PM - 00:00 PM</td>
                            <td>Php 1,000.00</td>
                        </tr>
                        <tr>
                            <td>Saturday</td>
                            <td>00:00 PM - 00:00 PM</td>
                            <td>Php 1,000.00</td>
                        </tr>
                        <tr>
                            <td style="border-radius: 0 0 0 1em">Sunday</td>
                            <td>00:00 PM - 00:00 PM</td>
                            <td style="border-radius: 0 0 1em 0">Php 1,000.00</td>
                        </tr>
                    </tbody>
                    </table>
                </div>
                </div>
             <?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.modal-body','data' => ['label' => 'Identity Verification Section','displayLine' => 'none']]); ?>
<?php $component->withName('modal-body'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Identity Verification Section','displayLine' => 'none']); ?>
                <div style="height: 35em" class="row flex-wrap col-11 justify-content-between align-content-between m-auto pb-5">
                    <div style="min-width: 10em;" class="col-auto flex-fill text-muted">
                        <label style="font-size: .8rem" for="value" class="fw-light">PRC Number</label>
                        <p id = "profilePRCNumber" style="font-weight:500" class="fs-5 m-0" id="value" ></p>
                    </div>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.read-only-text','data' => ['label' => 'Date of Admission','id' => 'dateOfAdmission','value' => '08/18/22']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Date of Admission','id' => 'dateOfAdmission','value' => '08/18/22']); ?>
<?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.read-only-text','data' => ['label' => 'Birthdate','value' => '012345']]); ?>
<?php $component->withName('read-only-text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['label' => 'Birthdate','value' => '012345']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

                    <div style="height: 30em" class="row justify-content-between">
                        <div  class = "text-muted col-8">
                            <label style="font-size: .8rem" for="value" class="fw-light">PRC</label>
                            <div style="border-color:  rgb(154, 196, 95) !important; height: 28.5em;" class="border border-3 rounded">
                                <img id = "profilePRCID" style="height: 28em; width: 100%; object-fit: fill"  alt="My Profile Picture">
                            </div>
                        </div>
                        <div  class = "text-muted col-4">
                            <label style="font-size: .8rem" for="value" class="fw-light">PRC</label>
                            <div style="border-color:  rgb(154, 196, 95) !important; height: 28.5em;" class="border border-3 rounded">
                                <img id = "profileSignature" style="height: 28em; width: 100%; object-fit: fill"  alt="My Profile Picture">
                            </div>
                        </div>
                    </div>
                </div>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

        <div class="text-center border-0 p-2">
            <button type="button" id = "profileDecline" class="btn btn-secondary mx-2" data-bs-dismiss="modal">Decline</button>
            <button type="button" id = "profileApprove" class="btn btn-primary mx-2">Approve</button>
        </div>
        </div>
    </div>
</div>
</div>
</div>
<?php echo $__env->make('modals.professional-profile', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

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

<?php $__env->startSection('page-script'); ?>

function viewDetails(elem) {
    window.location.replace('/professionals/'+elem.id+'/application-details');
}

function updateStatus(elem) {

    let element = elem.id.split('-');
    let professionalId = element[0];
    let status = element[1];
    
    if (status === 'approve') {
        $('#confirmation-title').html('Approve');
        $('#confirmation-body').html("Are you sure you want to approve this professional?" );
        $('#submit-btn').html('Approve');
        $('#submit-btn').removeClass('btn-danger');
        $('#submit-btn').addClass('btn-primary');
        $('#applicationStatus-'+professionalId).val('approved');
    } else {
        $('#confirmation-title').html('Decline');
        $('#confirmation-body').html("Are you sure you want to decline this professional?" );
        $('#submit-btn').html('Decline');
        $('#submit-btn').addClass('btn-danger');
        $('#applicationStatus-'+professionalId).val('declined');
    }

    $('#submit-btn').val(professionalId);
    console.log(professionalId)
    console.log('Tess', $('#applicationStatus-'+professionalId).val())
    $('#confirmationModal').modal('show');
}

function submitForm(elem) {
    $('#application-form-'+elem.value).submit();
}

<?php echo $__env->make('notifications.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/prod/desxpert-admin/resources/views/professionals/index.blade.php ENDPATH**/ ?>