@extends('admin/public/layout') @section('css') @endsection @section('title') 编辑用户 @endsection @section('content') 编辑用户 编辑用户信息 基本资料 用户名 @if ($errors->has('name')) {{ $errors->first('name') }} @endif 头像 邮箱 @if ($errors->has('email')) {{ $errors->first('email') }} @endif 密码 @if ($errors->has('password')) {{ $errors->first('password') }} @endif 角色 @foreach( $roles as $role ) getRoles()->contains($role->id)) selected @endif> {{ $role->name }} @endforeach 性别 gender === 1) checked @endif >男 gender === 2) checked @endif >女 gender === 0) checked @endif >保密 出生日期 @if ($errors->has('birthday')) {{ $errors->first('birthday') }} @endif 所在城市 请选择省份 @foreach($data['provinces'] as $province) province == $province->id) selected @endif>{{ $province->name }} @endforeach 请选择城市 @foreach($data['cities'] as $city) city == $city->id) selected @endif >{{ $city->name }} @endforeach 身份职业 @if ($errors->has('title')) {{ $errors->first('title') }} @endif 自我介绍 {{ old('description',$user->description) }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif 状态 (禁用后用户将不能访问网站) @foreach(trans_common_status('all') as $key => $status) status === $key) checked @endif /> {{ $status }} @endforeach @endsection @section('script') @endsection
{{ $errors->first('name') }}
{{ $errors->first('email') }}
{{ $errors->first('password') }}
{{ $errors->first('birthday') }}
{{ $errors->first('title') }}
{{ $errors->first('description') }}