@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; @endphp

Total Rows

{{ $preview['total'] }}

Ready to Import

{{ $preview['valid'] }}

Rows with Errors

{{ $preview['invalid'] }}

@foreach($preview['rows'] as $row) @endforeach
Row-by-row validation preview
Line Preview Problems
{{ $row['line'] }} {{ \Illuminate\Support\Str::limit(collect($row['attributes'])->except('tenant_id')->map(fn ($v, $k) => "{$k}={$v}")->implode(', '), 90) }} @if($row['errors'])
    @foreach($row['errors'] as $error)
  • {{ $error }}
  • @endforeach
@else Ready @endif
@csrf @foreach($columnMap as $index => $field) @endforeach @if($preview['invalid'] > 0)

Rows with errors will be skipped.

@endif