I need some help with an iframe that refuse to work for me.
I have left menuin left menu I have for example adminthen admin calls a file called manaAdmins.phpthe file open up but it open up outside of the iframe
Do you have any idea how to do this?
Code
// Super Admin Routes// ✅ Correct route group exampleRoute::middleware(['auth', 'superAdmin'])->prefix('superadmin')->group(function () { Route::get('/create-admin', [AdminController::class, 'createAdmin'])->name('iframe.superadmin.createAdmin'); Route::post('storeAdmin', [AdminController::class, 'storeAdmin'])->name('iframe.superadmin.storeAdmin'); Route::get('logs', [AdminController::class, 'viewLogs'])->name('iframe.superadmin.logs'); Route::get('/manage-admins', [AdminController::class, 'iframeManageAdmins'])->name('iframe.superadmin.manageAdmins');}); // ✅ This closing brace must be there and not duplicated
in the menu blade
if ($isSuperAdmin) { $menu[] = [ 'title' => 'Admin Panel', 'links' => [ ['label' => 'Dashboard', 'route_name' => 'secure-briefing.admin'], ['label' => 'Admins', 'route_name' => 'superadmin.manageAdmins'], ['label' => 'Logs for all', 'route_name' => 'superadmin.logs'], ], ]; }
{{ $localWelcome }} {{ $title }} {{ $lastName }}
@if($flagCode)
@endif {{ $country }}
@foreach ($menu as $section)
{{ $section['title'] }}
@foreach ($section['links'] as $link)
{{ $link['label'] }}
@endforeach
@endforeach
there is a controller also and a manage Admin page
Success story sharing