@if(count($users) > 0) @foreach ($users as $user) @if ($data->letter == 1)

Letter

Date: {{ $data->date_formatted }}
{{ $data->name }} {{ $data->year }}
@if ($data->add_member_detail == 'Yes')

Dear: {{ $user->name }}

{{ $user->address }}
{{ $user->suburb }} {{ $user->state }} {{ $user->postal_code }}

Member Number: {{ $user->member_number }}

@endif
@php if ($data->has_signature == 'Yes') { $signature = ""; } else { $signature = ''; } @endphp
{!! str_replace("#SIGNATURE", $signature, $data->letter_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') }}
@endif @if ($data->proxy_letter == 1)

Proxy Appointment Letter

@if ($data->add_member_detail == 'Yes')

Dear: {{ $user->name }}

{{ $user->address }}
{{ $user->suburb }} {{ $user->state }} {{ $user->postal_code }}

Member Number: {{ $user->member_number }}

@endif
{!! $data->proxy_appointment_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') }}
@endif @endforeach @else

User Not Found

@endif