@extends('admin.layouts.app', ['title' => 'Assign Merchants']) @section('content')

Assign Merchants

Choose which merchants {{ $subAdmin->name }} can access.
Back to Sub Admin Roles
{{ $subAdmin->name }}
{{ $subAdmin->email }}
{{ $subAdmin->is_active ? 'Active' : 'Inactive' }} {{ count($assignedUserIds) }} selected
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@csrf @method('PUT')
Access scope
Only selected merchants will be manageable for this sub admin.
@forelse ($users as $user) @php($isAssigned = in_array((int) $user->id, $assignedUserIds, true))
@empty
No merchants found.
@endforelse
No merchants match your search.
Cancel
@endsection @push('scripts') @endpush