@extends('master')

@section('content')
  <!-- page content -->
<div class="right_col" role="main">
  <div class="row x_panel">
    <div class="col-md-12 col-sm-12 col-xs-12">
    <h1> Add Crop Transactions</h1>

<form action="<?php echo url('/'); ?>/admin/crop_transactions/add" id="" class="form-horizontal " method="post" enctype="multipart/form-data">
{{ csrf_field() }}

    
	<!-- Crop Start -->
    <div class="form-group">
        <label for="crop" class="control-label col-md-3"> Crop </label>
          <div class="col-md-4">
          <select id="crop" name="crop" class="form-control select2">
            <?php
              foreach ($crops as $value) {
                echo '<option value="'.$value->crp_id.'"> '.$value->crop.'</option>';
              }
            ?>
          </select>
        </div>
        <div class="col-sm-5">
         <div class="label label-danger">{{ $errors->first("crop") }}</div>
      </div>
    </div>
      <!-- Crop End -->


	<!-- Marqua Start -->
    <div class="form-group">
        <label for="marqua" class="control-label col-md-3"> Marqua </label>
          <div class="col-md-4">
          <select id="marqua" name="marqua" class="form-control select2">
            <?php
              foreach ($marqua as $value) {
                echo '<option value="'.$value->mq_id.'"> '.$value->quality.'</option>';
              }
            ?>
          </select>
        </div>
        <div class="col-sm-5">
         <div class="label label-danger">{{ $errors->first("marqua") }}</div>
      </div>
    </div>
      <!-- Marqua End -->




	<!-- Quantity Start -->
	<div class="form-group">
	  <label for="quantity" class="col-sm-3 control-label"> Quantity </label>
	  <div class="col-sm-4">
	    <input type="text" class="form-control" id="quantity" name="quantity" 
	    value="{{ old('quantity') }}">
	  </div>
	  <div class="col-sm-5">
      <div class="label label-danger">{{ $errors->first("quantity") }}</div>
      </div>
	</div> 
	<!-- Quantity End -->


	


	<!-- Bangdi Start -->
	<div class="form-group">
	  <label for="bangdi" class="col-sm-3 control-label"> Bangdi </label>
	  <div class="col-sm-4">
	    <input type="text" class="form-control" id="bangdi" name="bangdi" 
	    value="{{ old('bangdi') }}">
	  </div>
	  <div class="col-sm-5">
      <div class="label label-danger">{{ $errors->first("bangdi") }}</div>
      </div>
	</div> 
	<!-- Bangdi End -->


	


	<!-- Weight Start -->
	<div class="form-group">
	  <label for="weight" class="col-sm-3 control-label"> Weight </label>
	  <div class="col-sm-4">
	    <input type="text" class="form-control" id="weight" name="weight" 
	    value="{{ old('weight') }}">
	  </div>
	  <div class="col-sm-5">
      <div class="label label-danger">{{ $errors->first("weight") }}</div>
      </div>
	</div> 
	<!-- Weight End -->


	


	<!-- Cost Start -->
	<div class="form-group">
	  <label for="cost" class="col-sm-3 control-label"> Cost </label>
	  <div class="col-sm-4">
	    <input type="text" class="form-control" id="cost" name="cost" 
	    value="{{ old('cost') }}">
	  </div>
	  <div class="col-sm-5">
      <div class="label label-danger">{{ $errors->first("cost") }}</div>
      </div>
	</div> 
	<!-- Cost End -->


	

	<!-- Status Start -->
	<div class="form-group">
        <label class="control-label col-md-3">Status</label>
         <div class=" col-md-4 switch">
                    <div class="onoffswitch">
     <input type="checkbox" class="onoffswitch-checkbox"  data-on-label="Yes" data-off-label="No"  name="status" value="0" id="status"  style="width:20px; height:20px;"/>
    {{ $errors->first("status") }}
                        <label class="onoffswitch-label" for="status">
                            <span class="onoffswitch-switch"></span>
                            <span class="onoffswitch-inner"></span>
                        </label>
                    </div>
                </div>

      </div>
      <!-- Status End -->



  <div class="form-group">
    <div class="col-sm-3" >
      </div>
      <div class="col-sm-6">
    <button type="reset" class="btn btn-default ">Reset</button>
    <button type="submit" class="btn btn-info ">Submit</button>
      </div>
        <div class="col-sm-3" >
      </div>
  </div>
</form>



    </div>
  </div>
</div>
<!-- /page content -->
@endsection

