<?php $__env->startSection('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>Purchase</h1>

<?php if(isset($data)){ ?>

<form action="controller/pages_submit.php" id="" class="form-horizontal " method="post" enctype="multipart/form-data">

  <div class="table-responsive">

    <table class="table table-striped table-bordered table-hover" >

      

<table class='table table-bordered' style='width:70%;' align='center'>

	<tr>

	 <td>

	   <label for="patti_no" class=" control-label"> Patti no </label>

	 </td>

	 <td> 

	   <?php echo e($data->patti_no); ?>


	 </td>

	</tr>

	



    <!-- Tc_id Start -->

	<tr>

	 <td>

	  <label class="control-label col-md-3"> Trader Company </label>

	 </td>

	 <td>

     <?php echo e($data->company_name); ?>


	 </td>

	</tr>

    <!-- Tc_id End -->



	



    <!-- Trader Start -->

	<tr>

	 <td>

	  <label class="control-label col-md-3"> Trader </label>

	 </td>

	 <td>

     <?php echo e($data->name); ?>


	 </td>

	</tr>

    <!-- Trader End -->



	

	<tr>

	 <td>

	   <label for="farmer" class=" control-label"> Farmer </label>

	 </td>

	 <td> 

	   <?php echo e($data->farmer); ?>


	 </td>

	</tr>

	

	<tr>

	 <td>

	   <label for="transporter_name" class=" control-label"> Transporter Name </label>

	 </td>

	 <td> 

	   <?php echo e($data->transporter_name); ?>


	 </td>

	</tr>

	

	<tr>

	 <td>

	   <label for="truck_no" class=" control-label"> Truck No </label>

	 </td>

	 <td> 

	   <?php echo e($data->truck_no); ?>


	 </td>

	</tr>

	

	<tr>

	 <td>

	   <label for="freight_charge" class=" control-label"> Freight charge </label>

	 </td>

	 <td> 

	   <?php echo e($data->freight_charge); ?>


	 </td>

	</tr>
	<?php $__currentLoopData = $crop; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	
	<tr><td colspan="2">Crop <?php echo e($key+1); ?></td></tr>
	<tr>
		<td><label for="freight_charge" class=" control-label">Crop</label></td><td><?php echo e($val->crop_name); ?></td>
	</tr>
	<tr>
		<td><label for="freight_charge" class=" control-label">Marqua</label></td><td><?php echo e($val->crop_quality); ?></td>
	</tr>
	<tr>
		<td><label for="freight_charge" class=" control-label">Quantity</label></td><td><?php echo e($val->quantity); ?></td>
	</tr>
	<tr>
		<td><label for="freight_charge" class=" control-label">Weight</label></td><td><?php echo e($val->weight); ?></td>
	</tr>
	<tr>
		<td><label for="freight_charge" class=" control-label">Cost</label></td><td><?php echo e($val->cost); ?></td>
	</tr>
	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



    <!-- Status Start -->

	<tr>

	 <td>

	  <label class="control-label col-md-3">status</label>

	 </td>

	 <td> 

	   <?php if($data->status == 1){echo "Active";}else{ echo "Inactive";}?>

	 </td>

	</tr>

    <!-- Status End -->



	<tr><td colspan="2"><a type="reset" class="btn btn-info pull-right" onclick="history.back()">Back</a></td></tr></table>

    </table>

  </div>



  

</form>

<?php } else{

    echo '<h2 align="center" class="text-danger">No record found!</h2>';

  } ?>





    </div>

  </div>

</div>

<!-- /page content -->





<?php $__env->stopSection(); ?>


<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>