

<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
          <div class="row">
		  <div class="col-md-2">
		  </div>
            
            <div class="col-md-8 grid-margin stretch-card">
              <div class="card">
                <div class="card-body">
                  <h4 class="card-title"><?php echo e(__('messages.Add_Delivery_Boy')); ?></h4>
                   <?php if(count($errors) > 0): ?>
                      <?php if($errors->any()): ?>
                        <div class="alert alert-primary" role="alert">
                          <?php echo e($errors->first()); ?>

                          <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">×</span>
                          </button>
                        </div>
                      <?php endif; ?>
                  <?php endif; ?>
                  <form class="forms-sample" action="<?php echo e(route('resturantAddNewdelivery_boy')); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>

                     <div class="form-group">
                    <label for="exampleFormControlSelect3"><?php echo e(__('messages.choose_area')); ?></label><br>
                  
                     <select class="mdb-select colorful-select dropdown-primary md-form" multiple searchable="Search here.." name="area_id[]" required>
                      <option value="" disabled style="background: #f1f1f1;"><?php echo e(__('messages.Choose_your_area')); ?></option>
                       <?php $__currentLoopData = $area; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $area): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		          	<option value="<?php echo e($area->area_id); ?>"><?php echo e($area->area_name); ?></option>
		              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                        <!--<label class="mdb-main-label">Label example</label>-->
                        <!--<button class="btn-save btn btn-primary btn-sm">Save</button>-->
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Delivery_Boy_Name')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="delivery_boy_name" placeholder="<?php echo e(__('messages.Enter_delivery_boy_name')); ?>" required>
                    </div>
                     <div class="form-group">
                      <label><?php echo e(__('messages.Delivery_Boy_Image')); ?></label>  
                      
                      <div class="input-group col-xs-12">
                      <input type="file" name="delivery_boy_image"  class="file-upload-default" required>                        
                        </div>
                      </div>
                      
                     <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Delivery_Boy_Phone')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="delivery_boy_phone" placeholder="<?php echo e(__('messages.Delivery_Boy_Phone')); ?>" required>
                    </div>
                    
                    <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Delivery_Boy_Comission')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="delivery_boy_comission" placeholder="<?php echo e(__('messages.Comission_in_Percentage')); ?>" required>
                    </div>
                    
                     <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Password')); ?></label>
                      <input type="password" class="form-control" id="exampleInputName1" name="password1" placeholder="<?php echo e(__('messages.Enter')); ?> <?php echo e(__('messages.Password')); ?>" required>
                    </div>
                    
                     <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Confirm_Password')); ?></label>
                      <input type="password" class="form-control" id="exampleInputName1" name="password2" placeholder="<?php echo e(__('messages.Confirm_Password')); ?>" required>
                    </div>
                    <button type="submit" class="btn btn-success mr-2"><?php echo e(__('messages.Submit')); ?></button>
                    <!--
                    <button class="btn btn-light">Cancel</button>
                    -->
                     <a href="<?php echo e(route('resturantdelivery_boy')); ?>" class="btn btn-light"><?php echo e(__('messages.Cancel')); ?></a>
                  </form>
                </div>
              </div>
            </div>
             <div class="col-md-2">
		  </div>
     
          </div>
        </div>
       </div> 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
        	$(document).ready(function(){
        	
                $(".des_price").hide();
                
        		$(".img").on('change', function(){
        	        $(".des_price").show();
        			
        	});
        	});
</script>
<script>
// Material Select Initialization
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
<?php $__env->stopSection(); ?>
<?php echo $__env->make('resturant.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>