@extends('backend.header')
@section('index-content')
<style>
    .form-control {
        height: 40px;
    }
    @media (min-width: 768px){
        .form-horizontal .control-label {
            padding-top: 7px;
            margin-bottom: 0;
            text-align: right;
        }
    }
</style>
<?php
function convertToUnicodeNumber($input) {

    $standard_numsets = array("0","1","2","3","4","5","6","7","8","9");
    $devanagari_numsets = array("०","१","२","३","४","५","६","७","८","९");
    
    return str_replace($standard_numsets, $devanagari_numsets, $input);
}
?>
<section role="main" class="content-body">
     <header class="page-header">
        <h2> Preliminary Form</h2>
    </header>
        <div class="row">
          <div class="col-xs-12">
            <div class="right-wrapper">
              <ol class="breadcrumbs">
                <li>
                  <a href="{{url('index')}}">
                    <i class="fa fa-home"></i>
                </a>
            </li>
            <li><span class="active">Preliminary</span></li>
            
        </ol>
        </div>
        </div>
    </div>



<!-- allot user code here -->
<div class="row" id="userallotform">
  <div class="col-md-12">
   @if(session('error'))
   <div class="alert alert-danger">{{session('error')}}</div>
   @endif
    @if(session('success'))
   <div class="alert alert-success">{{session('success')}}</div>
    @endif


   <section class="panel mt-2">
    <header class="panel-heading">
        <h4 class="my-0">Preliminary Form</h4>  
        <div class="back-btn-div">
            <button class="btn btn-primary back-btn" onclick="window.history.back()">Back</button>
        </div>

  </header>
  <form action="{{url('premilinary_subvendorsurvey_update')}}" method="post" class="form-horizontal" enctype="multipart/form-data">
      @csrf
      <div class="panel-body mb-4">


        <div class="row px-3">
          
         
             <div class="form-group">
                <label class="col-sm-2 control-label">Gram Panchayat</label>
                <div class="col-sm-10">
                    <select name="gram_id" class="h40 w-100" id="gram_id" required>
                        <option value="">Select Gram Panchayat</option>
                        @foreach($jilla as $j)
                        <option value="{{$j->id}}">{{$j->area_name}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
           
            
            <div class="form-group">
                <label class="col-sm-2 control-label">Files</label>
                <div class="col-sm-10">
                    <div>
                        <input type="file" name="document" class="form-control" multiple="multiple">
                    </div>
                </div>
            </div>
          

                </div>
            </div>

        </div>
        <div class="row mt-3">
            <div class="col-12 px-3">
                <div class="text-right pr-2">
                    <input type="submit" class="btn btn-success" value="Submit">
                </div>
            </div>
        </div>

    </div>
</form>
</div>

</div>

</section>
@stop
