]> BookStack Code Mirror - bookstack/blob - resources/views/exports/parts/import-item.blade.php
ZIP Imports: Added book content ordering to import preview
[bookstack] / resources / views / exports / parts / import-item.blade.php
1 {{--
2 $type - string
3 $model - object
4 --}}
5 <div class="import-item text-{{ $type }} mb-xs">
6     <p class="mb-none">@icon($type){{ $model->name }}</p>
7     <div class="ml-s">
8         <div class="text-muted">
9             @if($model->attachments ?? [])
10                 <span>@icon('attach'){{ count($model->attachments) }}</span>
11             @endif
12             @if($model->images ?? [])
13                 <span>@icon('image'){{ count($model->images) }}</span>
14             @endif
15             @if($model->tags ?? [])
16                 <span>@icon('tag'){{ count($model->tags) }}</span>
17             @endif
18         </div>
19         @if(method_exists($model, 'children'))
20             @foreach($model->children() as $child)
21                 @include('exports.parts.import-item', [
22                     'type' => ($child instanceof \BookStack\Exports\ZipExports\Models\ZipExportPage) ? 'page' : 'chapter',
23                     'model' => $child
24                 ])
25             @endforeach
26         @endif
27     </div>
28 </div>