<?php Fun::lang()?>
{!! 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 ">{{__('administrator.invoice')}}</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" name="invoice" value="{{$payment->payment_invoice}}" readonly>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right ">{{__('administrator.user')}}</label>
        <div class="col-sm-6">
            <input type="text" class="form-control" value="{{auth()->user()->name}}" readonly>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right ">{{__('administrator.remain')}}</label>
        <div class="col-sm-6">
            <input type="text" class="form-control remain" name="remain" data-pp="{{$payment->remain}}"
                   value=" {{$payment->symbol}} {{$payment->remain}}" readonly>
            <input type="hidden" name="type" value="refund" required>
            <input type="hidden" class="form-control" name="payment_id" value="{{$payment->id}}"
                   required>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-sm-4 col-form-label text-right required">{{__('administrator.payment_method')}}</label>
        <div class="col-sm-6">
            {!! 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">{{__('administrator.amount')}}( {{$payment->symbol}} )</label>
        <div class="col-sm-6">
            {!! 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">{{__('administrator.date')}}</label>
        <div class="col-sm-6">
            {!! 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 ">{{__('administrator.note')}}</label>
        <div class="col-sm-6">
            {!! Form::textarea('note',null, ['class' => 'form-control no-resize','rows'=>'5','maxlength'=>'150']) !!}
        </div>
    </div>
</div>
{!! Form::close() !!}


