{{csrf_field()}}
<div class="layui-form-item">
    <label for="" class="layui-form-label">第三方名</label>
    <div class="layui-input-inline">
        <input type="text" name="name" value="{{ $party->name ?? old('name') }}" lay-verify="required" placeholder="请输入第三方名" class="layui-input" >
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">额&nbsp;&nbsp;&nbsp;度</label>
    <div class="layui-input-inline">
        <input type="text" name="balance" value="{{$party->balance ?? old('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="phone" value="{{$party->phone ?? old('phone') ?? ''}}" required="phone" lay-verify="phone" placeholder="请输入联系电话" 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="{{$party->key ?? old('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="{{$party->secret ?? old('secret')}}" placeholder="SECRET" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">不修改则留空</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('admin.party')}}" >返 回</a>
    </div>
</div>