@extends('layouts.simple') @section('body')

{{ trans('entities.import_continue') }}

{{ trans('entities.import_continue_desc') }}

@if(session()->has('import_errors'))

{{ trans('entities.import_errors_desc') }}

@foreach(session()->get('import_errors') ?? [] as $error)

{{ $error }}

@endforeach
@endif
@include('exports.parts.import-item', ['type' => $import->type, 'model' => $data])
{{ trans('entities.import_size', ['size' => $import->getSizeString()]) }}
{{ trans('entities.import_uploaded_at', ['relativeTime' => $import->created_at->diffForHumans()]) }}
@if($import->createdBy)
{{ trans('entities.import_uploaded_by') }} {{ $import->createdBy->name }}
@endif
{{ csrf_field() }} @if($import->type === 'page' || $import->type === 'chapter')

{{ trans('entities.import_location_desc') }}

@if($errors->has('parent'))
@include('form.errors', ['name' => 'parent'])
@endif @include('entities.selector', [ 'name' => 'parent', 'entityTypes' => $import->type === 'page' ? 'chapter,book' : 'book', 'entityPermission' => "{$import->type}-create", 'selectorSize' => 'compact small', ]) @endif
{{ trans('common.cancel') }}
{{ method_field('DELETE') }} {{ csrf_field() }}
@stop