@php
    $paymentDetails = is_array($subscription->payment_details)
        ? $subscription->payment_details
        : json_decode($subscription->payment_details, true);
@endphp

@if (!empty($paymentDetails['original_image']))
    <a href="{{ getFileLink('thumbnail', $paymentDetails['original_image'], 'files', '500x500') }}" 
       download="payment-proof-{{ $subscription->id }}.jpg">
        <i class="las la-download"></i>
    </a>
@endif
