@extends('admin.layouts.app')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
@section('header-script')
@include('admin.layouts.datatable-header')
@endsection
@section('content')
<script type="text/javascript">
$(document).ready(function() {

    $(document).ready(function() {
        $('#another-element').hide();
    });
    $("#myelement").click(function() {
        $('#another-element').toggle("slide")


    });

    $(document).ready(function() {
        $('#another-element1').hide();
    });
    $("#myelement1").click(function() {
        $('#another-element1').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element2').hide();
    });
    $("#myelement2").click(function() {
        $('#another-element2').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element3').hide();
    });
    $("#myelement3").click(function() {
        $('#another-element3').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element4').hide();
    });
    $("#myelement4").click(function() {
        $('#another-element4').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element5').hide();
    });
    $("#myelement5").click(function() {
        $('#another-element5').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element6').hide();
    });
    $("#myelement6").click(function() {
        $('#another-element6').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element7').hide();
    });
    $("#myelement7").click(function() {
        $('#another-element7').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element8').hide();
    });
    $("#myelement8").click(function() {
        $('#another-element8').toggle("slide")
    });
    $(document).ready(function() {
        $('#another-element9').hide();
    });
    $("#myelement9").click(function() {
        $('#another-element9').toggle("slide")
    });

    $(document).ready(function() {
        $('#another-element10').hide();
    });
    $("#myelement10").click(function() {
        $('#another-element10').toggle("slide")
    });
    $(document).ready(function() {
        $('#another-element11').hide();
    });
    $("#myelement11").click(function() {
        $('#another-element11').toggle("slide")
    });
});
</script>
<!-- Page-Title -->
<button id="myelement"> রেজিস্ট্রেশনকৃত শিক্ষার্থীর তালিকা </button>
<button id="myelement1"> বাছাই পর্ব </button>
<button id="myelement2"> ২য় পর্ব </button>
<button id="myelement3"> 3য় পর্ব </button>
<button id="myelement4"> 4th পর্ব </button>
<button id="myelement5"> 5th পর্ব </button>
<button id="myelement6"> 6th পর্ব </button>

