@extends('layouts.admin')    
@section('content')
 
                  <div class="card-header">
                    <h4>Add Student Subject</h4>
                  </div>
                  <div class="card-body">
                    @include('admin.partials.flash-messages')
                        <form action="{{ route('admin.saveclasssubject') }}" method="post">
                            <div class="form-row"> 
                                    <div class="form-group col-md-6">
                                        <label for="inputEmail4">Student Subject Name</label>
                                        <input type="text" class="form-control" id="pagename" tabindex="1" name="pagename" value="{{ old('pagename') }}" maxlength="200" placeholder="Student Subject Name" required>
                                    </div>
                                    <div class="form-group  col-md-6">
                                    <label for="inputAddress2">Student Subject Order  </label> 
                                        <input type="text" class="form-control" id="pageorder" value="{{ old('pageorder') }}" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" tabindex="2" name="pageorder" maxlength="2" placeholder="Student Subject Order"  >
                                    </div>
                            
                                                              
					          <div class="form-group col-md-12">
                                 <label  for="userinput5">Add Student Subject Image </label> 
                              	 <div id="targetLayer" style="width:300px; height:200px;"> 
                                        <img src="{{ asset('public/frontend/images/logo.png') }}" style="max-width:200px; max-height:200px;" alt="" />  
                                    </div>
                                  <div class="loading" style="display:none; text-align:center;">
                                        	<img src="{{ asset('public/admin/loadspinner.gif') }}" style="width:80px;" alt="Loading.." />
                                        </div>
                                <a id="newuploadphoto" href="#" class="btn btn-primary">New Upload</a>
                                
                               </div> 
                              
                           </div> 
                                <div class="card-footer">
                                    <button type="submit"  tabindex="3" class="btn btn-primary">Save</button>
                                </div>
                                @csrf
                                <input type="hidden" name="userid" value="{{ Auth::user()->id  }}" />
                            </form>
                      </div>
                 
                  </div> 
                  @include('admin.partials.attachment-upload-form')
@endsection
