@extends('admin.layouts.app')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
    $("#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")
    });

    $().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")
    });
});
</script>
@section('header-script')
@include('admin.layouts.dashboard-header-script')
@endsection


@section('content')


<!-- Page-Title -->
<!-- <div class="row">
    <div class="col-sm-12">

        <h4 class="page-title"><span>Welcome</span> <span
                style="color: #fe6271 ;text-transform: uppercase;">{{ Auth::user()->name }}</span> To <span
                style="color: red;">Rajtextile</span> <span>School</span></h4>
    </div>
</div>
</div> -->

<table align="center" class="col-md-12">
    <tr>
        <td>

            <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="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> শ্রেণি শিক্ষক(২৫%)</td>
                                                        <td width="50"> লেখা পড়া করে যে(২৫%)</td>
                                                        <td width="50"> অামার আমি (৫০%)</td>
                                                        <td width="50"> মার্ক-৪ </td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($users as $user)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$user->id}}">
                                                            {{$user->name}}
                                                        </td>
                                                        <td>
                                                            {{$user->class}}
                                                        </td>
                                                        <td>
                                                            {{$user->roll}}
                                                        </td>
                                                        <td> <img src="{{ URL::to('public/images/'.$user->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="0" selected> বাছাই </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>

                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>

                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">

                                                    </tr>
                                                    @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="container">
                            <button id="myelement1"> বাছাই পর্ব </button>
                            <div class="row">
                                <div class="col-md-12 " id="another-element1">
                                    <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="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> গানের খাতার স্বরলিপি(৪০%) </td>
                                                        <td width="50"> আমার পরানও যাহা..(৫০%)</td>
                                                        <td width="50"> বিচারক ১ম পর্ব (১০%)</td>
                                                        <td width="50"> বিচারক ২য় পর্ব (১০%)</td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($firstRoundParticipents as $firstRoundParticipent)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$firstRoundParticipent->id}}">
                                                            {{$firstRoundParticipent->name}}
                                                        </td>
                                                        <td>
                                                            {{$firstRoundParticipent->class}}
                                                        </td>
                                                        <td>
                                                            {{$firstRoundParticipent->roll}}
                                                        </td>
                                                        <td> <img
                                                                src="{{ URL::to('public/images/'.$firstRoundParticipent->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="1" selected> প্রথম রাউন্ড </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">

                                                    </tr>
                                                    @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="container">
                            <button id="myelement2"> ২য় পর্ব</button>
                            <div class="row">
                                <div class="col-md-12 " id="another-element2">
                                    <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@guestmarkstore')}}">
                                                {{ csrf_field() }}

                                                <table class="table table-bordered">
                                                    <tr>
                                                        <td width="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> প্রধান অতিথি </td>
                                                        <td width="50"> বিচারক-১ </td>
                                                        <td width="50"> বিচারক-২ </td>
                                                        <td width="50"> বিচারক-৩ </td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($secondRoundParticipents as $secondRoundParticipent)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$secondRoundParticipent->id}}">
                                                            {{$secondRoundParticipent->name}}
                                                        </td>
                                                        <td>
                                                            {{$secondRoundParticipent->class}}
                                                        </td>
                                                        <td>
                                                            {{$secondRoundParticipent->roll}}
                                                        </td>
                                                        <td> <img
                                                                src="{{ URL::to('public/images/'.$secondRoundParticipent->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="2" selected> দ্বিতীয় রাউন্ড </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input type="hidden" name="marktype[]" value="guest">

                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">
                                                        @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>



                        <div class="container">
                            <button id="myelement3"> 3য় পর্ব</button>
                            <div class="row">
                                <div class="col-md-12 " id="another-element3">
                                    <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@guestmarkstore')}}">
                                                {{ csrf_field() }}

                                                <table class="table table-bordered">
                                                    <tr>
                                                        <td width="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> প্রধান অতিথি </td>
                                                        <td width="50"> বিচারক-১ </td>
                                                        <td width="50"> বিচারক-২ </td>
                                                        <td width="50"> বিচারক-৩ </td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($thirdRoundParticipents as $thirdRoundParticipent)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$thirdRoundParticipent->id}}">
                                                            {{$thirdRoundParticipent->name}}
                                                        </td>
                                                        <td>
                                                            {{$thirdRoundParticipent->class}}
                                                        </td>
                                                        <td>
                                                            {{$thirdRoundParticipent->roll}}
                                                        </td>
                                                        <td> <img
                                                                src="{{ URL::to('public/images/'.$thirdRoundParticipent->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="3" selected> 3 রাউন্ড </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input type="hidden" name="marktype[]" value="guest">

                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">
                                                        @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>



                        <div class="container">
                            <button id="myelement4"> 4th পর্ব</button>
                            <div class="row">
                                <div class="col-md-12 " id="another-element4">
                                    <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@guestmarkstore')}}">
                                                {{ csrf_field() }}

                                                <table class="table table-bordered">
                                                    <tr>
                                                        <td width="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> প্রধান অতিথি </td>
                                                        <td width="50"> বিচারক-১ </td>
                                                        <td width="50"> বিচারক-২ </td>
                                                        <td width="50"> বিচারক-৩ </td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($fourthRoundParticipents as $fourthRoundParticipent)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$fourthRoundParticipent->id}}">
                                                            {{$fourthRoundParticipent->name}}
                                                        </td>
                                                        <td>
                                                            {{$fourthRoundParticipent->class}}
                                                        </td>
                                                        <td>
                                                            {{$fourthRoundParticipent->roll}}
                                                        </td>
                                                        <td> <img
                                                                src="{{ URL::to('public/images/'.$fourthRoundParticipent->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="4" selected> 4 রাউন্ড </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input type="hidden" name="marktype[]" value="guest">

                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">
                                                        @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="container">
                            <button id="myelement5"> 5th পর্ব</button>
                            <div class="row">
                                <div class="col-md-12 " id="another-element5">
                                    <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@guestmarkstore')}}">
                                                {{ csrf_field() }}

                                                <table class="table table-bordered">
                                                    <tr>
                                                        <td width="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> প্রধান অতিথি </td>
                                                        <td width="50"> বিচারক-১ </td>
                                                        <td width="50"> বিচারক-২ </td>
                                                        <td width="50"> বিচারক-৩ </td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($fifththRoundParticipents as $fifththRoundParticipent)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$fifththRoundParticipent->id}}">
                                                            {{$fifththRoundParticipent->name}}
                                                        </td>
                                                        <td>
                                                            {{$fifththRoundParticipent->class}}
                                                        </td>
                                                        <td>
                                                            {{$fifththRoundParticipent->roll}}
                                                        </td>
                                                        <td> <img
                                                                src="{{ URL::to('public/images/'.$fifththRoundParticipent->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="5" selected> 5 রাউন্ড </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input type="hidden" name="marktype[]" value="guest">

                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">
                                                        @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="container">
                            <button id="myelement6"> 6th পর্ব</button>
                            <div class="row">
                                <div class="col-md-12 " id="another-element6">
                                    <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@guestmarkstore')}}">
                                                {{ csrf_field() }}

                                                <table class="table table-bordered">
                                                    <tr>
                                                        <td width="20"> SL </td>
                                                        <td width="200"> শিক্ষার্থীর নাম </td>
                                                        <td width="50"> শ্রেণি </td>
                                                        <td width="50"> রোল </td>
                                                        <td width="50"> ছবি </td>
                                                        <td style="width:100"> রাউন্ড </td>
                                                        <td width="50"> প্রধান অতিথি </td>
                                                        <td width="50"> বিচারক-১ </td>
                                                        <td width="50"> বিচারক-২ </td>
                                                        <td width="50"> বিচারক-৩ </td>

                                                    </tr>
                                                    <?php $i = 0 ?>
                                                    @foreach($sixthRoundParticipents as $sixthRoundParticipent)
                                                    <?php $i++ ?>
                                                    <tr>
                                                        <td>{{$i}} </td>
                                                        <td> <input type="hidden" name="user_id[]"
                                                                value="{{$sixthRoundParticipent->id}}">
                                                            {{$sixthRoundParticipent->name}}
                                                        </td>
                                                        <td>
                                                            {{$sixthRoundParticipent->class}}
                                                        </td>
                                                        <td>
                                                            {{$sixthRoundParticipent->roll}}
                                                        </td>
                                                        <td> <img
                                                                src="{{ URL::to('public/images/'.$sixthRoundParticipent->picture)}}"
                                                                height="40" width="40" />
                                                        </td>
                                                        <td> <select name="round_id[]" id="round_id"
                                                                class="form-control">
                                                                <option value="6" selected> 6 রাউন্ড/Final </option>
                                                            </select>
                                                        </td>
                                                        <td>
                                                            <input type="hidden" name="marktype[]" value="guest">

                                                            <input id="marks_1" type="text" class="form-control"
                                                                name="marks_1[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_2" type="text" class="form-control"
                                                                name="marks_2[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_3" type="text" class="form-control"
                                                                name="marks_3[]">
                                                        </td>
                                                        <td>
                                                            <input id="marks_4" type="text" class="form-control"
                                                                name="marks_4[]">
                                                        </td>
                                                        <input id="marks_4" type="hidden" class="form-control"
                                                            name="season[]" value="2019">
                                                        @endforeach
                                                </table>
                                                <div class="form-group">
                                                    <div class="col-md-12 ">
                                                        <button type="submit" class="btn btn-primary">
                                                            Add Marks
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>



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

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

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

        </td>
    </tr>

</table>


<!-- Footer -->
@section('footer')
@include('admin.layouts.footer')
@endsection
<!-- End Footer -->

@endsection

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