{{--
Mottagare tab of an import (#5205; DESIGN.md list page with toolbar and data table).
ImportController@receivers passes $import (the grouped import), $data (its json), $rows
(paginator of receivers or null), $source ('recorded', 'list' for an older import whose list
was created for it, 'none'), $list, $search and $outcome (''/created/updated).
Toolbar: search on e-mail or phone and, for recorded imports, Alla/Nya/Uppdaterade.
The Telefon column shows only when a receiver in the result has a phone number ($hasPhone).
Imports queued with the record (receivers_logged) use it even when it is empty.
--}}
@extends('layouts.nuhet')
@php
$invalidCount = count($data['invalid'] ?? []);
$filtered = $search !== '' || $outcome !== '';
@endphp
@section('_pageTitle', __('import.show.pageTitle'))
@section('pagename', __('import.show.pageTitle'))
@section('page')
@include('import.partials.nh-head', ['lead' => __($source === 'list' ? 'import.nh.receiversLeadList' : 'import.nh.receiversLead'), 'invalidCount' => $invalidCount])
{{-- package_limit_reached counts the group's jobs stopped by the package (the grouped import query). --}}
@if ($source === 'recorded' && (int) ($import->package_limit_reached ?? 0) > 0)
| {{ __('import.nh.columnEmail') }} | @if ($hasPhone){{ __('import.nh.columnPhone') }} | @endif @if ($source === 'recorded'){{ __('import.nh.columnOutcome') }} | @endif{{ __('import.nh.columnActions') }} |
|---|---|---|---|
| {{ $receiver->email ?? $receiver->phone }} | @if ($hasPhone){{ $receiver->phone }} | @endif @if ($source === 'recorded')
@if ($receiver->import_outcome === 'created')
|
@endif