| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- @extends('admin/public/layout')
- @section('title')添加专家认证信息@endsection
- @section('content')
- <section class="content-header">
- <h1>添加专家认证信息</h1>
- </section>
- <section class="content">
- <div class="row">
- <div class="col-xs-12">
- <div class="box box-primary">
- <form role="form" name="editForm" method="POST" enctype="multipart/form-data" action="{{ route('admin.authentication.store') }}">
- {{ csrf_field() }}
- <div class="box-body">
- <div class="form-group @if($errors->has('user_id')) has-error @endif">
- <label>申请认证的用户UID</label>
- <input type="text" name="user_id" class="form-control " placeholder="申请认证的用户UID" value="{{ old('user_id','') }}">
- @if($errors->has('user_id')) <p class="help-block">{{ $errors->first('user_id') }}</p> @endif
- </div>
- <div class="form-group">
- <label>头像</label>
- <input type="file" name="id_card_image" />
- </div>
- <div class="form-group @if($errors->has('real_name')) has-error @endif">
- <label>真实姓名</label>
- <input type="text" name="real_name" class="form-control " placeholder="真实姓名" value="{{ old('real_name','') }}">
- @if($errors->has('real_name')) <p class="help-block">{{ $errors->first('real_name') }}</p> @endif
- </div>
- <div class="form-group ">
- <label for="time_friendly">性别</label>
- <div class="radio">
- <label><input type="radio" name="gender" value="1" @if ( old('gender',0) === 1) checked @endif >男</label>
- <label><input type="radio" name="gender" value="2" @if ( old('gender',0) === 2) checked @endif >女</label>
- <label><input type="radio" name="gender" value="0" @if ( old('gender',0) === 0) checked @endif >保密</label>
- </div>
- </div>
- <div class="form-group">
- <label for="setting-city" class="control-label">所在城市</label>
- <div class="row">
- <div class="col-sm-5">
- <select class="form-control" name="province" id="province">
- <option>请选择省份</option>
- @foreach($provinces as $province)
- <option value="{{ $province->id }}" @if(old('province',0) == $province->id) selected @endif>{{ $province->name }}</option>
- @endforeach
- </select>
- </div>
- <div class="col-sm-5">
- <select class="form-control" name="city" id="city">
- <option>请选择城市</option>
- </select>
- </div>
- </div>
- </div>
- <div class="form-group @if ($errors->has('title')) has-error @endif">
- <label for="name">身份职业</label>
- <input type="text" name="title" class="form-control " placeholder="身份职业" value="{{ old('title','') }}">
- @if ($errors->has('title')) <p class="help-block">{{ $errors->first('title') }}</p> @endif
- </div>
- <div class="form-group @if ($errors->has('description')) has-error @endif">
- <label for="name">自我介绍</label>
- <textarea name="description" class="form-control " placeholder="自我介绍">{{ old('description','') }}</textarea>
- @if ($errors->has('description')) <p class="help-block">{{ $errors->first('description') }}</p> @endif
- </div>
- <div class="form-group @if($errors->has('id_card')) has-error @endif">
- <label>身份证号码</label>
- <input type="text" name="id_card" class="form-control " placeholder="身份证号码" value="{{ old('id_card','') }}">
- @if($errors->has('id_card')) <p class="help-block">{{ $errors->first('id_card') }}</p> @endif
- </div>
- <div class="form-group">
- <label>所属分类</label>
- <select name="category_id" class="form-control">
- <option value="0">选择分类</option>
- @include('admin.category.option',['type'=>'experts','select_id'=>0])
- </select>
- </div>
- <div class="form-group @if($errors->has('skill')) has-error @endif">
- <label>认证领域</label>
- <input type="text" name="skill" class="form-control " placeholder="认证领域" value="{{ old('skill','') }}">
- @if($errors->has('skill')) <p class="help-block">{{ $errors->first('skill') }}</p> @endif
- </div>
- <div class="form-group">
- <label>专业性证明文件</label>
- <input type="file" name="skill_image" />
- </div>
- <div class="form-group">
- <label>状态</label>
- <span class="text-muted">(禁用后前台不会显示)</span>
- <div class="radio">
- <label>
- <input type="radio" name="status" value="0" @if( old('status',0) === 0) checked @endif /> 待审核
- </label>
- <label>
- <input type="radio" name="status" value="1" @if( old('status',0) === 1) checked @endif /> 通过审核
- </label>
- <label>
- <input type="radio" name="status" value="4" @if( old('status',0) === 4 ) checked @endif /> 审核失败
- </label>
- </div>
- </div>
- <div class="form-group">
- <label>审核失败的原因</label>
- <textarea class="form-control" name="failed_reason" placeholder="仅审核失败的情况下填写"></textarea>
- </div>
- <div class="form-group">
- <label>推荐</label>
- <span class="text-muted">(推荐后会按照推荐时间显示到首页)</span>
- <div class="radio">
- @foreach( trans_common_bool('all') as $key => $name )
- <label><input type="radio" name="is_recommend" value="{{ $key }}" @if( old('is_recommend',0) === $key) checked @endif /> {{ $name }}</label>
- @endforeach
- </div>
- </div>
- </div>
- <div class="box-footer">
- <button type="submit" class="btn btn-primary">保存</button>
- <button type="reset" class="btn btn-success">重置</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </section>
- @endsection
- @section('script')
- <script type="text/javascript">
- $(function(){
- set_active_menu('manage_user',"{{ route('admin.authentication.index') }}");
- /*加载省份城市*/
- $("#province").change(function(){
- var province_id = $(this).val();
- $("#city").load("{{ url('ajax/loadCities') }}/"+province_id);
- });
- });
- </script>
- @endsection
|