<?php switch($input['metric']):
    case ('Attendance'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>Team Size</th>
                <th>Total Team Att.</th>
                <?php if($input['programme_include_choir']): ?>
                    <th>Total Average Att.</th>
                <?php else: ?>
                    <th>Total Guest Att.</th>
                    <th>Total Average Att.</th>
                    <th>% Score</th>
                <?php endif; ?>
                <th>Points</th>
                <th>Total</th>
            </tr>
        </thead>
        <tbody>
            <?php $n = 0; ?>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php $n++; ?>
                <tr>
                    <td><?php echo e($n); ?></td>
                    <td class="fw-bold"><?php echo e($item->name); ?></td>
                    <td><?php echo e($item->total); ?></td>
                    <td class="fw-bold"><?php echo e($item->team_total_att); ?></td>
                    <?php if($input['programme_include_choir']): ?>
                        <td class="fw-bold"><?php echo e($item->team_avg_att); ?></td>
                    <?php else: ?>
                        <td><?php echo e($item->guest_total_att); ?></td>
                        <td class="fw-bold"><?php echo e($item->team_avg_att); ?></td>
                        <td><?php echo e($item->perc_score); ?></td>
                    <?php endif; ?>
                    <td><?php echo e($item->points); ?></td>
                    <td class="fw-bold"><?php echo e($item->net_points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($item->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="team_total[]" value="<?php echo e($item->total); ?>">
                    <input type="hidden" name="team_total_att[]" value="<?php echo e($item->team_total_att); ?>">
                    <input type="hidden" name="guest_total_att[]" value="<?php echo e($item->guest_total_att); ?>">
                    <input type="hidden" name="days[]" value="<?php echo e($item->days); ?>">
                    <input type="hidden" name="avg_total_att[]" value="<?php echo e($item->team_avg_att); ?>">
                    <input type="hidden" name="perc_score[]" value="<?php echo e($item->perc_score); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($item->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($item->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>

    <?php case ('Finance'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>Overall Target</th>
                <th>Accrued Amount</th>
                <th>Points</th>
                <th>Extra Points</th>
                <th>Total</th>
            </tr>
        </thead>
        <tbody>
            <?php $n = 0; ?>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php $n++; ?>
                <tr>
                    <td><?php echo e($n); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e(numberFormat($input['target_amount'])); ?></td>
                    <td><?php echo e(numberFormat($team->accrued_amount)); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <td><?php echo e($team->extra_points); ?></td>
                    <td><?php echo e($team->net_points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="accrued_amount[]" value="<?php echo e($team->accrued_amount); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="extra_points[]" value="<?php echo e($team->extra_points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>

    <?php case ('Leader-Retreat'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>Leader Attendance</th>
                <th>No. of Meetings</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->no_leaders); ?></td>
                    <td><?php echo e($team->no_meetings); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="retreat_leader_total[]" value="<?php echo e($team->no_leaders); ?>">
                    <input type="hidden" name="retreat_meeting_total[]" value="<?php echo e($team->no_meetings); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php case ('Online-Meeting'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Meetings</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->no_meetings); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="online_meeting_total[]" value="<?php echo e($team->no_meetings); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php case ('Team-Bonding'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Activities</th>
                <th>Points</th>
                <th>Extra Points</th>
                <th>Total</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->tb_activities_total); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <td><?php echo e($team->extra_points); ?></td>
                    <td><?php echo e($team->net_points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="tb_activities_total[]" value="<?php echo e($team->tb_activities_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="extra_points[]" value="<?php echo e($team->extra_points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php case ('Summit-Meeting'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Meetings</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->summit_meetings_total); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="summit_meetings_total[]" value="<?php echo e($team->summit_meetings_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php case ('Member-Recruitment'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Recruits</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->recruits_total); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="recruits_total[]" value="<?php echo e($team->recruits_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php case ('New-Initiative'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Initiatives</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->initiatives_total); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="initiatives_total[]" value="<?php echo e($team->initiatives_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php case ('Team-Mission'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Missions</th>
                <th>Pledged Amount</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->missions_total); ?></td>
                    <td><?php echo e(numberFormat($team->pledged_total)); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="team_missions_total[]" value="<?php echo e($team->missions_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>   

    <?php case ('Choir-Member'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Choir Members</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->choir_members_total); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="choir_members_total[]" value="<?php echo e($team->choir_members_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>  
        
    <?php case ('Other-Activities'): ?>
        <thead>
            <tr>
                <th>No.</th>
                <th>Team Name</th>
                <th>No. of Other Activities</th>
                <th>Points</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($i+1); ?></td>
                    <td><?php echo e($team->name); ?></td>
                    <td><?php echo e($team->other_activities_total); ?></td>
                    <td><?php echo e($team->points); ?></td>
                    <input type="hidden" name="programme_id[]" value="<?php echo e($input['programme_id']); ?>">
                    <input type="hidden" name="team_id[]" value="<?php echo e($team->id); ?>">
                    <input type="hidden" name="date_from[]" value="<?php echo e($input['date_from']); ?>">
                    <input type="hidden" name="date_to[]" value="<?php echo e($input['date_to']); ?>">
                    <input type="hidden" name="rating_scale_id[]" value="<?php echo e($input['rating_scale_id']); ?>">
                    <input type="hidden" name="other_activities_total[]" value="<?php echo e($team->other_activities_total); ?>">
                    <input type="hidden" name="point[]" value="<?php echo e($team->points); ?>">
                    <input type="hidden" name="net_points[]" value="<?php echo e($team->net_points); ?>">
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
        <?php break; ?>    

    <?php default: ?>
    <thead>
        <tr>
            <th>No.</th>
            <th>Team Name</th>
            <th>Points</th>
            <th>Total</th>
        </tr>
    </thead>
    <tbody></tbody>
<?php endswitch; ?>
<?php /**PATH C:\xampp7.4.33\htdocs\mog_metrics\resources\views/assign_scores/partial/load_score_table.blade.php ENDPATH**/ ?>