@php $logoPath = resource_path('/images/logo_image.webp'); $logoImage = 'data:image/webp;base64,' . base64_encode(file_get_contents($logoPath)); // Check if custom org image exists in storage $orgImage = null; if (!empty($org_image)) { // Check in organization_image folder first $orgPath = storage_path('app/public/organization_image/' . $org_image); if (file_exists($orgPath)) { $orgImage = 'data:image/webp;base64,' . base64_encode(file_get_contents($orgPath)); } else { // Fallback to profile_image folder $profilePath = storage_path('app/public/profile_image/' . $org_image); if (file_exists($profilePath)) { $orgImage = 'data:image/webp;base64,' . base64_encode(file_get_contents($profilePath)); } } } @endphp
DONATION RECEIPT
RECEIPT NUMBER: {{ $receipt_number ?? 'N/A' }}
Issued By:
On Behalf Of:
@if ($orgImage) Organization Image @else
{{ $Org_name ?: $fundraiser_name ?? 'N/A' }}
@endif @if (!empty($org_nonprofit_tax_id))
Registered 501(c)(3) Non-Profit Organization
EIN: {{ $org_nonprofit_tax_id }}
@endif
Billed To:
{{ $first_name ?? '' }} {{ $last_name ?? '' }}
{{ $email ?? '' }}

From:
FundMeSmart
fundmesmart.com
SUMMARY OF YOUR DONATION
Title/Description
{{ $Org_name ? 'Organization Name' : 'Fundraiser Name' }} {{ $Org_name ?: $fundraiser_name ?? 'N/A' }}
Donor Name {{ $first_name ?? '' }} {{ $last_name ?? '' }}
Amount ${{ $amount ?? '0' }}
Donation Interval {{ ucfirst($donation_interval ?? 'N/A') }}
Donation Period @if ($start_date && $end_date) {{ $start_date }} – {{ $end_date }} @elseif ($start_date) {{ $start_date }} @else - @endif
Date of Donation {{ !empty($start_date) ? $start_date : '-' }}
Time of Donation {{ $donation_time ?? \Carbon\Carbon::now()->format('H:i:s') }}
{{ $url }}
info@fundmesmart.com