{{ __('Data Import') }} {{-- What to take, and from when --}}
@foreach ($choices as $key => $meta) @endforeach
{{ __('Preview') }} {{ __('Reading…') }} @if ($bundle) {{ __('Download') }} @endif
@if (! $bundle) @else {{-- What is in the file --}}
@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach
{{-- What the file says about itself, and what it left behind --}}

{{ __('This file says it came from :workspace, covering :from to :to.', [ 'workspace' => $bundle->workspace(), 'from' => \Illuminate\Support\Carbon::parse($bundle->window()['from'])->format('j M Y'), 'to' => \Illuminate\Support\Carbon::parse($bundle->window()['to'])->format('j M Y'), ]) }} {{ __('Customers, products and categories travel as names, so the documents land on the receiving workspace\'s own records rather than on whatever happens to hold the same id there.') }}

{{ __('The money is posted again, not copied.') }} {{ __('An invoice arrives owing its full value and its payments are what settle it, receipted again into an account the receiving workspace owns. What stays behind is the movement behind each one, because posting the payment raises it there, and carrying both would count the same money twice.') }}

@foreach ($bundle->manifest['warnings'] ?? [] as $warning)

{{ $warning }}

@endforeach
{{-- The documents themselves --}}

{{ __('In the bundle') }}

{{ __('Everything the file would carry, newest first') }}

{{ __('Download bundle') }}
@forelse ($documents as $row) @empty @endforelse
{{ __('Document') }} {{ __('Raised') }} {{ __('Customer') }} {{ __('Lines') }} {{ __('Total') }}
{{ $row['label'] }} {{ $row['number'] }} @if ($row['pulled_in']) {{ __('Pulled in') }} @endif
{{ $row['issued_at']?->format('j M Y') ?? '—' }} {{ $row['customer'] ?? __('—') }} {{ $row['lines'] }} {{ $row['currency'] }} {{ number_format($row['total'], 2) }}
@endif