<?php echo $__env->make('clumsy::templates.head', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<div class="container master">
    <h1 class="page-header">
        <div class="row">
            <div class="col-sm-8">
               Avaliações do juri
            </div>
        </div>
    </h1>

    <div class="panel panel-default <?php echo $resource; ?>-panel">
        <div class="table-responsive">
            <table class="table jury-table">
                <thead>
                    <th>Nome do Fadista</th>
                    <th>Música</th>
                    <?php foreach($jury as $juror): ?>
                    <th class="center"><a href="<?php echo route('admin.jury-vote.juror-bands-ratings', array('jurorId' => $juror->id)); ?>"><?php echo $juror->last_name; ?></a></th>
                    <?php endforeach; ?>
                    <th class="center">Total</th>
                </thead>
                <tbody>
                    <?php foreach($bands as $band): ?>
                        <tr class="band">
                            <td><a href="<?php echo route('admin.band.edit', array('id' => $band->id)); ?>"><?php echo $band->name; ?></a></td>
                            <td><?php echo $band->song; ?></td>
                            <?php foreach($band->juryVotes as $rating): ?>
                            <td class="center"><?php echo $rating; ?></td>
                            <?php endforeach; ?>
                            <td class="center"><?php echo $band->totalScore; ?></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>

       <?php /*  <?php if(count($jury)): ?>

            <div class="table-responsive">

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


                <table class="table jury-table" >
                    <thead>
                        <th class="juror-name">
                            Nome
                        </th>
                    </thead>

                    <tbody>
                    <?php foreach($jury as $juror): ?>
                        <tr class="juror">
                            <td><a href="<?php echo route('admin.jury-vote.juror-bands-ratings', array('jurorId' => $juror->id)); ?>"><?php echo $juror->first_name.' '.$juror->last_name; ?></a></td>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
            </div>

        <?php else: ?>

            <div class="panel-body">
                <h5>
                    Não há jurados designados
                </h5>
            </div>

        <?php endif; ?> */ ?>

    </div>

</div>

<?php echo $__env->make('clumsy::templates.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
