@extends('admin.layouts.app')

@section('header-script')
@include('admin.layouts.datatable-header')
@endsection


@section('content')
<!-- Page-Title -->
<table align="center" class="col-md-12">
    <tr>
        <td>

            <div class="container">
                <button id="myelement"> রেজিস্ট্রেশনকৃত শিক্ষার্থীর তালিকা </button>
                <div class="row">
                    <div class="col-md-12 " id="another-element">
                        <div class="panel panel-default">
                            <div class="panel-heading"> পর্ব প্রতি নম্বর পূরণ করুন। </div>

                            <div class="panel-body">
                                <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                    action="{{action('AdminController@markstore')}}">
                                    {{ csrf_field() }}

                                    <table class="table table-bordered">
                                        <tr>
                                            <td width="10"> SL </td>
                                            <td width="10"> পর্ব </td>
                                            <td width="200"> বিজয়ীদের নাম </td>
                                            <td width="50"> বিজয়ীদের শ্রেণি </td>
                                            <td width="50"> বিজয়ীদের রোল </td>
                                            <td width="50"> বিজয়ীদের ছবি </td>
                                            <td width="50"> Edit </td>
                                            <td width="50"> Delete </td>
                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($winners) > 0)

                                            @foreach($winners as $winner)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>
                                                <td>{{$winner->round_id}}</td>
                                                <td>{{$winner->winner_name}}</td>
                                                <td>{{$winner->winner_class}}</td>
                                                <td>{{$winner->winner_roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$winner->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>


                                                <td>
                                                    <!-- <a style="width: 49%;"
                                                        href="{{url('admin/winneraudience')}}/{{$winner->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a> -->

                                                </td>
                                                <td>


                                                    <form class="form-horizontal" enctype="multipart/form-data"
                                                        method="POST"
                                                        action="{{action('AdminController@audiencequestiondelete', $winner->id)}}">

                                                        {{ csrf_field() }}

                                                        <a style="width: 49%;"
                                                            href="{{url('admin/winneraudience')}}/{{$winner->id}}/delete"
                                                            class="btn btn-danger btn-sm">

                                                            <span class="glyphicon glyphicon-trash"> </span>

                                                        </a>

                                                    </form>

                                            </tr>
                                            @endforeach
                                            @else
                                            <tr>
                                                <td> No Data Found</td>
                                            </tr>
                                            @endif
                                        </tbody>
                                    </table>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>




            </div>

            </div>
            </div>
            </div><!-- end col -->

            </div>
            <!-- end row -->

        </td>
    </tr>
</table>



<!-- end row -->
@endsection

@section('footer-script')
@include('admin.layouts.datatable-footer-script')
@endsection