@extends('sales.layouts.app') @section("content")

編輯角色

{{ csrf_field() }} {{ method_field("PUT") }}

權限設定

@foreach($navs as $f)
@if(count($group->permissions)) @foreach($group->permissions as $p ) @if( $p->func_id == $f->id)
permission==0) checked @endif />
permission==1) checked @endif />
permission==2) checked @endif />
@endif @endforeach @else
@endif
@if( count($f->child()) )
@foreach($f->child() as $c)
@if(count($group->permissions)) @foreach($group->permissions as $p ) @if( $p->func_id == $c->id)
permission==0) checked @endif value="0">
permission==1) checked @endif value="1">
permission==2) checked @endif value="2">
@endif @endforeach @else
@endif
@endforeach
@endif
@endforeach @if (count($errors) > 0) @include('partials.error', ['errors'=>$errors]) @endif
@if($editable) @endif 取消,回上頁
@endsection @section("script") @endsection