@extends('layouts.app') @section('title', 'Sub Admin Wizard — Preview') @section('page-title', 'Create Sub Admin') @section('breadcrumb', 'Wizard / Step 6 — Preview') @section('content')
@include('admin.sub-admins.wizard._progress', ['current' => 6])

Review & Confirm

Details

{{ $data['details']['name'] ?? '—' }}

{{ $data['details']['email'] ?? '—' }}

@if(!empty($data['details']['phone']))

{{ $data['details']['phone'] }}

@endif

Role

@php $role = \App\Models\Role::find($data['role_id'] ?? null); @endphp

{{ $role?->name ?? '—' }}

Courses

@php $courseCount = count($data['course_ids'] ?? []); @endphp

{{ $courseCount ?: 'All' }}

{{ $courseCount ? 'scoped courses' : 'full access' }}

Bundles

@php $bundleCount = count($data['bundle_ids'] ?? []); @endphp

{{ $bundleCount ?: 'All' }}

{{ $bundleCount ? 'scoped bundles' : 'full access' }}

Communities

@php $communityCount = count($data['community_ids'] ?? []); @endphp

{{ $communityCount ?: 'All' }}

{{ $communityCount ? 'scoped communities' : 'full access' }}

@if(empty($data['details']) || empty($data['role_id']))
Please complete all required steps before finishing.
@endif
← Back
@csrf
@endsection