@extends('admin.layouts.app')

@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="container">
        <div class="row">
            <div class="col-md-12 ">
                <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> Name </td>
                                    <td> Roll </td>
                                    <td> Marks One </td>
                                    <td> Marks Two </td>
                                    <td> Marks Three </td>
                                    <td> Marks Four </td>
                                    <td> Season </td>
                                </tr>
                                @foreach($users as $user)
                                <tr>
                                    <td> <input type="hidden" name="user_id[]" value="{{$user->id}}">
                                        <div style="width:200px;"> {{$user->name}}</div>
                                    </td>
                                    <td> <select name="round_id[]" id="round_id" class="form-control">
                                            <option value="selection"> বাছাই </option>
                                            <option value="1"> এক</option>
                                            <option value="2"> দুই</option>
                                            <option value="3"> তিন</option>
                                            <option value="4"> চার</option>
                                            <option value="5"> পাঁচ</option>
                                            <option value="6"> ছয়</option>
                                            <option value="7"> ফাইনাল</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>
                                    <td>
                                        <input id="season" type="text" class="form-control" name="season[]">
                                    </td>
                                </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>

</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