
<div class="modal fade mb-search-modal" id="searchModal" tabindex="-1" aria-labelledby="searchModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-scrollable">
        <div class="modal-content">

            <div class="mb-search-bar">
                <i class="bi bi-search mb-search-icon"></i>
                <label class="visually-hidden" id="searchModalLabel" for="searchInput">Search</label>
                <input id="searchInput" type="search" class="form-control border-0 shadow-none p-0" placeholder="Jump to a recent chat or creative" autocomplete="off">

                <button type="button" class="mb-search-filter active" data-search-filter="all" title="Everything">
                    <i class="bi bi-asterisk"></i>
                </button>
                <button type="button" class="mb-search-filter" data-search-filter="chat" title="Chats">
                    <i class="bi bi-chat-left-text"></i>
                </button>
                <button type="button" class="mb-search-filter" data-search-filter="creative" title="Creatives">
                    <i class="bi bi-image"></i>
                </button>

                <button type="button" class="mb-search-close" data-bs-dismiss="modal" aria-label="Close search">
                    <i class="bi bi-x-lg"></i>
                </button>
            </div>

            <div class="mb-search-results" id="searchResults">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(! empty($conversations) && count($conversations)): ?>
                    <div class="mb-search-group">
                        <div class="mb-search-group-label">Recent chats</div>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $conversations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $conversation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php $title = trim((string) $conversation->title) ?: 'Untitled'; ?>
                            <a class="mb-search-item"
                               data-type="chat"
                               data-title="<?php echo e($title); ?>"
                               href="<?php echo e(route('chat.show', ['conversation' => $conversation->id])); ?>">
                                <i class="bi bi-chat-left-text"></i>
                                <span class="mb-search-item-name"><?php echo e($title); ?></span>
                                <i class="bi bi-arrow-return-left mb-search-enter"></i>
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?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; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(! empty($recentCreatives) && count($recentCreatives)): ?>
                    <div class="mb-search-group">
                        <div class="mb-search-group-label">Recent creatives</div>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $recentCreatives; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $creative): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php $title = trim((string) ($creative->title ?: $creative->prompt)) ?: 'Untitled creative'; ?>
                            <a class="mb-search-item"
                               data-type="creative"
                               data-title="<?php echo e($title); ?>"
                               href="<?php echo e(route('creatives.show', $creative)); ?>">
                                <i class="bi bi-image"></i>
                                <span class="mb-search-item-name"><?php echo e($title); ?></span>
                                <i class="bi bi-arrow-return-left mb-search-enter"></i>
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?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>

            <div class="mb-search-empty" id="searchEmpty" hidden>Nothing matches.</div>

        </div>
    </div>
</div>
<?php /**PATH /var/www/php85/koushik/arb.admedia.com/resources/views/partials/mb/search.blade.php ENDPATH**/ ?>