@extends('admin.base')

@section('content')
    <div class="layui-elem-quote">更新第三方</div>
    <form class="layui-form" action="{{route('appUser.update',['role'=>$appUser])}}" method="post">
        {{csrf_field()}}
        {{method_field('put')}}
        <div class="layui-form-item">
            <label for="" class="layui-form-label">额&nbsp;&nbsp;&nbsp;度</label>
            <div class="layui-input-inline">
                <input type="email" name="email" value="{{$appUser->balance}}" required="" lay-verify="required" placeholder="余额" autocomplete="off" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item">
            <label for="" class="layui-form-label">第三方名</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="{{$appUser->name}}" required="" lay-verify="required" placeholder="请输入第三方名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="" class="layui-form-label">联系电话</label>
            <div class="layui-input-inline">
                <input type="text" name="tel" value="{{$appUser->tel}}" required="" lay-verify="required" placeholder="请输入联系电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="" class="layui-form-label">KEY</label>
            <div class="layui-input-inline">
                <input type="text" id="key" name="key" value="{{$appUser->key}}" placeholder="KEY" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">不修改则留空</div>
        </div>
        <div class="layui-form-item">
            <label for="" class="layui-form-label">SECRET</label>
            <div class="layui-input-inline">
                <input type="text" id="secret" name="secret" value="{{$appUser->secret}}" placeholder="SECRET" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">不修改则留空</div>
        </div>
        <div class="layui-form-item">
            <label for="" class="layui-form-label">确&nbsp;&nbsp;&nbsp;认</label>
            <div class="layui-input-inline">
                <input type="password" id="password_confirmation" name="password_confirmation" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
                <a class="layui-btn" href="{{route('appUser.index')}}" >返 回</a>
            </div>
        </div>
    </form>
@endsection


