@php use App\Library\Tool; @endphp @extends('layouts/contentLayoutMaster') @section('title', __('locale.sub_accounts.add_new')) @section('vendor-style') @endsection @section('content')

{{ __('locale.sub_accounts.add_new') }}

@csrf
@error('email')
{{ $message }}
@enderror
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
{{ __('locale.labels.permissions') }}
@if ($errors->has('permissions.*'))

{{ $errors->first() }}

@endif
@foreach($permissions as $category)
{{ __('locale.menu.'.$category['title']) }}
@foreach($category['permissions'] as $permission) {{-- Conditionally check if the permission exists in the customer's permissions --}} @if(is_array($existing_permission) && in_array($permission['name'], $existing_permission))
@endif @endforeach
@endforeach
@endsection @section('vendor-script') @endsection @section('page-script') @endsection