mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-03 04:28:43 +00:00
28 lines
No EOL
998 B
PHP
28 lines
No EOL
998 B
PHP
{{--
|
|
$type - string
|
|
$model - object
|
|
--}}
|
|
<div class="import-item text-{{ $type }} mb-xs">
|
|
<p class="mb-none">@icon($type){{ $model->name }}</p>
|
|
<div class="ml-s">
|
|
<div class="text-muted">
|
|
@if($model->attachments ?? [])
|
|
<span>@icon('attach'){{ count($model->attachments) }}</span>
|
|
@endif
|
|
@if($model->images ?? [])
|
|
<span>@icon('image'){{ count($model->images) }}</span>
|
|
@endif
|
|
@if($model->tags ?? [])
|
|
<span>@icon('tag'){{ count($model->tags) }}</span>
|
|
@endif
|
|
</div>
|
|
@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
|
|
</div>
|
|
</div> |