<div class="modal" id="modal-form_create" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" >
   <div class="modal-dialog modal-lg">
      <div class="modal-content">
     
<form class="form-horizontal" data-toggle="validator" method="post" id="form-create">
   <?php echo e(csrf_field()); ?> <?php echo e(method_field('POST')); ?>

   
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"> &times; </span> </button>
      <h6 class="modal-title">Transaksi Penjualan</h6>
   </div>
   <br>

   <input type="hidden" id="id" name="id">
 
<div style="padding: 2px 45px;">
   
    <div class="form-group">
        <label>Tanggal Transaksi</label>
        <input type="date" id="tgltr" name="tgltr" class="form-control" autofocus required>
    </div>
   
    <div class="form-group">
        <label>Nama Customer</label>
        <select id="cus" type="text" class="form-control" name="cus" autofocus required  style="font-weight:bold">
            <option value=""> -- Customer -- </option>
            <?php $__currentLoopData = $cust; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($list->id_cust); ?>"><?php echo e($list->cus_name.' - '.$list->cus_hp); ?></option>
		    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>	
        </select>
    </div>
       
    <div class="row">       
        <div class="form-group col-sm-9">
            <label>Project Perumahan</label>
            <select id="prj" type="text" class="form-control" name="prj" value="" autofocus required style="font-weight:bold">
                <option value=""> -- Pilih Perumahan -- </option>
                <?php $__currentLoopData = $projek; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($list->id); ?>"><?php echo e($list->project_name); ?></option>
    		    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>	
            </select>
        </div>
        <div class="col-sm-3">
        	<div class="form-group">
        	    <label>CLUSTER/BLOCK/NOMOR</label>   
        		<input id="id_rmh" type="hidden" class="form-control" name="id_rmh" readonly="true" autofocus required>	
        		<div class="input-group">
        			<input type="text" class="form-control" id="nomor" name="nomor" autofocus required readonly="true" placeholder="Clust/Block/No">
        			<span class="input-group-btn">
        				<button onclick="showRumah()" type="button" class="btn btn-info" style="width:10px;height:35px;border-radius:3">.. </button>
        			</span>
        		</div>
            </div>    
        </div>
    </div>    
    

<div class="row">
    <div class="col-sm-4">

    	<div class="form-group">
    		<label>Type Rumah</label>
    		<input type="text" class="form-control" id="tipe" name="tipe" autofocus required readonly="true">
        </div>   
    
    	<div class="form-group">
    		<label>Harga Jual Rumah</label>
    		<input type="text" class="form-control" id="harga" name="harga" autofocus required readonly="true">
        </div>   
        
        <div class="form-group">
            <label>Type Pembayaran</label>
            <select id="byr" type="text" class="form-control" name="byr" autofocus required>
                <option value=""> -- Pilih Pembayaran -- </option>
                <option value="1">KPR</option>
    		    <option value="2">CASH BERTAHAP</option>
    		    <option value="3">CASH KERAS</option>
            </select>
        </div> 
        <section id='bank' class='hide'>
        	<div class="form-group">
        		<label>Bank KPR</label>
        		<select id='kdbank' name='kdbank' type='text' class='form-control' autofocus autocomplete="off">
        		    <option value=""> --- Pilih Bank KPR ---</option>
        		    <?php $__currentLoopData = $bnk; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bb): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        		    <option value="<?php echo e($bb->id); ?>"><?php echo e($bb->nama.' - ['.$bb->kode.']'); ?></option>
        		    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        		</select>
            </div>                
        </section>        

    </div>
    
    <div class="col-sm-1"></div>
    
    <div class="col-sm-7">
        
    	<div class="form-group">
    		<label>Referensi/Sales</label>
    		<!--input type="text" class="form-control" id="ref" name="ref" autofocus autocomplete="off"-->
    		
    		<select id='ref' name='ref' type='text' class='form-control' autofocus autocomplete="off">
    		    <option value=""> --- Pilih Referensi ---</option>
    		    <?php $__currentLoopData = $ref; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    		    <option value="<?php echo e($rr->id); ?>"><?php echo e($rr->nama.' - '.$rr->nohp); ?></option>
    		    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    		</select>
        </div>              
        
        <div class="form-group">
            <label>Keterangan</label>
            <textarea id='ket' name='ket' autofocus rows="4" class="form-control"></textarea>
        </div>
    </div>
    
</div>

    <div class="modal-footer">
        <button  id="submit-control" type="submit" class="btn btn-primary btn-sm btn-save pull-right"><i class="fa fa-floppy-o"></i> Save </button> 
        <button type="button" class="btn btn-warning btn-sm btn-close pull-right" data-dismiss="modal"><i class="fa fa-times-circle"></i> Cancel </button>
    </div>
  
</form>

         </div>
      </div>
   </div>
</div><?php /**PATH /home/u345793601/domains/my-projeq.com/public_html/swa/resources/views/transaksi/transaksi_create.blade.php ENDPATH**/ ?>