@extends('layouts.app') @section('content')
Edit user
{{ csrf_field() }}
@if ($errors->has('firstname')) {{ $errors->first('firstname') }} @endif
@if ($errors->has('lastname')) {{ $errors->first('lastname') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@include('group.select', ['name'=>"group", 'group'=>(null!==old('group')?old('group'): ((isset($user->group))?$user->group->name:''))]) @if ($errors->has('group')) {{ $errors->first('group') }} @endif
@if ($errors->has('points')) {{ $errors->first('points') }} @endif
hasRole('Teacher')?' checked':'' }}>
isAdmin()?' checked':'' }}>
@endsection