@include('clumsy::templates.head')

<div class="container master">
    <h1 class="page-header">
        <div class="row">
            <div class="col-sm-8">
               Avaliações do jurado {{ $juror->first_name.' '.$juror->last_name }}
            </div>
        </div>
    </h1>

    <div class="panel panel-default jury-panel">

        @if (count($ratings))

            <div class="table-responsive">

                {{ Form::token() }}

                <table class="table ratings-table" >
                    <thead>
                        <th class="band-name">
                            Nome do Fadista
                        </th>
                        <th class="rating">
                            Avaliação
                        </th>
                    </thead>

                    <tbody>
                    @foreach ($ratings as $rating)
                        <tr class="rating-row">
                            <td><a href="{{ route('admin.band.edit', ['id' => $rating->band->id]) }}">{{ $rating->band->name }}</a></td>
                            <td>{{ $rating->rating }}</td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>

        @else

            <div class="panel-body">
                <h5>
                    Não há avaliações
                </h5>
            </div>

        @endif

    </div>

</div>

@include('clumsy::templates.footer')
