@php $filecount = $filelist->count(); $filesperPage = 20; $pagesmax = ceil($filecount/$filesperPage) + 1; $currentPage = 1; @endphp @foreach($mailRecipients as $recipient) @endforeach @if (!empty($ccRecipients)) @foreach($ccRecipients as $recipient) @endforeach @endif

Data accompanying note
#{{$forward->hash}}

{{date_format($forward->created_at,"Y-m-d, H:i")}}
Page {{$currentPage}} / {{$pagesmax}}
Sender:
{{$sender->company}}
{{$sender->name}} {{$sender->firstname}}
{{$sender->email}}
Recipient:
{{$recipient->company}}
{{$recipient->name}} {{$recipient->firstname}}
{{$recipient->email}}
cc:
{{$recipient->company}}
{{$recipient->name}} {{$recipient->firstname}}
{{$recipient->email}}
Subject: {{$forward->subject}}
{!! $forward->description !!}
@php $currentPage++; @endphp

Data accompanying note
#{{$forward->hash}}

{{date_format($forward->created_at,"Y-m-d, H:i")}}
Page {{$currentPage}} / {{$pagesmax}}
Files:
@for ($i=0;$i < $filecount; $i++) @if($i>0 && $i%$filesperPage == 0) @php $currentPage++; @endphp

Data accompanying note
#{{$forward->hash}}

{{date_format($forward->created_at,"Y-m-d, H:i")}}
Page {{$currentPage}} / {{$pagesmax}}
@endif
{{$filelist[$i]->filename . '.' . $filelist[$i]->extension}}
@endfor