@extends('layouts.app') @section('page-title', __('Batch Emails')) @section('page-heading', __('Batch Emails')) @section('breadcrumbs') @stop @section('content')
@lang('Back')
@foreach($emails as $email) @endforeach
@lang('No') @lang('Recipient') @lang('Email Address') @lang('Subject') @lang('Message Preview') @lang('Attachments') @lang('Actions')
{{ $loop->iteration }} {{ $email->recipient }} {{ $email->recipient }} {{ $email->subject }} {!! \Illuminate\Support\Str::limit(strip_tags($email->message), 100) !!} @php $paths = is_array($email->attachment) ? $email->attachment : (json_decode($email->attachment, true) ?: []); @endphp @if(count($paths)) @foreach($paths as $p) {{ basename($p) }} @endforeach @else - @endif @lang('View') @lang('Download')
{{ $emails->links() }}
@endsection @section('scripts') @endsection