File manager - Edit - /var/www/html/transparencia/storage/framework/views/14c928bad87f5f2c77319628e78f0194.php
Back
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; $__newAttributes = []; $__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([ 'accordionId' => 'accordion-mapa', 'items' => [], 'openFirst' => true, 'blockClass' => 'mapa-do-site-block', ])); foreach ($attributes->all() as $__key => $__value) { if (in_array($__key, $__propNames)) { $$__key = $$__key ?? $__value; } else { $__newAttributes[$__key] = $__value; } } $attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes); unset($__propNames); unset($__newAttributes); foreach (array_filter(([ 'accordionId' => 'accordion-mapa', 'items' => [], 'openFirst' => true, 'blockClass' => 'mapa-do-site-block', ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } $__defined_vars = get_defined_vars(); foreach ($attributes->all() as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } unset($__defined_vars, $__key, $__value); ?> <div class="ms-accordion" id="<?php echo e($accordionId); ?>"> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $collapseId = $accordionId . '-' . ($item['id'] ?? 'item-' . $index); $links = $item['links'] ?? []; $displayedCount = count($links); $totalCount = $item['totalCount'] ?? $displayedCount; $isTruncated = !empty($item['truncated']) && $totalCount > $displayedCount; $isOpen = $openFirst && $index === 0; $showMoreLink = $isTruncated && !empty($item['moreUrl']); ?> <div class="ms-acc-item <?php echo e($blockClass); ?>" data-block-title="<?php echo e(Str::lower($item['title'] ?? '')); ?>"> <button class="ms-acc-btn <?php echo e($isOpen ? 'ms-acc-btn--open' : ''); ?>" type="button" data-target="<?php echo e($collapseId); ?>" aria-expanded="<?php echo e($isOpen ? 'true' : 'false'); ?>" aria-controls="<?php echo e($collapseId); ?>" > <span><?php echo e($item['title']); ?></span> <span class="ms-acc-right"> <?php if($isTruncated): ?> <span class="ms-count-badge ms-count-badge--truncated" title="<?php echo e(__(':total no portal; :limit exibidos no mapa do site', ['total' => number_format($totalCount, 0, ',', '.'), 'limit' => number_format($displayedCount, 0, ',', '.')])); ?>"> <?php echo e(number_format($displayedCount, 0, ',', '.')); ?> <span class="ms-count-badge-sep"><?php echo e(__('de')); ?></span> <?php echo e(number_format($totalCount, 0, ',', '.')); ?> </span> <?php else: ?> <span class="ms-count-badge"><?php echo e(number_format($totalCount, 0, ',', '.')); ?></span> <?php endif; ?> <i class="fa-solid fa-chevron-down ms-acc-arrow <?php echo e($isOpen ? 'ms-acc-arrow--open' : ''); ?>" aria-hidden="true"></i> </span> </button> <div id="<?php echo e($collapseId); ?>" class="ms-acc-panel <?php echo e($isOpen ? 'ms-acc-panel--open' : ''); ?>" role="region" > <?php if(!empty($item['description'])): ?> <p class="ms-acc-desc"><?php echo e($item['description']); ?></p> <?php endif; ?> <ul class="ms-acc-grid mapa-do-site-link-list" role="list"> <?php $__currentLoopData = $links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($link['href'])): ?> <li class="ms-acc-link-item mapa-do-site-link-item" data-search="<?php echo e(Str::lower(($link['title'] ?? '') . ' ' . $link['href'])); ?>" > <a href="<?php echo e($link['href']); ?>" <?php if(!empty($link['external'])): ?> target="_blank" rel="noopener noreferrer" <?php endif; ?> title="<?php echo e($link['href']); ?>" > <?php echo e($link['title']); ?> <?php if(!empty($link['external'])): ?> <i class="fa-solid fa-arrow-up-right-from-square ms-ext-icon" aria-hidden="true"></i> <?php else: ?> <i class="fa-solid fa-chevron-right ms-int-icon" aria-hidden="true"></i> <?php endif; ?> </a> </li> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php if($showMoreLink): ?> <div class="ms-acc-more"> <a href="<?php echo e($item['moreUrl']); ?>" class="btn btn-outline-success btn-sm ms-acc-more-btn" target="_blank" rel="noopener noreferrer" > <?php echo e($item['moreLabel'] ?? __('Ver mais')); ?> <i class="fa-solid fa-arrow-up-right-from-square ms-ext-icon" aria-hidden="true"></i> </a> <p class="ms-acc-more-hint text-muted small mb-0"> <?php echo e(__('Exibindo as :limit mais recentes de :total no mapa.', [ 'limit' => number_format($displayedCount, 0, ',', '.'), 'total' => number_format($totalCount, 0, ',', '.'), ])); ?> </p> </div> <?php endif; ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php /**PATH /var/www/html/transparencia/resources/views/components/_mapaDoSiteAccordion.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings