@extends('layouts.admin')    
@section('content')
 
                  <div class="card-header">
                    <h4>Edit Student Group</h4>
                  </div>
                  <div class="card-body">
                    @include('admin.partials.flash-messages')
                        <form action="{{ route('admin.updatestudentsgroup') }}" method="post">
                            <div class="form-row"> 
                                    <div class="form-group col-md-6">
                                        <label for="inputEmail4">Student Group Name</label>
                                        <input type="text" class="form-control" id="pagename" value="{{ $studentsgroup->studentsgroupname }}" tabindex="1" name="pagename" maxlength="200" placeholder="Student Group Name" required>
                                    </div>
                                    <div class="form-group  col-md-6">
                                    <label for="inputAddress2">Student Group Order  </label> 
                                        <input type="text" class="form-control" id="pageorder" value="{{ $studentsgroup->grouporder }}" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" tabindex="2" name="pageorder" maxlength="2" placeholder="Student Group Order"  >
                                    </div>
                            
                                                              
					          <div class="form-group col-md-12">
                                 <label  for="userinput5">Change Student Group Image </label> 
                              	 <div id="targetLayer" style="width:300px; height:200px;"> 
                                        <img src="{{ $studentsgroup->image_url }}" style="max-width:200px; max-height:200px;" alt="" />  
                                        <input type="hidden" name="photoid" value="{{ $studentsgroup->groupimg }}" />
                                    </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">Update</button>
                                </div>
                                @csrf
                                <input type="hidden" name="editid" value="{{ $studentsgroup->id  }}" />
                                <input type="hidden" name="userid" value="{{ Auth::user()->id  }}" />
                            </form>
                      </div>
                 
                  </div> 
                  @include('admin.partials.attachment-upload-form')
@endsection
