<?php Fun::lang()?>
<?php echo Form::open(array('id'=>'form_submit')); ?>

<div style="overflow:hidden;padding:15px;">
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.invoice')); ?></label>
        <div class="col-sm-6">
            <input type="text" class="form-control" name="invoice" value="<?php echo e($payment->payment_invoice); ?>" readonly>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.user')); ?></label>
        <div class="col-sm-6">
            <input type="text" class="form-control" value="<?php echo e(auth()->user()->name); ?>" readonly>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.remain')); ?></label>
        <div class="col-sm-6">
            <input type="text" class="form-control remain" name="remain" data-pp="<?php echo e($payment->remain); ?>"
                   value=" <?php echo e($payment->symbol); ?> <?php echo e($payment->remain); ?>" readonly>
            <input type="hidden" name="type" value="refund" required>
            <input type="hidden" class="form-control" name="payment_id" value="<?php echo e($payment->id); ?>"
                   required>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right required"><?php echo e(__('administrator.payment_method')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::select('payment_method', getPaymentMethod() , null , ['placeholder'=>__('administrator.please_select'),'class' => 'form-control select2']); ?>

        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right required"><?php echo e(__('administrator.amount')); ?>( <?php echo e($payment->symbol); ?> )</label>
        <div class="col-sm-6">
            <?php echo Form::text('amount',null, ['class' => 'form-control amount']); ?>

        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right required"><?php echo e(__('administrator.date')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::date('date',date('Y-m-d'), ['class' => 'form-control p_date']); ?>

        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right "><?php echo e(__('administrator.note')); ?></label>
        <div class="col-sm-6">
            <?php echo Form::textarea('note',null, ['class' => 'form-control no-resize','rows'=>'5','maxlength'=>'150']); ?>

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



<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/payment/add-payment.blade.php ENDPATH**/ ?>