IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Goods Received Details</strong></h2>
</div>
<div class="body table-responsive">
<?php echo Form::open(['url' => 'school/prodreceived', 'class' => 'form-horizontal','id'=>'form','files'=>true]); ?>
<input type="hidden" name='idPurchaseOrder' value="<?php echo e($po->idPurchaseOrder); ?>">
<p style="color:red;">Note : Enter serial no separated by (,) eg: 219283736,16253538</p>
<table class="table table-bordered dataTable">
<thead>
<tr>
<th>S. No.</th>
<th>Item Details</th>
<th>Quantity</th>
<th>Already<br>Received</th>
<th>Received</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<?php $__currentLoopData = $po->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th scope="row"><?php echo e($i); ?></th>
<td>
<?php echo e($var->product->productName); ?>
<input type="hidden" name="products[<?php echo e($i); ?>][idProduct]" value="<?php echo e($var->idProduct); ?>">
</td>
<td><?php echo e($var->quantity); ?></td>
<?php $rproducts = \App\ProductReceived::join('product_received_details','product_received.idProductReceived','=','product_received_details.idProductReceived')
->join('products','product_received_details.idProduct','=','products.idProduct')
->where('product_received_details.idProduct',$var->idProduct)
->where('idPurchaseOrder',$po->idPurchaseOrder)->first(); ?>
<?php if($rproducts != null): ?>
<td><?php echo e($rproducts->quantity); ?></td>
<?php else: ?>
<td>0</td>
<?php endif; ?>
<td>
<?php echo Form::text('products['.$i.'][quantity]',null,['class' => 'form-control','required'=>'required']); ?><br>
<?php echo Form::text('products['.$i.'][serialNo]',null,['placeholder'=>'Enter serial no','class' => 'form-control','required'=>'required']); ?>
</td>
</tr>
<?php $i++; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php echo Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect','id'=>'submit-btn']); ?>
<?php echo Form::close(); ?>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -