<?php $__env->startSection('content'); ?>  
    <div class="row show-grid-forms my_content">
    <?php if(Session::has('success')): ?>
        <div class="alert alert-success" style="width: 1120px;">
            <?php echo e(Session::get('success')); ?>

        </div>
    <?php endif; ?>
        <?php echo Form::open(array('id'=>'refund_form','role' => 'form','route' => 'refund','method' => 'POST','accept-charset' => 'ISO-8859-1')); ?>

        <div class="col-sm-2" style="text-align: right;">
            <b>Order ID</b>
        </div>
        <div class="col-sm-2">
            <?php echo Form::text('refund_order_id','',array('required'=>'required','class'=>'form-control')); ?>

        </div>    
        <div class="col-sm-2">
            <?php echo Form::submit('Submit', array('class' => 'btn btn-primary btn-label-left')); ?>

            <?php echo Form::close(); ?>   
        </div>
    </div>

    <?php if(isset($report)): ?>
        <table class="table table-bordered">
            <thead>
               <tr>
                   <th>Market Place</th>
                   <th>Order ID</th>
                   <th>SKU</th>
                   <th>Sales</th>
                   <th>Shipping</th>
                   <th>Net Cost</th> 
                   <th>Tax</th>
                   <th>Commission</th>
                   <th style="text-align: center;">Quantity</th>
                   <th>Source</th>
               </tr>
           </thead>
           <tbody>
                <tr>
                    <td><?php echo e($report[0]->name); ?></td>
                    <td><?php echo e($report[0]->report_order_id); ?></td>
                    <td><?php echo e($report[0]->report_item_sku); ?></td>
                    <td><?php echo e($report[0]->report_selling_price); ?></td>
                    <td><?php echo e($report[0]->report_shipping_cost); ?></td>
                    <td><?php echo e($report[0]->report_net_cost); ?></td>
                    <td><?php echo e($report[0]->report_tax); ?></td>
                    <td><?php echo e($report[0]->commission); ?></td>
                    <td style="text-align: center;"><?php echo e($report[0]->report_item_quantity); ?></td>
                    <td><?php echo e($report[0]->source_name); ?></td>
                </tr>
           </tbody>
        </table>
        <br/><br/><br/>
    <div class="row show-grid-forms my_content">
            <?php echo Form::open(array('id'=>'refund_form','role' => 'form','route' => 'refund','method' => 'POST','accept-charset' => 'ISO-8859-1')); ?>

        <div class="col-sm-2" style="text-align: right;">
            <b>Refund Amount</b>
        </div>
        <div class="col-sm-2">
            <?php echo Form::number('refund_amount','',array('required'=>'required','class'=>'form-control')); ?>

            <?php echo Form::hidden('report_id',$report[0]->report_id,array('required'=>'required','class'=>'form-control')); ?>

        </div>    
        <div class="col-sm-2">
            <?php echo Form::submit('Submit', array('class' => 'btn btn-primary btn-label-left')); ?>

            <?php echo Form::close(); ?>   
        </div>
    </div>
    <?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>