Sponsor Ads Revenue – Transaction Detail

{{ $businessName }}

{{ $businessName }}
Sponsor Ads Revenue Log
@if($date_from || $date_to) Period: {{ $date_from ?: 'All time' }} — {{ $date_to ?: 'Present' }} @else Period: All time @endif Generated: {{ date('Y-m-d H:i') }} Total Revenue: ${{ number_format($totalRevenue, 2) }}
@foreach($records as $i => $row) @php $isExpired = $row->subscription_expire_date && \Carbon\Carbon::parse($row->subscription_expire_date)->isPast(); $expireClass = $isExpired ? 'expired' : 'active'; $expireText = $row->subscription_expire_date ? \Carbon\Carbon::parse($row->subscription_expire_date)->format('Y-m-d') : 'N/A'; @endphp @endforeach
# Date & Time Ad Type Amount ($) Subscription Expires
{{ $i + 1 }} {{ \Carbon\Carbon::parse($row->transaction_date)->format('Y-m-d H:i') }} {{ ucfirst($row->ad_type) }} {{ number_format($row->amount, 2) }} {{ $expireText }}
Total ${{ number_format($totalRevenue, 2) }}