@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")
    });
     $("#myelement6").click(function() {
        $('#another-element6').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>
                                                    <a style="" href="{{url('admin/marks')}}/{{$selection->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>

                                                </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>
                                                    <a style="" href="{{url('admin/marks')}}/{{$firstRound->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>

                                                </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-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=""> 1 </td>
                                            <td width=""> 2 </td>
                                            <td width=""> 3 </td>
                                            <td width=""> 4</td>
                                            <td width="">সম্পাদনা </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->marks_1}}</td>
                                                <td>{{$secondRound->marks_2}}</td>
                                                <td>{{$secondRound->marks_3}}</td>
                                                <td>{{$secondRound->marks_4}}</td>
                                                <td>
                                                    <a style="" href="{{url('admin/marks')}}/{{$secondRound->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>
                                                </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-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=""> 1 </td>
                                            <td width=""> 2 </td>
                                            <td width=""> 3 </td>
                                            <td width=""> 4</td>
                                            <td width="">সম্পাদনা </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->marks_1}}</td>
                                                <td>{{$thirdRound->marks_2}}</td>
                                                <td>{{$thirdRound->marks_3}}</td>
                                                <td>{{$thirdRound->marks_4}}</td>
                                                <td>
                                                    <a style="" href="{{url('admin/marks')}}/{{$thirdRound->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>
                                                </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=""> 1 </td>
                                            <td width=""> 2 </td>
                                            <td width=""> 3 </td>
                                            <td width=""> 4</td>
                                            <td width="">সম্পাদনা </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->marks_1}}</td>
                                                <td>{{$fourthRound->marks_2}}</td>
                                                <td>{{$fourthRound->marks_3}}</td>
                                                <td>{{$fourthRound->marks_4}}</td>
                                                <td>
                                                    <a style="" href="{{url('admin/marks')}}/{{$fourthRound->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>
                                                </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-element5">
                        <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=""> 1 </td>
                                            <td width=""> 2 </td>
                                            <td width=""> 3 </td>
                                            <td width=""> 4</td>
                                            <td width="">সম্পাদনা </td>
                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($fifthRounds) > 0)

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

                                                <td>{{$fifthRound->name}}</td>
                                                <td>{{$fifthRound->class}}</td>
                                                <td>{{$fifthRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$fifthRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>
                                                    </div>
                                                </td>
                                                <td>{{$fifthRound->marks_1}}</td>
                                                <td>{{$fifthRound->marks_2}}</td>
                                                <td>{{$fifthRound->marks_3}}</td>
                                                <td>{{$fifthRound->marks_4}}</td>
                                                <td>
                                                    <a style="" href="{{url('admin/marks')}}/{{$fifthRound->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>
                                                </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=""> 1 </td>
                                            <td width=""> 2 </td>
                                            <td width=""> 3 </td>
                                            <td width=""> 4</td>
                                            <td width="">সম্পাদনা </td>
                                        </tr>
                                        <?php $i = 0 ?>
                                        <tbody>
                                            <?php $i = 0; ?>
                                            @if(count($sixRounds) > 0)

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

                                                <td>{{$sixthRound->name}}</td>
                                                <td>{{$sixthRound->class}}</td>
                                                <td>{{$sixthRound->roll}}</td>
                                                <td>
                                                    <div>
                                                        <img src="{{ URL::to('public/images/'.$sixthRound->picture)}}"
                                                            height="45" width="45" />
                                                        </a>
                                                    </div>
                                                </td>
                                                <td>{{$sixthRound->marks_1}}</td>
                                                <td>{{$sixthRound->marks_2}}</td>
                                                <td>{{$sixthRound->marks_3}}</td>
                                                <td>{{$sixthRound->marks_4}}</td>
                                                <td>
                                                    <a style="" href="{{url('admin/marks')}}/{{$sixthRound->id}}/edit"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                                    </a>
                                                </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