@php $tz = config('app.display_timezone'); $tones = [ 'indigo' => 'bg-indigo-100 text-indigo-700', 'emerald' => 'bg-emerald-100 text-emerald-700', 'sky' => 'bg-sky-100 text-sky-700', 'cyan' => 'bg-cyan-100 text-cyan-700', 'violet' => 'bg-violet-100 text-violet-700', 'orange' => 'bg-orange-100 text-orange-700', ]; $statusColors = ['processing' => 'sky', 'completed' => 'emerald', 'failed' => 'rose', 'undone' => 'amber']; @endphp
@foreach ([__('Bring data in') => $imports, __('Take data out') => $exports] as $heading => $cards) @if ($cards !== [])

{{ $heading }}

@endif @endforeach @if ($canImportProfiles)

{{ __('Recent client imports') }}

{{ __('Every import is recorded: who, when, which file and what it did.') }}

@forelse ($recent as $batch) @empty @endforelse
{{ __('When') }} {{ __('File') }} {{ __('By') }} {{ __('Portfolio') }} {{ __('Created') }} {{ __('Linked') }} {{ __('Failed') }} {{ __('Status') }}
{{ $batch->created_at->timezone($tz)->format('j M Y') }} {{ $batch->file_name ?: __('Import') }} {{ $batch->user?->name ?? __('Not available') }} {{ $batch->portfolio?->name ?? '-' }} {{ number_format($batch->created_count) }} {{ number_format($batch->linked_count + $batch->updated_count) }} {{ number_format($batch->failed_count) }} {{ __(\App\Models\Crm\ImportBatch::STATUSES[$batch->status] ?? $batch->status) }}
@include('livewire.crm.partials.paginator', ['rows' => $recent])
@endif