<table align="center" class="col-md-12" id="">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> রেজিস্ট্রেশনকৃত শিক্ষার্থীর তালিকা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>
                                            <td width="50"> মার্ক-১ </td>
                                            <td width="50"> মার্ক-২</td>
                                            <td width="50"> মার্ক-৩ </td>
                                            <td width="50"> মার্ক-৪ </td>
                                            <td width="100">শ্রেণি শিক্ষক(২৫%)+লেখা পড়া করে যে(২৫%)+অামার আমি (৫০%)</td>
                                            <td width="100"> প্রমশন দিন </td>
                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($selections) > 0)

                                            @foreach($selections as $selection)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$selection->name}}</td>
                                                <td>{{$selection->class}}</td>
                                                <td>{{$selection->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$selection->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>

                                                <td>{{$selection->marks_1}}</td>
                                                <td>{{$selection->marks_2}}</td>
                                                <td>{{$selection->marks_3}}</td>
                                                <td>{{$selection->marks_4}}</td>
                                                <td>{{$selection->total}}</td>


                                                <td>


                                                    @if($selection->permission == 1)
                                                    {!! Form::open(['action' => ['AdminController@selection',
                                                    $selection->user_id],
                                                    'method'=> 'POST']) !!}
                                                    {!! Form::hidden('selection', 1)!!}
                                                    {!! Form::hidden('user_id', $selection->id)!!}

                                                    {!! Form::hidden('_method', 'POST') !!}
                                                    @if($selection->selection == 1)
                                                    <button class="btn btn-success" type="submit"><i
                                                            class="fa fa-close">
                                                        </i></button>

                                                    @else<button class="btn btn-danger" type="submit"><i
                                                            class="fa fa-close">
                                                        </i></button>
                                                    @endif
                                                    {!! Form::close() !!}
                                                    @endif


                                                    <!-- <form class="form-horizontal" enctype="multipart/form-data"
                                                        method="POST"
                                                        action="{{action('AdminController@marksdelete', $selection->id)}}">
                                                        {{ csrf_field() }}
                                                        <a style="width: 49%;"
                                                            href="{{url('admin/meritlist')}}/{{$selection->id}}/delete"
                                                            class="btn btn-danger btn-sm">
                                                            <span class="glyphicon glyphicon-trash"> </span>
                                                        </a>
                                                    </form>
                                                </td> -->

                                            </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>

<table align="center" class="col-md-12" id="another-element1">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element1">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> বাছাই পর্ব এর শিক্ষার্থীর তালিকা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>
                                            <td width="50"> গানের খাতার স্বরলিপি(৪০%) </td>
                                            <td width="50"> আমার পরানও যাহা..(৫০%)</td>
                                            <td width="50"> বিচারক ১ম পর্ব (১০%)</td>
                                            <td width="50"> বিচারক ২য় পর্ব (১০%)</td>
                                            <td width="100">গানের খাতার স্বরলিপি(৪০%)+আমার পরানও যাহা..(৫০%)+বিচারক ১ম
                                                (১০%)+বিচারক ২য় (১০%)</td>
                                            <td width="100"> প্রমশন দিন </td>
                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($firstRounds) > 0)

                                            @foreach($firstRounds as $firstRound)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$firstRound->name}}</td>
                                                <td>{{$firstRound->class}}</td>
                                                <td>{{$firstRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$firstRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>
                                                    </div>
                                                </td>
                                                <td>{{$firstRound->marks_1}}</td>
                                                <td>{{$firstRound->marks_2}}</td>
                                                <td>{{$firstRound->marks_3}}</td>
                                                <td>{{$firstRound->marks_4}}</td>
                                                <td>{{$firstRound->total}}</td>


                                                <td>
                                                    @if($firstRound->selection == 1)
                                                    {!! Form::open(['action' => ['AdminController@roundone',
                                                    $firstRound->user_id],
                                                    'method'=> 'POST']) !!}
                                                    {!! Form::hidden('round_1', 1)!!}
                                                    {!! Form::hidden('user_id', $firstRound->user_id)!!}

                                                    {!! Form::hidden('_method', 'POST') !!}
                                                    @if($firstRound->round_1 == 1)
                                                    <button class="btn btn-success" type="submit"><i
                                                            class="fa fa-close">
                                                        </i></button>

                                                    @else<button class="btn btn-danger" type="submit"><i
                                                            class="fa fa-close">
                                                        </i></button>
                                                    @endif

                                                    {!! Form::close() !!}
                                                    @endif
                                            </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>

<table align="center" class="col-md-12" id="another-element2">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element2">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> ২য় পর্ব এর শিক্ষার্থীরা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>

                                            <td width="100"> Total (by auto play+ by guest)</td>

                                            <td width="100"> প্রমশন দিন </td>
                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($secondRounds) > 0)

                                            @foreach($secondRounds as $secondRound)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$secondRound->name}}</td>
                                                <td>{{$secondRound->class}}</td>
                                                <td>{{$secondRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$secondRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>


                                                <td>{{$secondRound->total}}</td>




                                                <td>
                                                    @if($secondRound->round_1 == 1)
                                                    {!! Form::open(['action' => ['AdminController@roundtwo',
                                                    $secondRound->user_id],
                                                    'method'=> 'POST']) !!}
                                                    {!! Form::hidden('round_2', 1)!!}
                                                    {!! Form::hidden('user_id', $secondRound->user_id)!!}

                                                    {!! Form::hidden('_method', 'POST') !!}
                                                    @if($secondRound->round_2 == 1)
                                                    <button class="btn btn-success" type="submit"><i
                                                            class="fa fa-close">
                                                        </i></button>

                                                    @else<button class="btn btn-danger" type="submit"><i
                                                            class="fa fa-close">
                                                        </i></button>
                                                    @endif

                                                    {!! Form::close() !!}
                                                    @endif
                                            </tr>
                                            @endforeach
                                            @else
                                            <tr>
                                                <td> No Data Found dsfdsfd</td>
                                            </tr>
                                            @endif
                                        </tbody>
                                    </table>

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

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

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


<table align="center" class="col-md-12" id="another-element3">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element3">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> 3য় পর্ব এর শিক্ষার্থীরা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>

                                            <td width="100"> Total (by auto play+ by guest)</td>


                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($thirdRounds) > 0)

                                            @foreach($thirdRounds as $thirdRound)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$thirdRound->name}}</td>
                                                <td>{{$thirdRound->class}}</td>
                                                <td>{{$thirdRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$thirdRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>


                                                <td>{{$thirdRound->total}}</td>
                                            </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>


<table align="center" class="col-md-12" id="another-element4">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> 4th পর্ব এর শিক্ষার্থীরা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>

                                            <td width="100"> Total (by auto play+ by guest)</td>


                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($fourthRounds) > 0)

                                            @foreach($fourthRounds as $fourthRound)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$fourthRound->name}}</td>
                                                <td>{{$fourthRound->class}}</td>
                                                <td>{{$fourthRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$fourthRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>


                                                <td>{{$fourthRound->total}}</td>





                                            </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>


<table align="center" class="col-md-12" id="another-element5">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> 5th পর্ব এর শিক্ষার্থীরা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>

                                            <td width="100"> Total (by auto play+ by guest)</td>


                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($fiftRounds) > 0)

                                            @foreach($fiftRounds as $fiftRound)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$fiftRound->name}}</td>
                                                <td>{{$fiftRound->class}}</td>
                                                <td>{{$fiftRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$fiftRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>


                                                <td>{{$fiftRound->total}}</td>
                                            </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>

<table align="center" class="col-md-12" id="another-element6">
    <tr>
        <td>
            <div class="container">
                <div class="row">
                    <div class="col-md-12 " id="another-element6">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2> 6th পর্ব এর শিক্ষার্থীরা </h2>
                            </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="200"> শিক্ষার্থীর নাম </td>
                                            <td width="50"> শ্রেণি </td>
                                            <td width="50"> রোল </td>
                                            <td width="50"> ছবি </td>

                                            <td width="100"> Total (by auto play+ by guest)</td>


                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($sixRounds) > 0)

                                            @foreach($sixRounds as $sixRound)
                                            <tr>
                                                <?php $i+=1; ?>
                                                <td scope="row">{{$i}}</td>

                                                <td>{{$sixRound->name}}</td>
                                                <td>{{$sixRound->class}}</td>
                                                <td>{{$sixRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$sixRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>

                                                    </div>
                                                </td>


                                                <td>{{$sixRound->total}}</td>
                                            </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