@extends('admin.layouts.app') @section('content') @if (session('success'))

{{ session('success') }}

@endif @if ($errors->any())
@foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
    @endif

    Edit User

    Edit User:
    @csrf @method('PUT')
    @foreach($userGroups as $userGroup)
    @endforeach @foreach($allGroups as $group) @php $groupId = is_array($group) ? $group['id'] : $group->id; $groupName = is_array($group) ? $group['name'] : $group->name; @endphp @if (!in_array($groupId, array_column($userGroups, 'id')))
    @endif @endforeach
    @endsection