@extends('layouts.master')
<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('title', 'নোটিশ বোর্ড ')
@section('slider')
@include('layouts.dotted-ash-design')
@endsection
@section('content')
<div class="col-md-9">
    <div class="col-md-12 pd-0">
        <div class="u-shadow-v21 nbr g-bg-white rounded notice-board  mg-0 wow slideInUp" data-wow-duration="3s">
            <div class="media g-mb-15">
                <div>
                    <div class="bar-title">
                        <h5><a href=""><img src="img/leap-white.png" alt="" /><span> অংশগ্রহনকারীদরে নামের তালিকা
                                </span></a></h5>
                    </div>

                    <img src="{{url('public/images/soty.png')}}" alt="image not fopund"
                        style="width:100%; height:15%;" />
                    <button id="myelement"> রেজিষ্ট্রেশনকৃত শিক্ষার্থী</button>

                    <div id="another-element">
                        <table class="table table-dark">
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রহনকারীর নাম</th>
                                    <th scope="col">বাবার নাম</th>
                                    <th scope="col">মায়ের নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col">রক্তের গ্রপ</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = ($users->currentpage()-1)* $users->perpage();?>
                                @if(count($users) > 0)
                                @foreach($users as $user)

                                <tr class="perticipentList">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$user->name}}
                                    </td>
                                    <td>
                                        {{$user->fathername}}
                                    </td>
                                    <td>
                                        {{$user->mothername}}
                                    </td>
                                    <td>
                                        {{$user->class}}
                                    </td>
                                    <td>
                                        {{$user->roll}}
                                    </td>
                                    <td>
                                        {{$user->bloodgroup}}
                                    </td>
                                    <td>

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

                        </table>
                    </div>
                    {{ $users->links() }}
                    <button id="myelement1"> বাছাই পর্ব</button>

                    <div id="another-element1">
                        <table class="table table-dark">
                            <h3> বাছাই পর্ব </h3>
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রনকারীর নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col"> প্রাপ্ত নম্বর</th>
                                    <th scope="col">ছবি</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($RoundOne) > 0)
                                @foreach($RoundOne as $one)

                                <tr class="perticipentLiatMerit">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$one->name}}
                                    </td>
                                    <td>
                                        {{$one->class}}
                                    </td>
                                    <td>
                                        {{$one->roll}}
                                    </td>
                                    <td>
                                        {{$one->total}}
                                    </td>
                                    <td>
                                        <div style="widht:50px"> <img src="{{'public/images'}}/{{$one->picture}}"
                                                height="50" width="45" /></div>
                                    </td>
                                </tr>
                                @endforeach
                                @else
                                <tr>
                                    <td>
                                        <h3> No Data Found </h3>
                                    </td>
                                </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>

                    <button id="myelement2"> ২য় পর্ব</button>
                    <div id="another-element2">
                        <table class="table table-dark">
                            <h3> ২য় পর্ব </h3>
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রহনকারীর নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col">প্রাপ্ত নম্বর</th>
                                    <th scope="col">ছবি</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($RoundTwo) > 0)
                                @foreach($RoundTwo as $two)

                                <tr class="perticipentLiatMerit">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$two->name}}
                                    </td>
                                    <td>
                                        {{$two->class}}
                                    </td>
                                    <td>
                                        {{$two->roll}}
                                    </td>
                                    <td>
                                        {{$two->total}}
                                    </td>
                                    <td>
                                        <div style="widht:50px"> <img src="{{'public/images'}}/{{$two->picture}}"
                                                height="45" width="45" /></div>
                                    </td>
                                </tr>
                                @endforeach
                                @else
                                <tr>
                                    <td>
                                        <h3> No Data Found </h3>
                                    </td>
                                </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>

                    <button id="myelement3"> ৩য় পর্ব </button>
                    <div id="another-element3">
                        <table class="table table-dark">
                            <h3> ৩য় পর্ব</h3>
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রহনকারীর নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col">প্রাপ্ত নম্বর</th>
                                    <th scope="col">ছবি</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($RoundThree) > 0)
                                @foreach($RoundThree as $three)

                                <tr class="perticipentLiatMerit">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$three->name}}
                                    </td>
                                    <td>
                                        {{$three->class}}
                                    </td>
                                    <td>
                                        {{$three->roll}}
                                    </td>
                                    <td>
                                        {{$three->totalMark}}
                                    </td>
                                    <td>
                                        <div style="widht:50px"> <img src="{{'public/images'}}/{{$three->picture}}"
                                                height="50" width="45" /></div>
                                    </td>
                                </tr>
                                @endforeach
                                @else
                                <tr>
                                    <td>
                                        <h3> No Data Found </h3>
                                    </td>
                                </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>


                    <button id="myelement4"> ৪র্থ পর্ব </button>
                    <div id="another-element4">
                        <table class="table table-dark">
                            <h3> ৪র্থ পর্ব </h3>
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রহনকারীর নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col">প্রাপ্ত নম্বর</th>
                                    <th scope="col">ছবি</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($Roundfour) > 0)
                                @foreach($Roundfour as $four)

                                <tr class="perticipentLiatMerit">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$four->name}}
                                    </td>
                                    <td>
                                        {{$four->class}}
                                    </td>
                                    <td>
                                        {{$four->roll}}
                                    </td>
                                    <td>
                                        {{$four->totalMark}}
                                    </td>
                                    <td>
                                        <div style="widht:50px"> <img src="{{'public/images'}}/{{$four->picture}}"
                                                height="50" width="45" /></div>
                                    </td>
                                </tr>
                                @endforeach
                                @else
                                <tr>
                                    <td>
                                        <h3> No Data Found </h3>
                                    </td>
                                </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>

                    <button id="myelement5"> 5th পর্ব </button>
                    <div id="another-element5">
                        <table class="table table-dark">
                            <h3> 5th পর্ব </h3>
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রহনকারীর নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col">প্রাপ্ত নম্বর</th>
                                    <th scope="col">ছবি</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($Roundfive) > 0)
                                @foreach($Roundfive as $five)

                                <tr class="perticipentLiatMerit">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$five->name}}
                                    </td>
                                    <td>
                                        {{$five->class}}
                                    </td>
                                    <td>
                                        {{$five->roll}}
                                    </td>
                                    <td>
                                        {{$five->totalMark}}
                                    </td>
                                    <td>
                                        <div style="widht:50px"> <img src="{{'public/images'}}/{{$five->picture}}"
                                                height="50" width="45" /></div>
                                    </td>
                                </tr>
                                @endforeach
                                @else
                                <tr>
                                    <td>
                                        <h3> Results Not Published Yet </h3>
                                    </td>
                                </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>



                    <button id="myelement6"> 6th পর্ব </button>
                    <div id="another-element6">
                        <table class="table table-dark">
                            <h3> 6th পর্ব </h3>
                            <thead>
                                <tr>
                                    <th scope="col">ক্রমিক</th>
                                    <th scope="col">অংশগ্রহনকারীর নাম</th>
                                    <th scope="col">শ্রেণি</th>
                                    <th scope="col">রোল</th>
                                    <th scope="col">প্রাপ্ত নম্বর</th>
                                    <th scope="col">ছবি</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($Roundsix) > 0)
                                @foreach($Roundsix as $six)

                                <tr class="perticipentLiatMerit">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$six->name}}
                                    </td>
                                    <td>
                                        {{$six->class}}
                                    </td>
                                    <td>
                                        {{$six->roll}}
                                    </td>
                                    <td>
                                        {{$six->totalMark}}
                                    </td>
                                    <td>
                                        <div style="widht:50px"> <img src="{{'public/images'}}/{{$six->picture}}"
                                                height="50" width="45" /></div>
                                    </td>
                                </tr>
                                @endforeach
                                @else
                                <tr>
                                    <td>
                                        <h3> Results Not Published Yet </h3>
                                    </td>
                                </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>




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

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

@include('layouts.sidebar')
@endsection

@section('footer')
@include('layouts.footer')
@endsection