@if(count($users) > 0) @foreach ($users as $user)

Letter

Date: {{ $data->date_formatted }}
Year: {{ $data->year }}
{{ $user->name }}
{{ $user->address }}
{{ $user->suburb }} {{ $user->state }} {{ $user->postal_code }}
Member Number: {{ $user->member_number }}
Last Paid Year: {{ $user->last_paid_year }}
@php $signature = ""; $content = str_replace( array("#MEMBER","#MEMBERNUMBER","#SIGNATURE"), array($user->name,$user->member_number,$signature), $data->letter_content ); @endphp
{!! $content !!}

{{ env('CHURCH_ADDRESS') }} - {{ env('CHURCH_POBOX') }}
Tel: {{ env('CHURCH_TEL') }} Fax: {{ env('CHURCH_FAX') }} ABN: {{ env('CHURCH_ABN') }}
Email: {{ env('CHURCH_EMAIL') }}   Website: {{ env('WEBSITE') }}
@endforeach @else

User Not Found

@endif