@extends('layouts.thema') @section('content')


{{$user->name}}
Akses : @foreach($roles as $a) {{$a->name}} @endforeach
@csrf
@php $roles = $user->getRoleNames()->toArray(); @endphp @if(in_array('Kepala Sekolah', $roles))
@endif


Role yang dimiliki

@foreach($role_have as $a) @endforeach
{{$a->name}} Delete

Role yang tidak dimiliki

@foreach($role as $a) @endforeach
{{$a->name}} Add
@csrf
@if ($errors->has('new-password')) {{ $errors->first('new-password') }} @endif
@endsection