<?php $__env->startSection('content'); ?>
<div class="new_row">
<div class="column-15 push-left-4 top_space_tutors">
    <div class="large_top_icon_tutors">
        <div class="large_top_text noicon_test_title">SHSAT</div>
    </div>
</div>
<div class="new_row row-fixed">
    <div class="column-20">
        <img src="<?php echo e(URL::asset('images/girl2.jpg')); ?>" alt="">
    </div>
</div>

<div class="push_underlayer1">

<div class="new_row row-space"></div>
<div class="new_row row-space"></div>
<div class="new_row">
    <div class="column-20">
        <div class="new_row">
            <div class="column-20 empty-1-lr" style="padding-bottom: 4vw;">
        <div class="title1" style="text-align: left; height: 6vw;">
            <p style="margin-bottom: 0;">SHSAT programs</p>
        </div>
    <div class="program-tables">
        <table>
            <tr>
                <th style="width: 15vw;">Start date</th>
                <th style="width: 15vw;">Prep for exam</th>
                <th style="width: 30vw;">Meets on</th>
                <th style="width: 22vw;">Location</th>
                <th style="width: 7vw; text-align: center;">Instructor</th>
                <th style="width: 3vw;">Enrollment</th>
                <th style="width: 8vw;"></th>
            </tr>
            
        <?php foreach($data as $prog) : ?>
            <tr>
                <td><?php echo $prog->dayOfWeek; ?></td>
                <td><?php echo $prog->forExam; ?></td>
                <td><?php echo $prog->meetsOn; ?></td>
                <td><?php echo $prog->schoolName; ?></td>
                <td style="width: 7vw; text-align: center;"><a href="<?php echo '../tutor/profile/'.$prog->tutorId; ?>">

                    <?php $src = URL::to('/').'/images/users/' . $prog->photoURL;?>
                    <?php if($prog->photoURL == '' or !@getimagesize($src)){ ?>
                    <img src="<?php echo URL::to('/').'/images/no-profile-image.png'; ?>">
                    <?php } else { ?>
                    <img src="<?php echo URL::asset('images/users/'). '/' .$prog->photoURL; ?>" alt="<?php echo $prog->firstName.' '.$prog->lastName; ?>"></a></td>
                    <?php } ?>
                <td><?php echo ($prog->active) ? 'open' : 'closed'; ?></td>
                <td><div class="button-program" onclick="openModal(<?php echo $prog->id; ?>);">View program</div></td>
            </tr>
        <?php endforeach;// ?>
        </table>
        <?php if(count($data) == 0) echo '<p class="schedule-table-title">No current programs are available.</p>';?>
        <div id="programModal">
            
        </div>
    </div>
            </div>
        </div>
    </div>
</div>
       
     
    
    </div>



    <?php echo $__env->make('partials.findtutorprogram', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<script>
    $('.row-fixed-content').addClass('tutors-top-content');
</script>
<?php echo $__env->make('partials.programModal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>