<div class="modal-header">
<h4>Sales Return Details</h4>
</div>

<div class="modal-body">

<div class="row">

<div class="col-md-4">
<label>Invoice Number</label>
<input type="text" class="form-control" value="<?php echo $return->invoice_number ?>" readonly>
</div>

<div class="col-md-4">
<label>Customer Name</label>
<input type="text" class="form-control" value="<?php echo $return->customer_name ?>" readonly>
</div>

<div class="col-md-4">
<label>Return Date</label>
<input type="text" class="form-control" value="<?php echo $return->return_date ?>" readonly>
</div>

</div>

<br>

<table class="table table-bordered">

<thead>

<tr>
<th>Product</th>
<th>SKU</th>
<th>Sold Qty</th>
<th>Returned Qty</th>
<th>Unit Price</th>
</tr>

</thead>

<tbody>

<?php foreach($items as $item): ?>

<tr>

<td><?php echo $item->product_name ?></td>

<td><?php echo $item->sku ?></td>

<td><?php echo $item->sold_qty ?></td>

<td><?php echo $item->return_qty ?></td>

<td><?php echo number_format($item->unit_price,2) ?></td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

<div class="modal-footer">

<button class="btn btn-default" data-dismiss="modal">
Close
</button>

</div>