

<?php $__env->startSection('page_title'); ?>
    <?php if ($information['meet_type'] == 'DUAL'): ?>
        <?php echo e($information['other_team_name']); ?> @ <?php echo e($information['host_team_name']); ?>
    <?php elseif ($information['meet_type'] == 'INV'): ?>
        <?php echo e($information['event']['name']); ?>
    <?php endif; ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('page_sub_title'); ?>
    <?php if ($information['meet_type'] == 'DUAL'): ?>
        <?php echo e($information['other_team_name']); ?> @ <?php echo e($information['host_team_name']); ?>
    <?php elseif ($information['meet_type'] == 'INV'): ?>
        <?php echo e($information['event']['name']); ?>
    <?php endif; ?>
<?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 ><a href="/mobile/<?php echo e($information['activity_slug']); ?>/schedules" data-ajax="false" class="ui-btn">Schedules</a></li>
    <li ><a href="/mobile/<?php echo e($information['activity_slug']); ?>/teams_leagues" data-ajax="false" class="ui-btn">Teams &amp; Leagues</a></li>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('main_content'); ?>

<div style="position: relative;">
    <?php if ($information['meet_type'] == "DUAL"): ?>
        <?php /*  Away team (Dual)  */ ?>
        <div class="away-team-box" style="vertical-align:top;">
            <h2 style="text-align: center;">
                <?php if (!is_null($information['other_ap'])): ?>
                    <a href="<?php echo url('/mobile/teams/' . $information['other_ap']['id']); ?>">
                <?php endif; ?>
                    <?php echo $information['other_team_name']; ?>

                    <div class="team_logo">
                        <?php
                            $image_url = null;
                            if (!is_null($information['other_ap']))
                            {
                                $school = school::find($information['other_ap']['host_school']);

                                if (!is_null($school))
                                {
                                    $image_url = ImagesController::getImageURL($school->short_name, 'logo', '128x128');
                                }
                            }
                        ?>
                        <?php if (!is_null($image_url)): ?>
                            <?php /*  <img src="<?php echo $image_url; ?>" alt="" title="" style="width:128px; height:128px;" />  */ ?>
                        <?php else: ?>
                            <?php /*  <img src="http://www.osaa.org/images/no_logo.png" alt="" title="No School Logo Available" class="tooltip" style="width:128px; height:128px;">  */ ?>
                        <?php endif; ?>
                    </div>
                <?php if ($information['other_ap']): ?></a><?php endif; ?>
                <?php echo $information['other_team_mascot']; ?>
            </h2>
        </div>
        <?php /*  Host Team  */ ?>
        <div class="home-team-box" style="vertical-align:top;">
            <h2 style="text-align: center;">
                <?php if (!is_null($information['host_ap'])): ?><a href="<?php echo url('/mobile/teams/' . $information['host_ap']['id']); ?>"><?php endif; ?>
                    <div class="team_logo">
                        <?php
                            $image_url = null;
                            if (!is_null($information['host_ap']))
                            {
                                $school = school::find($information['host_ap']['host_school']);

                                if (!is_null($school))
                                {
                                    $image_url = ImagesController::getImageURL($school->short_name, 'logo', '128x128');
                                }
                            }
                        ?>
                        <?php if (!is_null($image_url)): ?>
                            <?php /*  <img src="<?php echo $image_url; ?>" alt="" title="" style="width:128px; height:128px;" />  */ ?>
                        <?php else: ?>
                            <?php /*  <img src="http://www.osaa.org/images/no_logo.png" alt="" title="No School Logo Available" class="tooltip" style="width:128px; height:128px;">  */ ?>
                        <?php endif; ?>
                    </div>
                    <?php echo $information['host_team_name']; ?>
                <?php if ($information['host_ap']): ?></a><?php endif; ?>
                <br>
                <?php echo $information['host_team_mascot']; ?>
                <br>
                <span class="half-faded">Host</span>
            </h2>
        </div>
        <h2 style="text-align: center; width: 100%; font-size: 2em; margin-top: -2.5em; position: relative; z-index: -999">
            @
        </h2>
    <?php else: ?>
        <?php /*  Invitational  */ ?>
        <?php /*  Participating Teams  */ ?>
        <h4 style="text-align: center; margin-top: 1em; margin-bottom: -0.5em;">Participating Teams</h4>
        <ul data-role="listview" data-inset="true" class="ui-listview ui-listview-inset ui-corner-all ui-shadow">
            <?php foreach($information['teams'] as $team): ?>
                <a href="<?php echo url('/mobile/teams/' . $team['activity_program_id']); ?>">
                    <?php
                        $image_url = null;
                        if (!is_null($team['activity_program_id']))
                        {
                            $school = school::find($team['host_school']);

                            if (!is_null($school))
                            {
                                $image_url = ImagesController::getImageURL($school->short_name, 'logo', '64x64');
                            }
                        }
                    ?>
                    <?php if (!is_null($image_url)): ?>
                        <?php /*  <img src="<?php echo $image_url; ?>" alt="" title="" style="width:64px; height:64px;" />  */ ?>
                    <?php else: ?>
                        <?php /*  <img src="http://www.osaa.org/images/no_logo.png" alt="" title="No School Logo Available" class="tooltip" style="width:64px; height:64px;">  */ ?>
                    <?php endif; ?>
                </a>
                <li><a href="<?php echo url('/mobile/teams/' . $team['activity_program_id']); ?>" class="ui-btn ui-btn-icon-right ui-icon-carat-r"><?php echo $team['name']; ?> <?php echo $team['mascot']; ?></a></li>
            <?php endforeach; ?>
            <?php if(count($information['oos_teams'] > 0)): ?>
                <?php foreach($information['oos_teams'] as $team): ?>
                    <?php /*  <img src="http://www.osaa.org/images/no_logo.png" alt="" title="No School Logo Available" class="tooltip" style="width:64px; height:64px;">  */ ?>
                    <li><b><?php echo $team; ?></b></li>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>

        <?php /*  Host Team  */ ?>
        <p style="text-align:center; margin-bottom: -1em;">
            Hosted by
            <?php if (!is_null($information['host_ap'])): ?><a href="<?php echo url('/mobile/teams/' . $information['host_ap']['id']); ?>"><?php endif; ?>
                    <?php
                        $image_url = null;
                        if (!is_null($information['host_ap']))
                        {
                            $school = school::find($information['host_ap']['host_school']);

                            if (!is_null($school))
                            {
                                $image_url = ImagesController::getImageURL($school->short_name, 'logo', '128x128');
                            }
                        }
                    ?>
                    <?php if (!is_null($image_url)): ?>
                        <?php /*  <img src="<?php echo $image_url; ?>" alt="" title="" style="width:128px; height:128px;" />  */ ?>
                    <?php else: ?>
                        <?php /*  <img src="http://www.osaa.org/images/no_logo.png" alt="" title="No School Logo Available" class="tooltip" style="width:128px; height:128px;">  */ ?>
                    <?php endif; ?>
                <?php echo $information['host_team_name']; ?>
            <?php if ($information['host_ap']): ?></a><?php endif; ?>
        </p>
    <?php endif; ?>
    <p style="text-align: center; margin-bottom: 2em;">
        <?php /*  date('l F j, Y', strtotime($information['event']->start_at))  */ ?>
        <?php if (Helpers::strEqual(date('g:i a', strtotime($information['event']['start_at'])), "12:00 am")): ?>
            <?php echo Helpers::formatDateTime('l F j, Y', strtotime($information['event']['start_at'])) . " TBD"; ?>
        <?php else: ?>
            <?php echo Helpers::formatDateTime('l F j, Y g:i a', strtotime($information['event']['start_at']), $information['event']['time_zone']); ?>
        <?php endif; ?>
        <br>
        <?php echo $information['event']['location_name']; ?>
    </p>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.mobile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>