@extends('admin.layouts.template') @section('page_heading','Update') @section('content')
.
สมาชิก
{!! Form::model($user,array('route'=>['user.update',$user->id],'method'=>'PUT')) !!}
{!! Form::label('name','ชื่อ') !!} {!! Form::text('name',null,['class'=>'form-control']) !!}
{!! Form::label('email','อีเมล') !!}

{{$user->email}}

{!! Form::label('role','สถานะ') !!} {!! Form::select('role',array('Super Admin' => 'Super Admin', 'Admin' => 'Admin'), null,['class'=>'form-control']) !!}
{!! Form::button('บันทึก',['type'=>'submit','class'=>'btn btn-primary']) !!} {{ link_to_route('user.index','ย้อนกลับ',null,['class'=>'btn btn-danger']) }}
{!! Form::close() !!}
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@stop