@extends('layouts.app')

<head>
  
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>

@section('title')
  Detail Promotion
@endsection

@section('breadcrumb')
   @parent
   <li>promotion</li>
   <li>detail</li>
@endsection

@section('content')     

<div class="row">
  <div class="col-xs-12">
    <div class="box">
   
     <div class="box-body">

<table>
  <tr><td width="80">SKU / Deskripsi</td><td><b>sku/nama barang</b></td></tr>
  <tr><td>Cabang</td><td><b>nama toko</b></td></tr>
  <tr><td>Periode</td><td><b>periode promo</b></td></tr>
</table>
<hr>

<form class="form form-horizontal form-produk" method="post">
{{ csrf_field() }}
  
  <div class="form-group">
      <label for="kode" class="col-md-2 control-label">Kode List</label>
      <div class="col-md-5">
        <div class="input-group">
          <input id="kode" type="text" class="form-control" name="kode" autofocus required>
          <span class="input-group-btn">
            <button onclick="showProduct()" type="button" class="btn btn-info">...</button>
          </span>
        </div>
      </div>
  </div>
</form>

<form class="form-keranjang">
{{ csrf_field() }} {{ method_field('PATCH') }}
<table class="table table-striped table-bordered tabel-redeempoint">
<thead>
   <tr>
      <th width="30">No</th>
      <th>Deskripsi</th>
      <th align="right">Point</th>
      <th>No.VCR</th>
      <th width="100">Aksi</th>
   </tr>
</thead>
<tbody></tbody>
</table>
</form>

<!--
  <div class="col-md-8">
     <div id="tampil-bayar" style="background: #dd4b39; color: #fff; font-size: 80px; text-align: center; height: 100px"></div>
     <div id="tampil-terbilang" style="background: #3c8dbc; color: #fff; font-weight: bold; padding: 10px"></div>
  </div>
/-->  
  <div class="col-md-4">
     <form class="form form-horizontal form-redeempoint" method="post" action="{{  route('redeempoint.store') }} ">
      {{ csrf_field() }}

      <div class="form-group">
        <label for="totalrp" class="col-md-4 control-label">Total</label>
        <div class="col-md-8">
          <input type="text" class="form-control" id="totalrp" readonly>
        </div>
      </div>

    </form>
  </div>

      </div>
      
      <div class="box-footer">
	  
	    <button type="submit" class="btn btn-primary pull-right simpan"><i class="fa fa-floppy-o"> </i> Simpan Data </button>
	  	  
		<button type="button" class="btn btn-warning pull-right" onclick="window.history.back()"><i class="fa fa-times-circle"></i> Close </button> 
      </div>

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

@endsection

