@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-8 col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-heading"> নম্বর সংশোধন করুন। </div>
                    <img src="{{url('public/images/soty.png')}}" alt="image not fopund"
                        style="width:100%; height:15%;" />
                    <div class="panel-body">
                        <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                            action="{{action('AdminController@marksupdate', $marksUpdate->id)}}">
                            {{ csrf_field() }}

                            <div class="form-group">
                                <label for="fathername" class="col-md-4 control-label"> Student Name </label>

                                <div class="col-md-6">
                                    <input id="name" type="hidden" class="form-control" name="user_id"
                                        value="{{$marksUpdate->user_id}}">
                                    {{$user->name}}
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="studentid" class="col-md-4 control-label"> Episode Name</label>

                                <div class="col-md-6">
                                    <select name="round_id" id="round_id" class="form-control"
                                        value="{{$marksUpdate->round_id}}" class="form-control" selected>
                                        @if($marksUpdate->round_id == 0)
                                        <option value="0"> রেজি: </option>
                                        @elseif($marksUpdate->round_id == 1)
                                        <option value="1"> বাছাই </option>
                                        @elseif($marksUpdate->round_id == 2)
                                        <option value="2"> প্রথম পর্ব </option>
                                        @elseif($marksUpdate->round_id == 3)
                                        <option value="3"> 3rd পর্ব </option>
                                        @elseif($marksUpdate->round_id == 4)
                                        <option value="4"> 4th পর্ব </option>
                                        @elseif($marksUpdate->round_id == 5)
                                        <option value="5"> 5th পর্ব </option>
                                        @elseif($marksUpdate->round_id == 6)
                                        <option value="6"> 6th পর্ব </option>
                                        @endif
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="marks_1" class="col-md-4 control-label"> Question One </label>

                                <div class="col-md-6">
                                    <input id="marks_1" type="text" class="form-control" name="marks_1"
                                        value="{{$marksUpdate->marks_1}}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="marks_2" class="col-md-4 control-label"> Question Two </label>

                                <div class="col-md-6">
                                    <input id="marks_2" type="text" class="form-control" name="marks_2"
                                        value="{{$marksUpdate->marks_2}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="marks_3" class="col-md-4 control-label"> Question Three </label>

                                <div class="col-md-6">
                                    <input id="marks_3" type="text" class="form-control" name="marks_3"
                                        value="{{$marksUpdate->marks_3}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="marks_4" class="col-md-4 control-label"> Question Four </label>

                                <div class="col-md-6">
                                    <input id="marks_4" type="text" class="form-control" name="marks_4"
                                        value="{{$marksUpdate->marks_4}}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="season" class="col-md-4 control-label"> Season </label>

                                <div class="col-md-6">
                                    <input id="season" type="text" class="form-control" name="season"
                                        value="{{$marksUpdate->season}}">
                                </div>
                            </div>
                    </div>



                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-4">
                            <button type="submit" class="btn btn-primary">
                                Update
                            </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