


<?php $__env->startSection('page_title'); ?>

    <?php echo e($information['activity_program']->display_name); ?> - OSAA

<?php $__env->stopSection(); ?>





<?php $__env->startSection('page_sub_title'); ?>

    <?php echo e($information['activity_program']->display_name); ?>

<?php $__env->stopSection(); ?>



<?php $__env->startSection('head'); ?>

    

    <link rel="stylesheet" href="<?php echo asset('css/fontello.css'); ?>">



<?php $__env->stopSection(); ?>





<?php $__env->startSection('header_button_left'); ?>

    <a href="#" class="jqm-navmenu-link ui-nodisc-icon ui-alt-icon ui-btn-left ui-btn ui-icon-arrow-l ui-btn-icon-notext ui-corner-all" onClick="window.history.back(); return false;">Back</a>



<?php $__env->stopSection(); ?>





<?php $__env->startSection('jquery_init'); ?>





<?php $__env->stopSection(); ?>





<?php $__env->startSection('left_nav_panel'); ?>

    @parent

    <li data-role="list-divider" role="heading" class="ui-li-divider ui-bar-a ui-first-child" data-priority="persist">

        <?php echo $information['activity_name']; ?> Menu

    </li>

   <li data-role="list-divider" role="heading" class="ui-li-divider ui-bar-a ui-first-child" data-priority="persist" style="text-align:center;">
        <?php echo e($information['activity_name']); ?> Menu
    </li>    
    
    <?php if (Helpers::strEqual($information['activity_name'], array('fbl', 'vbl', 'bsc', 'gsc', 'bbx', 'gbx', 'bbl', 'sbl'))): ?>
        <li ><a href="/mobile/<?php echo e($information['activity_slug']); ?>/schedules" data-ajax="false" class="ui-btn">Schedules &amp; Scores</a></li>
    <?php endif; ?>

    <li ><a href="/mobile/<?php echo e($information['activity_slug']); ?>/teams_leagues" data-ajax="false" class="ui-btn">Teams &amp; Leagues</a></li>
    
    <?php if (Helpers::strEqual($information['activity_name'], array('fbl', 'vbl', 'bsc', 'gsc', 'bbx', 'gbx', 'bbl', 'sbl'))): ?>
        <li ><a href="/mobile/<?php echo e($information['activity_slug']); ?>/rankings" data-ajax="false" class="ui-btn">Rankings</a></li>    
    <?php endif; ?>

    <?php if (Helpers::strEqual($information['activity_name'], array('fbl', 'vbl', 'bsc', 'gsc', 'bbx', 'gbx', 'bbl', 'sbl', 'btn', 'gtn', 'wre'))): ?>
        <li ><a href="/mobile/<?php echo e($information['activity_slug']); ?>/brackets" data-ajax="false" class="ui-btn">Brackets</a></li>
    <?php endif; ?>

<?php $__env->stopSection(); ?>







<?php $__env->startSection('main_content'); ?>



<div style="text-align: center;">

    <?php if (!is_null($information['team']->logo_url)): ?>

        <img lsrc="<?php echo $information['team']->logo_url; ?>" alt="<?php echo $information['team']->name; ?>" title="<?php echo $information['team']->name; ?>" style="width: 50%; max-width: 155px; height: 155px">

    <?php else: ?>

        <img lsrc="http://www.osaa.org/images/no_logo.png" alt="" title="No School Logo Available" style="width: 50%; max-width: 155px;">

    <?php endif; ?>

</div>



<h2 style="text-align:center"><?php echo $information['activity_program']->display_name; ?></h2>





