<style>
    legend{
        width:auto;
        border-bottom:none;
        margin-bottom:auto;
    }
    label{
        width: auto !important;
    }
    fieldset{
        margin-left: 10px;
    }
</style>
<div class="layui-table-box layui-form">
    <fieldset class="layui-elem-field layui-field-title table-responsive" style="margin-top: 20px;">
        <legend>申请信息</legend>
        <table class="layui-table table">
            <thead>
            <tr>
                <th style="text-align: center">申请状态</th>
                <th style="text-align: center">公司名称</th>
                <th style="text-align: center">会员账号</th>
                <th style="text-align: center">联系方式</th>
                <th style="text-align: center">申请时间</th>
                <th style="text-align: center">查看会员系统详情</th>
            </tr>
            </thead>
            <tbody id="AddPriceContent">
                <tr>
                    <td style="text-align: center">{{$Status[$info['status']] or ''}}</td>
                    <td style="text-align: center">{{$info['com_name'] or ''}}</td>
                    <td style="text-align: center">{{$info['usmobile'] or $info['email']}}</td>
                    <td style="text-align: center">{{$info['mobile'] or ''}}</td>
                    <td style="text-align: center">{{date('Y-m-d H:i',$info['add_time'])}}</td>
                    <td style="text-align: center">
                        <a href="{{config('website.check-user-url')}}?account={{$info['usmobile'] or $info['email']}}" target="_blank" class="btn btn-xs btn-outline btn-primary"><strong>查看</strong></a>
                    </td>
                </tr>
            </tbody>
        </table>
    </fieldset>

    <fieldset class="layui-elem-field layui-field-title table-responsive" style="margin-top: 20px;">
        <legend>申请公司信息</legend>
        <table class="layui-table table">
            <thead>
            <tr>
                <th style="text-align: center">公司注册地址</th>
                <th style="text-align: center">公司电话</th>
                <th style="text-align: center">税务登记号</th>
                <th style="text-align: center">开户银行</th>
                <th style="text-align: center">查看订单系统详情</th>
            </tr>
            </thead>
            <tbody id="AddPriceContent">
            <tr>
                <td style="text-align: center">
                    {{$info['address'][$info['com_province_id']] or ''}}
                    {{$info['address'][$info['com_city_id']] or ''}}
                    {{$info['address'][$info['com_area_id']] or ''}}
                    {{$info['com_address'] or ''}}
                </td>
                <td style="text-align: center">{{$info['com_telphone'] or ''}}</td>
                <td style="text-align: center">{{$info['tax_no'] or ''}}</td>
                <td style="text-align: center">{{$info['bank_name'] or ''}}</td>
                <td style="text-align: center">
                    <a href="/list?order_contain={{$info['usmobile'] or $info['email']}}" target="_blank" class="btn btn-xs btn-outline btn-primary"><strong>查看</strong></a>
                </td>
            </tr>
            </tbody>
        </table>
    </fieldset>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;padding-bottom: 200px">
            <legend>审核</legend>
            <input type="hidden" name="id" value="{{$info['id'] or ''}}">
            <div class="layui-form-item" style="margin-top: 20px">
                <div class="layui-input-inline" style="width: auto">
                    <label class="layui-form-label">审核结果:</label>
                    <input type="radio" lay-verify="required" name="status" value="2" title="审核通过" @if($info['status']==1 || $info['status']==2) checked @endif @if($info['status']!=1) disabled @endif>
                    <input type="radio" lay-verify="required" name="status" value="3" title="审核不通过" @if($info['status']==3) checked @endif @if($info['status']!=1) disabled @endif>
                </div>
            </div>
            <div class="layui-form-item" style="margin-top: 20px">
                @if($info['status']==1)
                    <div class="layui-input-block" style="text-align: center">
                        <button class="layui-btn" lay-submit lay-filter="load">立即提交</button>
                    </div>
                @else
                    <div class="layui-input-inline" style="width: auto">
                        <label class="layui-form-label">审核原因:</label>
                        <div class="layui-form-mid">{{$info['auth_cause'] or ''}}</div>
                    </div>
                @endif
            </div>
        </fieldset>
</div>