59 lines
2.5 KiB
PHP
59 lines
2.5 KiB
PHP
@extends('Agent::layouts.app')
|
|
|
|
@section('title', '申请提现')
|
|
|
|
@section('content')
|
|
<section>
|
|
<form class="cash-form" method="post" action="{{ url()->current() }}">
|
|
<!-- 提现表单 -->
|
|
<div class="withdrawForm">
|
|
@if(!$user->cashAccount)
|
|
<div class="withdrawForm-add" data-href="{{ route('Agent.cashout.cashadd') }}">
|
|
<i class="icon icon-plus"></i>添加支付宝
|
|
</div>
|
|
@else
|
|
<ul class="withdrawForm-ul">
|
|
<li data-href="{{ route('Agent.cashout.cashedit', $user->cashAccount) }}">
|
|
<div class="pull-left withdrawForm-ul-right">
|
|
<div class="withdrawForm-ul-logo">
|
|
<img src="/assets/agent/img/icon/withdraw_00.png" >
|
|
</div>
|
|
<div class="withdrawForm-ul-text">
|
|
<div>
|
|
<span>支付宝账户</span>
|
|
{{ $user->cashAccount->alipay_account }}
|
|
</div>
|
|
<i class="icon icon-angle-right"></i>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
@endif
|
|
<div class="withdrawForm-money">
|
|
<p>提现金额</p>
|
|
<div class="withdrawForm-money-input">
|
|
<span>¥</span>
|
|
<input type="tel" name="variable" placeholder="请输入提现金额"/>
|
|
</div>
|
|
<div class="withdrawForm-money-text">
|
|
<span>余额:{{ number_format($user->account->cash,2) }}</span>
|
|
{{-- <button type="button">全部提现</button> --}}
|
|
</div>
|
|
</div>
|
|
@csrf
|
|
@if(!$user->cashAccount)
|
|
<div class="withdrawForm-btn" onclick="updateAlert('请先添加支付宝信息', 1, function(){ location.href='{{ route('Agent.cashout.cashadd') }}' })" >提现</div>
|
|
@else
|
|
@if(!$user->cashAccount->alipay_account_code)
|
|
<div class="withdrawForm-btn" onclick="updateAlert('请先添加支付宝商户二维码', 1, function(){ location.href='{{ route('Agent.cashout.cashedit', $user->cashAccount) }}' })" >提现</div>
|
|
|
|
@else
|
|
<div class="withdrawForm-btn ajax-post">确认提现</div>
|
|
@endif
|
|
@endif
|
|
|
|
</form>
|
|
</div>
|
|
</section>
|
|
@endsection
|