@extends('admin.layouts.app')



@section('header-script')

@include('admin.layouts.datatable-header')

@endsection





@section('content')

<!-- Page-Title -->

<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" style="text-align:center">

                        <h1><a href=""><span> প্রশ্ন মার্ক বন্টন</span></a></h1>

                    </div>

                    <table class="table table-dark">
                        <thead>
                            <tr>
                                <th scope="col">SL</th>
                                <th scope="col"> Round</th>
                                <th scope="col"> Question Type</th>
                                <th scope="col"> Number</th>
                                <th scope="col"> Marks</th>
                                <th scope="col"> Edit</th>
                                <th scope="col">Delete</th>
                            </tr>
                        </thead>
                        <tbody>

                            <?php $i = 0; ?>

                            @if(count($questiondistributions) > 0)
                            @foreach($questiondistributions as $questiondistribution)
                            <tr>
                                <?php $i+=1; ?>
                                <th scope="row">{{$i}}</th>
                                <td>{{$questiondistribution->round_id}}</td>
                                <td>
                                    {{$questiondistribution->question_type}}
                                </td>
                                <td>{{$questiondistribution->number }}</td>
                                <td>{{$questiondistribution->marks}}</td>
                                <td>
                                    <a href="{{url('admin/qd')}}/{{$questiondistribution->id}}/edit"
                                        class="btn btn-danger btn-sm">
                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                    </a>

                                </td>

                                <td>

                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="{{action('AdminController@qddelete', $questiondistribution->id)}}">

                                        {{ csrf_field() }}

                                        <a href="{{url('admin/qd')}}/{{$questiondistribution->id}}/delete"
                                            class="btn btn-danger btn-sm">

                                            <span class="glyphicon glyphicon-trash"> </span>

                                        </a>

                                    </form>

                                </td>





                            </tr>

                            @endforeach

                            @else

                            <tr>

                                <td> No Data Found</td>

                            </tr>

                            @endif

                        </tbody>

                    </table>

                </div>

            </div>

        </div>



    </div>

</div>

</div>





<!-- end row -->

@endsection



@section('footer-script')

@include('admin.layouts.datatable-footer-script')

@endsection