@extends('layouts.admin')    
@section('content')
 
                  <div class="card-header">
                    <h4>Edit  Board Pattern </h4>
                  </div>
                  <div class="card-body">
                    @include('admin.partials.flash-messages')
                        <form action="{{ route('admin.updatestudentspattern') }}" method="post">
                            <div class="form-row"> 
                                    <div class="form-group col-md-6">
                                        <label for="inputEmail4">  Board Pattern Name</label>
                                        <input type="text" class="form-control" id="pagename" value="{{ $boardpattern->boardname }}" tabindex="1" name="pagename" maxlength="200" placeholder="Student Board Pattern Name" required>
                                    </div>
                                    <div class="form-group  col-md-6">
                                    <label for="inputAddress2">  Board  Short Name  </label> 
                                        <input type="text" class="form-control" id="pageorder" value="{{ $boardpattern->showname }}"   tabindex="2" name="pageorder" maxlength="5" placeholder="Student Board  Short Name"  >
                                    </div>
                            
                                                              
					          <div class="form-group col-md-12">
                                 <label  for="userinput5">Change Board Pattern Image </label> 
                              	 <div id="targetLayer" style="width:300px; height:200px;"> 
                                        <img src="{{ $boardpattern->image_url }}" style="max-width:200px; max-height:200px;" alt="" />  
                                        <input type="hidden" name="photoid" value="{{ $boardpattern->boardimg }}" />
                                    </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="{{ $boardpattern->id  }}" />
                                <input type="hidden" name="userid" value="{{ Auth::user()->id  }}" />
                            </form>
                      </div>
                 
                  </div> 
                  @include('admin.partials.attachment-upload-form')
@endsection
