<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h4>
            <?php echo e(trans('admin.admin')); ?> 
            	<i class="fa fa-angle-right margin-separator"></i> 
            		<?php echo e(trans('admin.general_settings')); ?>

            		
            		<i class="fa fa-angle-right margin-separator"></i> 
            		<?php echo e(trans('admin.limits')); ?>

          </h4>

        </section>

        <!-- Main content -->
        <section class="content">
        	
        	 <?php if(Session::has('success_message')): ?>
		    <div class="alert alert-success">
		    	<button type="button" class="close" data-dismiss="alert" aria-label="Close">
								<span aria-hidden="true">×</span>
								</button>
		        <i class="fa fa-check margin-separator"></i> <?php echo e(Session::get('success_message')); ?>	        
		    </div>
		<?php endif; ?>

        	<div class="content">
        		
        		<div class="row">
    
        	<div class="box box-danger">
                <div class="box-header with-border">
                  <h3 class="box-title"><?php echo e(trans('admin.limits')); ?></h3>
                </div><!-- /.box-header -->
               
               
               
                <!-- form start -->
                <form class="form-horizontal" method="POST" action="<?php echo e(url('panel/admin/settings/limits')); ?>" enctype="multipart/form-data">
                	
                	<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">	
                  <?php echo $__env->make('errors.errors-forms', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                  				
                 <!-- Start Box Body -->
                  <div class="box-body">
                    <div class="form-group">
                      <label class="col-sm-2 control-label"><?php echo e(trans('admin.result_request_campaigns')); ?></label>
                      <div class="col-sm-10">
                      	<select name="result_request" class="form-control">
                      		<option <?php if( $settings->result_request == 4 ): ?> selected="selected" <?php endif; ?> value="4">4</option>
                      		<option <?php if( $settings->result_request == 8 ): ?> selected="selected" <?php endif; ?> value="8">8</option>
                            <option <?php if( $settings->result_request == 12 ): ?> selected="selected" <?php endif; ?> value="12">12</option>
						  	<option <?php if( $settings->result_request == 24 ): ?> selected="selected" <?php endif; ?> value="24">24</option>
						  	<option <?php if( $settings->result_request == 36 ): ?> selected="selected" <?php endif; ?> value="36">36</option>
						  	<option <?php if( $settings->result_request == 48 ): ?> selected="selected" <?php endif; ?> value="48">48</option>
						  	<option <?php if( $settings->result_request == 60 ): ?> selected="selected" <?php endif; ?> value="60">60</option>
                          </select>
                      </div>
                    </div>
                  </div><!-- /.box-body -->
                
                  <!-- Start Box Body -->
                  <div class="box-body">
                    <div class="form-group margin-zero">
                      <label class="col-sm-2 control-label"><?php echo e(trans('admin.file_size_allowed')); ?></label>
                      <div class="col-sm-10">
                      	<select name="file_size_allowed" class="form-control">
                            <option <?php if( $settings->file_size_allowed == 1024 ): ?> selected="selected" <?php endif; ?> value="1024">1 MB</option>
						  	<option <?php if( $settings->file_size_allowed == 2048 ): ?> selected="selected" <?php endif; ?> value="2048">2 MB</option>
						  	<option <?php if( $settings->file_size_allowed == 3072 ): ?> selected="selected" <?php endif; ?> value="3072">3 MB</option>
						  	<option <?php if( $settings->file_size_allowed == 4096 ): ?> selected="selected" <?php endif; ?> value="4096">4 MB</option>
						  	<option <?php if( $settings->file_size_allowed == 5120 ): ?> selected="selected" <?php endif; ?> value="5120">5 MB</option>
						  	<option <?php if( $settings->file_size_allowed == 10240 ): ?> selected="selected" <?php endif; ?> value="10240">10 MB</option>
                          </select>
                          <span class="help-block "><?php echo e(trans('admin.upload_max_filesize_info')); ?> <strong><?php echo str_replace('M', 'MB', ini_get('upload_max_filesize')) ?></strong></span>
                      </div>
                    </div>
                  </div><!-- /.box-body -->
                  
                  <!-- Start Box Body -->
                  <div class="box-body">
                    <div class="form-group">
                      <label class="col-sm-2 control-label"><?php echo e(trans('admin.min_campaign_amount')); ?></label>
                      <div class="col-sm-10">
                        <input type="number" min="1" autocomplete="off" value="<?php echo e($settings->min_campaign_amount); ?>" name="min_campaign_amount" class="form-control onlyNumber" placeholder="<?php echo e(trans('admin.min_campaign_amount')); ?>">
                      </div>
                    </div>
                  </div><!-- /.box-body -->
                  
                   <!-- Start Box Body -->
                  <div class="box-body">
                    <div class="form-group">
                      <label class="col-sm-2 control-label"><?php echo e(trans('misc.max_campaign_amount')); ?></label>
                      <div class="col-sm-10">
                        <input type="number" min="1" autocomplete="off" value="<?php echo e($settings->max_campaign_amount); ?>" name="max_campaign_amount" class="form-control onlyNumber" placeholder="<?php echo e(trans('admin.max_campaign_amount')); ?>">
                      </div>
                    </div>
                  </div><!-- /.box-body -->
                  
                  <!-- Start Box Body -->
                  <div class="box-body">
                    <div class="form-group">
                      <label class="col-sm-2 control-label"><?php echo e(trans('admin.min_donation_amount')); ?></label>
                      <div class="col-sm-10">
                        <input type="number" min="1" autocomplete="off" value="<?php echo e($settings->min_donation_amount); ?>" name="min_donation_amount" class="form-control onlyNumber" placeholder="<?php echo e(trans('admin.min_donation_amount')); ?>">
                      </div>
                    </div>
                  </div><!-- /.box-body -->

                  <div class="box-footer">
                    <button type="submit" class="btn btn-success"><?php echo e(trans('admin.save')); ?></button>
                  </div><!-- /.box-footer -->
                </form>
              </div>
        			        		
        		</div><!-- /.row -->
        		
        	</div><!-- /.content -->
        	
          <!-- Your Page Content Here -->

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('javascript'); ?>

<script type="text/javascript">
$(document).ready(function() {
	
    $(".onlyNumber").keypress(function(event) {
        return /\d/.test(String.fromCharCode(event.keyCode));
    });
	  
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>