@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>Credit Offer</h1>

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

    


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


	

    <!-- Card_image Start -->
    <div class="form-group">
      <label for="address" class="col-sm-3 control-label"> Card Image </label>
      <div class="col-sm-6">
      <input type="file" name="card_image" />
      <input type="hidden" name="old_card_image" value="<?php if (isset($card_image) && $card_image!=""){echo $card_image; } ?>" />
        <?php if(isset($card_image_err) && !empty($card_image_err)) 
        { foreach($card_image_err as $key => $error)
        { echo "<div class=\"error-msg\"></div>"; } }?>
      </div>
        <div class="col-sm-3" >
      </div>
      <div class="col-sm-5">
        <div class="label label-danger">{{ $errors->first("card_image") }}</div>
      </div>
    </div>
    <!-- Card_image End -->

    


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


	


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


	


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


	


	<!-- Url Start -->
	<div class="form-group">
	  <label for="url" class="col-sm-3 control-label"> Url </label>
	  <div class="col-sm-4">
	    <input type="text" class="form-control" id="url" name="url" 
	    value="{{ old('url') }}">
	  </div>
	  <div class="col-sm-5">
      <div class="label label-danger">{{ $errors->first("url") }}</div>
      </div>
	</div> 
	<!-- Url 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

