@php $steps = [ 1 => ['label' => __('Upload'), 'icon' => 'arrow-up-tray'], 2 => ['label' => __('Map columns'), 'icon' => 'table-cells'], 3 => ['label' => __('Assign'), 'icon' => 'user-group'], 4 => ['label' => __('Review'), 'icon' => 'check-circle'], 5 => ['label' => __('Result'), 'icon' => 'flag'], ]; $classColors = ['new' => 'emerald', 'match' => 'sky', 'possible' => 'amber', 'error' => 'rose']; $classCounts = $batch?->options['classes'] ?? []; $select = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; @endphp
{{ __('Load organisations and their contacts from a spreadsheet into a portfolio. Nothing enters the pipeline until someone pulls it from the work queue.') }}
{{ __('The sheet must be shared as "Anyone with the link can view".') }}
{{ __('Starting from scratch? The template has every column the import understands, with example rows. One row can hold an organisation and one of its contacts; repeat the organisation for more contacts.') }}
{{ __('This file was imported on :date by :name. Rows already on record will show as matches, so nothing is created twice.', [ 'date' => $previous->created_at->timezone(config('app.display_timezone'))->format('j M Y'), 'name' => $previous->user?->name ?? __('someone'), ]) }} {{ __('See that import') }}
| {{ $cell }} | @endforeach
{{ __('There is no open list you may add to.') }}
@endif{{ __('By sector and by tier keep each group with one person. The number beside each name is how many organisations they would receive.') }}
{{ __('Nothing is merged. For each match, link the existing record, fill in what it is missing, or skip the row.') }}
| {{ __('Row') }} | {{ __('Organisation') }} | {{ __('Contact') }} | {{ __('Class') }} | {{ __('What to do') }} |
|---|---|---|---|---|
| {{ $row['row'] }} |
{{ $row['org']['name'] ?? __('No name') }}
{{ collect([$row['org']['website'] ?? null, $row['org']['email'] ?? null, $row['org']['phone'] ?? null])->filter()->join(' · ') }} |
{{ $row['contact']['name'] ?? '-' }}
@if (! empty($row['contact']['email']))
{{ $row['contact']['email'] }} @endif |
|
@if ($row['class'] === 'error')
{{ implode(' ', $row['errors']) }}
@elseif ($row['same_as'] !== null)
{{ __('Same organisation as an earlier row: its contact is added there.') }}
@elseif ($row['class'] === 'new')
{{ __('Create a new prospect') }}
@elseif ($decidable)
@if (in_array($choice['action'] ?? '', ['link', 'update'], true) && count($row['matches']) > 1)
@endif
@endif
|
|
|
||||