<?php if (!is_null($information['team']->ranking)): ?>

    <div class="ui-grid-b">

        <div class="ui-block-a" style="padding: 0.5em;">

            <b>Overall Record</b>

            <br>

            <?php echo Helpers::displayRecord($information['team']->record['OAR']); ?>

        </div>

        <div class="ui-block-b" style="padding: 0.5em;">

            <b>RPI Record</b>

            <br>

            <?php echo Helpers::displayRecord($information['team']->record['RCR']); ?>

        </div>

        <div class="ui-block-c" style="padding: 0.5em;">

            <b>Colley Record</b>

            <br>

            <?php echo Helpers::displayRecord($information['team']->record['CRR']); ?>

        </div>

        <div class="ui-block-a" style="padding: 0.5em;">

            <b>League Record</b>

            <br>

            <?php echo Helpers::displayRecord($information['team']->record['LR']); ?>

        </div>

        <div class="ui-block-b" style="padding: 0.5em;">

            <b>RPI Rating</b>

            <br>

            <?php echo number_format($information['team']->ranking->rpi * 1000, 3, '.', ''); ?>

        </div>

        <div class="ui-block-c" style="padding: 0.5em;">

            <b>Colley Rating</b>

            <br>

            <?php echo number_format($information['team']->ranking->colley * 1000, 3, '.', ''); ?>

        </div>

        <div class="ui-block-a" style="padding: 0.5em;">

            <b>OSAA Rank</b>

            <br>

            <?php echo $information['team']->ranking->rank; ?>

        </div>

        <div class="ui-block-b" style="padding: 0.5em;">

            <b>RPI Ranking</b>

            <br>

            <?php echo $information['team']->ranking->rpi_rank; ?>

        </div>

        <div class="ui-block-c" style="padding: 0.5em;">

            <b>Colley Ranking</b>

            <br>

            <?php echo $information['team']->ranking->colley_rank; ?>

        </div>

        <!-- <div class="ui-block-a" style="padding: 1em; margin-bottom: 0.5em;">

            <b>WWP:</b>

            <?php echo number_format($information['team']->ranking->wwp, 3, '.', ''); ?>

        </div>

        <div class="ui-block-a" style="padding: 1em; margin-bottom: 0.5em;">

            <b>OWP:</b>

            <?php echo number_format($information['team']->ranking->owp, 3, '.', ''); ?>

        </div> -->

        

        

    </div>

    <div class="ui-grid-a" style="margin-top: 1em;">

        <div class="ui-block-b" style="padding: 0.5em;">

            <?php echo $information['team']->ranking->calc_label; ?><br>

            <?php echo $information['team']->ranking->calc_date; ?>

        </div>

        <div class="ui-block-b" style="padding: 0.5em;">



        </div>

    </div>

<?php endif; ?>





<fieldset class="ui-grid-a" style="margin-left: -1em; margin-right: -1em; margin-bottom: 1em;">

    <div class="ui-block-a"><button onClick="loadSchedule(); return false;" class="scheduleButton ui-link ui-btn ui-tabs-anchor ui-btn-active" style="margin: 0">Schedule</button></div>

    <div class="ui-block-b"><button onClick="loadRoster(); return false;" class="rosterButton ui-link ui-btn" style="margin: 0">Roster</button></div>

</fieldset>



<div class="schedule">

    <ul data-role="listview">

        <?php if (isset($information['team']->schedule) && count($information['team']->schedule)>0): ?>

            <?php foreach ($information['team']->schedule as $event): ?>

                <li class="ui-bar-a" style="border-top: none;"><a href="<?php echo url('/mobile/contests/' . $event['contest']->id); ?>">

                    <h2>

                        <?php echo $event['sign']; ?>

                        <?php echo $event['opponent']; ?>

                        <small> <?php echo $event['note']; ?> </small>

                    </h2>

                    <p>

                        <?php echo $event['day']; ?>

                        <?php echo $event['date']; ?>

                        <?php echo $event['time']; ?>

                        <?php echo $event['type']; ?>

                    </p>

                    

                    <p class="ui-li-aside"><b>

                        <?php if ($event['status'] == 'DONE'): ?>

                            <?php echo $event['result']; ?> <?php echo $event['score']; ?>

                        <?php endif; ?>

                    </b></p>

                    

                </a></li>



            <?php endforeach; ?>

        <?php else: ?>

            <li style="text-align:center"><b>

                No contests have been added to this team's schedule yet

            </b></li>

        <?php endif; ?>

    </ul>

