{{-- Name: sendout.partials.listReceivers Author: Arto Laine Created: 2016-01-11 sendout.partials.listReceivers displays an list for sendout.receivers --}} @extends('partials.box') @section($content_id) @if(isset($filter) && $filter == true)

{{ Lang::get('receiver.filterOn') }}:

{!! Form::input('hidden', 'sendout_id', $sendout_id) !!}
{{ Lang::get('sendout.receivers.status') }}
{!! Form::select('status', [ '' => Lang::get('sendout.form.showAll'), 0 => Lang::get('sendout.form.statusSent'), 2 => Lang::get('sendout.form.statusOpened') , 1 => Lang::get('sendout.form.statusBounced'), ], @Request::get('status'), ['class' => 'form-control']) !!}
{{ Lang::get('sendout.links') }}
{!! Form::select('link', array('' => Lang::get('sendout.form.showAll')) + $links->toArray(), @Request::get('link'), ['class' => 'form-control']) !!}

@endif @if(Auth::user()->hasPermission('receiverEdit'))
@csrf
@endif @if($cooldownSkips > 0)
{{ trans('automatic_replies.skipped_title', ['count' => $cooldownSkips]) }}

{{ trans('automatic_replies.no_replay') }}

@endif
{{ Lang::get('receiver.name') }}
{{ Lang::get('sendout.receivers.status') }}
{{-- List all notices --}} @if (!$data->isEmpty()) @foreach($data as $stat)
@if($stat->receiver) {{ $stat->receiver['email'] }} (Redigera) @if(!is_null($stat->receiver['hard_bounced_at'])) {{ Lang::get('receiver.hard_bounce') }} @elseif(!is_null($stat->receiver['inactivated_at'])) @endif @else {{ Lang::get('receiver.deleted') }} @endif
@if(!is_null($stat) && !is_null($stat->receiver) && $stat->receiver->isBlacklisted() == false) @if($cooldownSkippedReceiverIds->contains($stat->receiver_id)) {{ trans('automatic_replies.skipped') }} @elseif(is_null($stat->send_time)) @if(is_null($stat->receiver->consent)) {{ 'Inget skickades, saknar samtycke' }} @else @if(!is_null($stat->queue) && $stat->queue->penalty != 0) {{ trans('sendout.queuedRetry') }} @else {{ trans('sendout.queued') }} @endif @endif @elseif($stat->status == 1) {{ trans('sendout.bounced') }} @php $bounceEvent = $stat->events() ->where('type', StatEvent::_get('eventTypes')['bounce']) ->orderBy('id', 'desc') ->first(); $bounceReason = $bounceEvent ? \App\Models\StatEvent::bounceTypeName($bounceEvent->sub_type) : null; @endphp @if($bounceReason) ({{ trans('sendout.bounceReasons.' . $bounceReason) }}) @endif @elseif($stat->status == 2) {{ trans('sendout.opened') }} @else {{ trans('sendout.sent') }} @endif @else @endif
@endforeach @else

{{ Lang::get('receiver.noresults') }}

@endif
@if (!$data->isEmpty())
{!! $data->appends(Request::all())->render() !!}
@endif @stop