{!! Form::open(['url' => route('admin_payments_credit_create'), 'class' => 'modal-content', 'enctype' => 'multipart/form-data']) !!}
    


<style>
    .unselectable {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
  }
  .selectall {
    -moz-user-select: all;
    -webkit-user-select: all;
    -ms-user-select: all;
  }
</style>

    <div class="modal-header">
        <h5 class="modal-title">
            {{ __('Gutschriften Zahlung') }}
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
    </div>
    <div class="modal-body">
        <input type="hidden" name="action" value="{{$data['action']}}">
        <input type="hidden" name="id" value="{{$data['id']}}">

        <div class="form-row">
            <div class="form-group col-12">
                <label for="status" class="form-label">{{ __('Status') }}*</label>
                {{ Form::select('status', $value::$statusTypes, false, array('data-live-search'=>'false', 'class'=>'selectpicker') ) }}
            </div>
        </div>

        <table class="table user-view-table m-0">
            <tbody>
              <tr>
                <td>Betrag:</td>
                <td>
                   {{ $value->getFormattedTotal()." €" }}
                </td>
              </tr>
              <tr>
                <td>Zahlungsart:</td>
                <td>
                    @if ($value->user->account->getPaymentData('payout') === 'paypal')
                        <span class="btn btn-sm btn-outline-twitter">PayPal</span>
                    @endif
                    @if ($value->user->account->getPaymentData('payout') === 'bank')
                        <span class="btn btn-outline-google">Banküberweisung</span>
                    @endif
                </td>
              </tr>
              <tr  class="unselectable">
                <td>Bankinhaber</td>
                <td><div class="selectall">{{  $value->user->account->getPaymentData('bankaccountholder') }}</div></td>
              </tr>
              <tr>
                <td>IBAN:</td>
                <td><div class="selectall">{{  $value->user->account->getPaymentData('iban') }}</div></td>
              </tr>
              <tr>
                <td>BIC:</td>
                <td><div class="selectall">{{  $value->user->account->getPaymentData('bic') }}</div></td>
              </tr>
              <tr>
                <td>PayPal:</td>
                <td><div class="selectall">{{ $value->user->account->getPaymentData('paypal_address') }}</div></td>
              </tr>
            </tbody>
          </table>

       
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">schließen</button>
        <button type="submit" class="btn btn-primary">{{__('speichern')}}</button>

    </div>
{!! Form::close() !!}

<script type="text/javascript">
    $( document ).ready(function() {

    });
</script>
