@props(['recordName', 'records', 'route', 'routeParams' => [], 'hasActive' => true, 'hasFavorite' => false, 'showCoverImage' => false])
    @foreach ($records as $item)
  1. @if ($showCoverImage) {{ $item->title ?? $item->name }} @endif {{ $item->title ?? $item->name }} @if ($item->page_type) {{ admin_trans('page.page_type_options.' . $item->page_type->name) }} @endif
    @if ($hasFavorite) @endif @if ($hasActive) @endif
    @if (count($item->children) > 0) @endif
  2. @endforeach