@extends('admin.frame_form') @if (!isset($role)) @section('action', '添加') @else @section('action', '编辑') @endif @section('who', '角色') @section('form_content') *角色名称:     {{ $errors->first('name') }} *角色描述:     {{ $errors->first('description') }} *拥有权限: @foreach ($menus as $menu) @if (isset($role) && in_array($menu->id, $role->menus_id)) @else @endif @endforeach     {{ $errors->first('menu') }} @stop