</div>



<div class="roster" style="display:none; margin-left: -0.6em; margin-right: -0.6em;">

    <?php if (count($information['team']->roster) > 0): ?>

        <table data-role="table" data-mode="columntoggle" class="table-stroke" style="margin-top: -1em;">

            <thead>

                <tr>

                    <th>#</th>

                    <th>Name</th>

                    <th>Pos</th>

                    <th>Grade</th>

                    <th>Height</th>

                    <?php if (Helpers::strEqual ($information['activity_program']->activity, array('FBL', 'WRE'))): ?>

                        <th>

                            Weight

                        </th>

                    <?php endif; ?>

                </tr>

            </thead>

            <tbody>

            <?php foreach ($information['team']->roster as $player): ?>

                <tr>

                    <th><?php echo $player->number; ?></th>

                    <td>

                        <?php echo $player->name; ?>

                        <?php if ($player->is_captain): ?>

                            <small>(Captain)</small>

                        <?php endif; ?>

                    </td>

                    <td><?php echo $player->position; ?></td>

                    <td><?php echo $player->grade; ?></td>

                    <td><?php echo $player->height; ?></td>

                    <?php if (Helpers::strEqual ($information['activity_program']->activity, array('FBL', 'WRE'))): ?>

                        <td>

                            <?php echo $player->weight; ?>

                        </td>

                    <?php endif; ?>

                </tr>

            <?php endforeach; ?>

            </tbody>

        </table>

    <?php else: ?>

        <table data-role="table" data-mode="columntoggle" class="table-stroke" style="margin-top: -1em;">

            <thead><tr><th style="text-align:center">

                No team roster information available

            </th></tr></thead>

        </table>

    <?php endif; ?>

</div>



<h4 style="text-align: center; margin-top: 2em; margin-bottom: -0.5em;">Download or Print</h4>

<ul data-role="listview" data-inset="true" class="ui-listview ui-listview-inset ui-corner-all ui-shadow">

    <li><a href="/teams/<?php echo $information['team']->id; ?>/roster/2" target="_blank" class="ui-btn ui-btn-icon-right ui-icon-carat-r">V Program Roster <i class="icon-file-pdf"></i></a></li>

    <li><a href="/teams/<?php echo $information['team']->id; ?>/roster" target="_blank" class="ui-btn ui-btn-icon-right ui-icon-carat-r">Media Roster <i class="icon-file-pdf"></i></a></li>

    <li><a href="/teams/<?php echo $information['team']->id; ?>/roster/3" target="_blank" class="ui-btn ui-btn-icon-right ui-icon-carat-r">Multi-team Roster <i class="icon-file-pdf"></i></a></li>

    <?php if (ImagesController::getImageURL($information['team']->id, 'PHOTO', 'ANY')): ?>

        <li><a href="<?php echo ImagesController::getImageURL($information['team']->id, 'PHOTO', 'ANY'); ?>" target="_blank" class="ui-btn ui-btn-icon-right ui-icon-carat-r" data-role="button">

            Team Photo

        </a></li>

    <?php else: ?>

        <li><a href="" class="ui-btn ui-state-disabled" data-role="button">

            No Team Photo

        </a></li>

    <?php endif; ?>

</ul>



    <script>

        

        function loadSchedule() {

            $('.rosterButton').removeClass('ui-tabs-anchor').removeClass('ui-btn-active');

            $('.scheduleButton').addClass('ui-tabs-anchor').addClass('ui-btn-active');

            $('.schedule').show();

            $('.roster').hide();

        }



        function loadRoster() {

            $('.scheduleButton').removeClass('ui-tabs-anchor').removeClass('ui-btn-active');

            $('.rosterButton').addClass('ui-tabs-anchor').addClass('ui-btn-active');

            $('.roster').show();

            $('.schedule').hide();

        }

    </script>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.mobile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>