{{-- Sender profile rows of Avsändarprofiler (#2957 slice 6c, card #3020). Included by senderprofile/index only. Expects: $data (collection of SenderProfile), $sendercompany (the user's company). DESIGN.md data table, stacked labelled rows below 700 px. The old lock icons (colour and a tooltip only) became pills with a word; "Primär" and "Inte verifierad" keep their lang words. Row actions: - Redigera (senderprofile.edit), as before; visible button. - Ta bort (DELETE senderprofile.destroy) under "Mer", confirmed in the native dialog, only for profiles the old edit page let you delete: not the primary profile and not a nuhet.se address. --}} @php $pageRows = \App\Support\TablePagination::rows($data); @endphp @foreach ($pageRows as $profile) @php $edit = route('senderprofile.edit', $profile->id); $isPrimary = $sendercompany->main_sender_profile_id == $profile->id; $deletable = ! $isPrimary && ! ends_with($profile->email, 'nuhet.se'); @endphp @endforeach
{{ __('senderprofile.index.name') }} {{ __('senderprofile.index.email') }} {{ __('senderprofile.nh.index.columnStatus') }} {{ __('senderprofile.index.createddate') }} {{ __('senderprofile.nh.index.columnActions') }}
{{ $profile->name }} {{ $profile->email }} @if ($isPrimary) {{ __('senderprofile.index.mainsender') }} @endif @if ($profile->verified == 0) {{ __('senderprofile.index.inactive') }} @endif @if (is_null($profile->dkim_signtable_id)) {{ __('senderprofile.nh.dkimOff') }} @else {{ __('senderprofile.nh.dkimOn') }} @endif {{ $profile->created_at->diffForHumans() }} {{ __('senderprofile.index.edit') }} @if ($deletable)
@csrf @method('DELETE')
@endif
{{ trans_choice('senderprofile.nh.index.count', $data->count(), ['count' => formatNumber($data->count())]) }}
@include('senderprofile.partials.nh-confirm', [ 'dialogId' => 'nh-senderdelete-dialog', 'title' => __('senderprofile.nh.delete.title'), 'text' => __('senderprofile.nh.delete.text'), 'cancel' => __('senderprofile.nh.delete.cancel'), 'confirm' => __('senderprofile.nh.delete.confirm'), 'danger' => true, ])