{{-- $type - string $model - object --}}

@icon($type){{ $model->name }}

@if($model->attachments ?? []) @icon('attach'){{ count($model->attachments) }} @endif @if($model->images ?? []) @icon('image'){{ count($model->images) }} @endif @if($model->tags ?? []) @icon('tag'){{ count($model->tags) }} @endif
@if(method_exists($model, 'children')) @foreach($model->children() as $child) @include('exports.parts.import-item', [ 'type' => ($child instanceof \BookStack\Exports\ZipExports\Models\ZipExportPage) ? 'page' : 'chapter', 'model' => $child ]) @endforeach @endif