@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">
        <!--
						<ul class="nav nav-pills nav-pills-custom display-xs-none pull-right m-t-25">
                            <li role="presentation"><a href="#">Today</a></li>
                            <li role="presentation" class="active"><a href="#">Yesterday</a></li>
                            <li role="presentation"><a href="#">Last Week</a></li>
                        </ul>
                          -->
        <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>

<div class="container">

    <div class="col-md-12">
        <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=""><span> অংশগ্রহনকারীদরে নামের তালিকা
                                    </span></a></h5>
                        </div>
                        <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>
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $i = 0; ?>
                                    @if(count($users) > 0)
                                    @foreach($users as $user)
                                    <tr class="perticipentList">
                                        <?php $i+=1; ?>
                                        <th>
                                            {{$i}}
                                        </th>
                                        <td>
                                            <input type="hidden" name="user_id" value="{{$user->user_id}}">
                                            {{$user->name}}
                                        </td>
                                        <td>{{$user->class}}</td>
                                        <td>{{$user->roll}}</td>

                                        <td>
                                            <img src="{{url('/public/images')}}/{{$user->picture}}" height="50"
                                                width="45" />
                                        </td>
                                        <td>
                                            @if($user->status == 1)
                                            <button class="btn btn-primary" type="submit"><i class="fa fa-check">
                                                    Yes
                                                </i></button>
                                            @else
                                            <button class="btn btn-danger" type="submit"><i class="fa fa-times">
                                                    Yes
                                                </i></button>
                                            @endif

                                        </td>
                                        <td> <a style="width: 49%;"
                                                href="{{url('admin/episodecontrol')}}/{{$user->qs_id}}/edit"
                                                class="btn btn-danger btn-sm">
                                                <span class="glyphicon glyphicon-edit"> </span> Edit Episode Info
                                            </a>
                                        </td>
                        </div>
                        </td>
                        </tr>
                        @endforeach
                        <tr>
                            <td>
                                <h3> No Data Found </h3>
                            </td>
                        </tr>
                        @endif
                        </tbody>
                        </table>
                    </div>


                    <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">Picture</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 0; ?>
                                @if(count($RoundOne) > 0)
                                @foreach($RoundOne as $one)

                                <tr class="perticipentList">
                                    <?php $i+=1; ?>
                                    <th>
                                        {{$i}}
                                    </th>
                                    <td>
                                        {{$one->name}}
                                    </td>
                                    <td>
                                        {{$one->class}}
                                    </td>
                                    <td>
                                        {{$one->roll}}
                                    </td>
                                    <td>
                                        {{$one->bloodgroup}}
                                    </td>
                                    <td>
                                        <img src="{{url('/public/images')}}/{{$one->picture}}" height="50" width="45" />
                                    </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 border="1">
                        <h3> ২য় পর্ব </h3>
                        <thead>
                            <tr>
                                <th style="padding:5px;">ক্রমিক</th>
                                <th style="padding:5px;">অংশগ্রনকারীর নাম</th>
                                <th style="padding:5px;">শ্রেণি</th>
                                <th style="padding:5px;">রোল</th>
                                <th style="padding:5px;">রক্তের গ্রপ</th>
                                <th style="padding:5px;">Picture</th>
                                <th style="padding:5px;">Access</th>
                                <th style="padding:5px;"> First Episode Text question active</th>
                                <th style="padding:5px;"> First Episode Text question Inactive</th>
                                <th style="padding:5px;"> First Episode Images active</th>
                                <th style="padding:5px;"> First Episode Images Inactive</th>
                                <th style="padding:5px;"> First Episode Audio active</th>
                                <th style="padding:5px;"> First Episode Audio Inactive</th>
                                <th style="padding:5px;"> First Episode Video active</th>
                                <th style="padding:5px;"> First Episode Video Inactive</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            @if(count($RoundFirst) > 0)
                            @foreach($RoundFirst as $two)

                            <tr class="perticipentList">
                                <?php $i+=1; ?>
                                <th style="padding:5px;">
                                    {{$i}}
                                </th>
                                <td style="padding:5px;">
                                    {{$two->name}}
                                </td>
                                <td style="padding:5px;">
                                    {{$two->class}}
                                </td>
                                <td style="padding:5px;">
                                    {{$two->roll}}
                                </td>
                                <td style="padding:5px;">

                                </td>
                                <td style="padding:5px;">
                                    <img src="{{url('/public/images')}}/{{$two->picture}}" height="50" width="45" />
                                </td>

                                <td style="padding:5px;">


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

                                        <input type="hidden" name="user_id" value="{{$two->user_id}}">

                                        @if($two->id)
                                        <button class="btn btn-success" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @else
                                        <button class="btn btn-danger" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @endif
                                        {!! Form::close() !!}
                                    </form>

                                </td>


                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizepermission', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $two->id)!!}
                                    {!! Form::hidden('type_one',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_one == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizepermission', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_one', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_one == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundoneimage', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $two->id)!!}
                                    {!! Form::hidden('type_two',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_two == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundoneimage', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_two', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_two == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundoneaudio', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $two->id)!!}
                                    {!! Form::hidden('type_three',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_three == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundoneaudio', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_three', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_three == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundonevideo', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $two->id)!!}
                                    {!! Form::hidden('type_four',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_four == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundonevideo', $two->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_four', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_four == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </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 border="1">
                        <h3> ৩য় পর্ব</h3>
                        <thead>
                            <tr>
                                <th style="padding:5px;">ক্রমিক</th>
                                <th style="padding:5px;">অংশগ্রনকারীর নাম</th>
                                <th style="padding:5px;">শ্রেণি</th>
                                <th style="padding:5px;">রোল</th>
                                <th style="padding:5px;">রক্তের গ্রপ</th>
                                <th style="padding:5px;">Picture</th>
                                <th style="padding:5px;">Access</th>
                                <th style="padding:5px;"> First Episode Text question active</th>
                                <th style="padding:5px;"> First Episode Text question Inactive</th>
                                <th style="padding:5px;"> First Episode Images active</th>
                                <th style="padding:5px;"> First Episode Images Inactive</th>
                                <th style="padding:5px;"> First Episode Audio active</th>
                                <th style="padding:5px;"> First Episode Audio Inactive</th>
                                <th style="padding:5px;"> First Episode Video active</th>
                                <th style="padding:5px;"> First Episode Video Inactive</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            @if(count($RoundThree) > 0)
                            @foreach($RoundThree as $three)

                            <tr class="perticipentList">
                                <?php $i+=1; ?>
                                <th style="padding:5px;">
                                    {{$i}}
                                </th>
                                <td style="padding:5px;">
                                    {{$three->name}}
                                </td>
                                <td style="padding:5px;">
                                    {{$three->class}}
                                </td>
                                <td style="padding:5px;">
                                    {{$three->roll}}
                                </td>
                                <td style="padding:5px;">

                                </td>
                                <td style="padding:5px;">
                                    <img src="{{url('/public/images')}}/{{$three->picture}}" height="50" width="45" />
                                </td>

                                <td style="padding:5px;">
                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="{{action('AdminController@quizaccess')}}">
                                        {{ csrf_field() }}

                                        <input type="hidden" name="user_id" value="{{$three->user_id}}">

                                        @if($three->id)
                                        <button class="btn btn-success" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @else
                                        <button class="btn btn-danger" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @endif
                                        {!! Form::close() !!}
                                    </form>

                                </td>


                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundthreetext', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $three->id)!!}
                                    {!! Form::hidden('type_one',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($three->type_one == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundthreetext', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_one', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($three->type_one == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>

                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundthreeimage', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $three->id)!!}
                                    {!! Form::hidden('type_two',2)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($three->type_two == 2)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundthreeimage', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $three->id)!!}
                                    {!! Form::hidden('type_two', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($three->type_two == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>

                                <!-- <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundoneaudio', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $three->id)!!}
                                    {!! Form::hidden('type_three',3)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_three == 3)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundoneaudio', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_three', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_three == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundonevideo', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $three->id)!!}
                                    {!! Form::hidden('type_four',4)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_four == 4)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundonevideo', $three->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_four', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($two->type_four == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </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 border="1">
                        <h3> ৪র্থ পর্ব</h3>
                        <thead>
                            <tr>
                                <th style="padding:5px;">ক্রমিক</th>
                                <th style="padding:5px;">অংশগ্রনকারীর নাম</th>
                                <th style="padding:5px;">শ্রেণি</th>
                                <th style="padding:5px;">রোল</th>
                                <th style="padding:5px;">রক্তের গ্রপ</th>
                                <th style="padding:5px;">Picture</th>
                                <th style="padding:5px;">Access</th>
                                <th style="padding:5px;"> First Episode Text question active</th>
                                <th style="padding:5px;"> First Episode Text question Inactive</th>
                                <th style="padding:5px;"> First Episode Images active</th>
                                <th style="padding:5px;"> First Episode Images Inactive</th>
                                <th style="padding:5px;"> First Episode Audio active</th>
                                <th style="padding:5px;"> First Episode Audio Inactive</th>
                                <th style="padding:5px;"> First Episode Video active</th>
                                <th style="padding:5px;"> First Episode Video Inactive</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            @if(count($Roundfour) > 0)
                            @foreach($Roundfour as $four)

                            <tr class="perticipentList">
                                <?php $i+=1; ?>
                                <th style="padding:5px;">
                                    {{$i}}
                                </th>
                                <td style="padding:5px;">
                                    {{$four->name}}
                                </td>
                                <td style="padding:5px;">
                                    {{$four->class}}
                                </td>
                                <td style="padding:5px;">
                                    {{$four->roll}}
                                </td>
                                <td style="padding:5px;">

                                </td>
                                <td style="padding:5px;">
                                    <img src="{{url('/public/images')}}/{{$four->picture}}" height="50" width="45" />
                                </td>

                                <td style="padding:5px;">
                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="{{action('AdminController@quizaccess')}}">
                                        {{ csrf_field() }}

                                        <input type="hidden" name="user_id" value="{{$four->user_id}}">

                                        @if($four->id)
                                        <button class="btn btn-success" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @else
                                        <button class="btn btn-danger" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @endif
                                        {!! Form::close() !!}
                                    </form>

                                </td>


                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundfourtext', $four->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $four->id)!!}
                                    {!! Form::hidden('type_one',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($four->type_one == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundfourtext', $four->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_one', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($four->type_one == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>

                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundfourimage', $four->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $four->id)!!}
                                    {!! Form::hidden('type_two',2)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($four->type_two == 2)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundfourimage', $four->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $four->id)!!}
                                    {!! Form::hidden('type_two', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($four->type_two == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                            </tr>
                            @endforeach
                            @else
                            <tr>
                                <td>
                                    <h3> No Data Found </h3>
                                </td>
                            </tr>
                            @endif
                        </tbody>
                    </table>
                </div>

                <button id="myelement5"> ৫ম পর্ব</button>
                <div id="another-element5">
                    <table border="1">
                        <h3> ৫ম পর্ব</h3>
                        <thead>
                            <tr>
                                <th style="padding:5px;">ক্রমিক</th>
                                <th style="padding:5px;">অংশগ্রনকারীর নাম</th>
                                <th style="padding:5px;">শ্রেণি</th>
                                <th style="padding:5px;">রোল</th>
                                <th style="padding:5px;">রক্তের গ্রপ</th>
                                <th style="padding:5px;">Picture</th>
                                <th style="padding:5px;">Access</th>
                                <th style="padding:5px;"> First Episode Text question active</th>
                                <th style="padding:5px;"> First Episode Text question Inactive</th>
                                <th style="padding:5px;"> First Episode Images active</th>
                                <th style="padding:5px;"> First Episode Images Inactive</th>
                                <th style="padding:5px;"> First Episode Audio active</th>
                                <th style="padding:5px;"> First Episode Audio Inactive</th>
                                <th style="padding:5px;"> First Episode Video active</th>
                                <th style="padding:5px;"> First Episode Video Inactive</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            @if(count($Roundfive) > 0)
                            @foreach($Roundfive as $five)

                            <tr class="perticipentList">
                                <?php $i+=1; ?>
                                <th style="padding:5px;">
                                    {{$i}}
                                </th>
                                <td style="padding:5px;">
                                    {{$five->name}}
                                </td>
                                <td style="padding:5px;">
                                    {{$five->class}}
                                </td>
                                <td style="padding:5px;">
                                    {{$five->roll}}
                                </td>
                                <td style="padding:5px;">

                                </td>
                                <td style="padding:5px;">
                                    <img src="{{url('/public/images')}}/{{$five->picture}}" height="50" width="45" />
                                </td>

                                <td style="padding:5px;">
                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="{{action('AdminController@quizaccess')}}">
                                        {{ csrf_field() }}

                                        <input type="hidden" name="user_id" value="{{$five->user_id}}">

                                        @if($five->id)
                                        <button class="btn btn-success" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @else
                                        <button class="btn btn-danger" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @endif
                                        {!! Form::close() !!}
                                    </form>

                                </td>

                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundfivetext', $five->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $five->id)!!}
                                    {!! Form::hidden('type_one',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($five->type_one == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundfivetext', $five->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_one', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($five->type_one == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>

                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundfiveimage', $five->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $five->id)!!}
                                    {!! Form::hidden('type_two',2)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($five->type_two == 2)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundfiveimage', $five->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $five->id)!!}
                                    {!! Form::hidden('type_two', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($five->type_two == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                            </tr>
                            @endforeach
                            @else
                            <tr>
                                <td>
                                    <h3> No Data Found </h3>
                                </td>
                            </tr>
                            @endif
                        </tbody>
                    </table>
                </div>

                <button id="myelement6"> ফাইনাল ৬ষ্ঠ পর্ব</button>
                <div id="another-element">
                    <table border="1">
                        <h3> ফাইনাল পর্ব</h3>
                        <thead>
                            <tr>
                                <th style="padding:5px;">ক্রমিক</th>
                                <th style="padding:5px;">অংশগ্রনকারীর নাম</th>
                                <th style="padding:5px;">শ্রেণি</th>
                                <th style="padding:5px;">রোল</th>
                                <th style="padding:5px;">রক্তের গ্রপ</th>
                                <th style="padding:5px;">Picture</th>
                                <th style="padding:5px;">Access</th>
                                <th style="padding:5px;"> First Episode Text question active</th>
                                <th style="padding:5px;"> First Episode Text question Inactive</th>
                                <th style="padding:5px;"> First Episode Images active</th>
                                <th style="padding:5px;"> First Episode Images Inactive</th>
                                <th style="padding:5px;"> First Episode Audio active</th>
                                <th style="padding:5px;"> First Episode Audio Inactive</th>
                                <th style="padding:5px;"> First Episode Video active</th>
                                <th style="padding:5px;"> First Episode Video Inactive</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            @if(count($Roundsix) > 0)
                            @foreach($Roundsix as $six)

                            <tr class="perticipentList">
                                <?php $i+=1; ?>
                                <th style="padding:5px;">
                                    {{$i}}
                                </th>
                                <td style="padding:5px;">
                                    {{$six->name}}
                                </td>
                                <td style="padding:5px;">
                                    {{$six->class}}
                                </td>
                                <td style="padding:5px;">
                                    {{$six->roll}}
                                </td>
                                <td style="padding:5px;">

                                </td>
                                <td style="padding:5px;">
                                    <img src="{{url('/public/images')}}/{{$six->picture}}" height="50" width="45" />
                                </td>

                                <td style="padding:5px;">
                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="{{action('AdminController@quizaccess')}}">
                                        {{ csrf_field() }}

                                        <input type="hidden" name="user_id" value="{{$six->user_id}}">

                                        @if($six->id)
                                        <button class="btn btn-success" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @else
                                        <button class="btn btn-danger" type="submit"><i class="fa fa-refresh">
                                                Access
                                            </i></button>
                                        @endif
                                        {!! Form::close() !!}
                                    </form>

                                </td>

                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundsixtext', $six->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $six->id)!!}
                                    {!! Form::hidden('type_one',1)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($six->type_one == 1)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundsixtext', $six->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('type_one', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($six->type_one == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>

                                <td style="padding:5px;">

                                    {!! Form::open(['action' => ['AdminController@quizeroundsiximage', $six->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $six->id)!!}
                                    {!! Form::hidden('type_two',2)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($six->type_two == 2)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                                <td style="padding:5px;">
                                    {!! Form::open(['action' => ['AdminController@quizeroundsiximage', $six->id],
                                    'method'=> 'POST']) !!}
                                    {!! Form::hidden('user_id', $six->id)!!}
                                    {!! Form::hidden('type_two', 0)!!}
                                    {!! Form::hidden('_method', 'POST') !!}
                                    @if($six->type_two == 0)
                                    <button class="btn btn-success" type="submit"><i class="fa fa-refresh"> Active
                                        </i></button>
                                    @else
                                    <button class="btn btn-danger" type="submit"><i class="fa fa-refresh"> Inactive
                                        </i></button>
                                    @endif
                                    {!! Form::close() !!}
                                </td>
                            </tr>
                            @endforeach
                            @else
                            <tr>
                                <td>
                                    <h3> No Data Found </h3>
                                </td>
                            </tr>
                            @endif
                        </tbody>
                    </table>
                </div>



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

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




</div>

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

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


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

@endsection

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