@php $count = 0; $pageCount = 0; $lastSize = 0; @endphp @if($orders && count($orders) > 0) @foreach($orders->sortBy("DeliveryPostcode", 1) as $order) @php $carbon = new Carbon\Carbon($order->created_at); $pageCount = ($order->SelfIsolating) ? $pageCount + 3 : $pageCount + 2; @endphp @php $count = $count + 1; @endphp @if($pageCount >= 5) @php $pageCount = 0; @endphp $lastSize = ($order->SelfIsolating) ? 3 : 2; @endif @endforeach @endif

Orders from: {{$date['start']->format('l jS F Y')}} to {{$date['end']->format('l jS F Y')}}

 
@if($order->SelfIsolating) @endif
CUSTOMER IS SELF ISOLATING
#{{$order->id}}
@if($order->IsMinOnline == '1') @else @endif
{{$order->DeliveryFirstName}} {{$order->DeliveryLastName}}
{{$order->DeliveryMobileNumber}}
@if($order->DeliveryNotes)
Notes: {{$order->DeliveryNotes}}
@endif
@if($order->DeliveryAddressLine1)
{{$order->DeliveryAddressLine1}},
@endif @if($order->DeliveryAddressLine2)
{{$order->DeliveryAddressLine2}},
@endif @if($order->DeliveryAddressLine3)
{{$order->DeliveryAddressLine3}},
@endif @if($order->DeliveryCity)
{{$order->DeliveryCity}},
@endif @if($order->DeliveryCounty)
{{$order->DeliveryCounty}},
@endif @if($order->DeliveryPostcode)
{{$order->DeliveryPostcode}}
@endif