@extends('user.layout') @php $selLang = \App\Models\Language::where([ ['code', \Illuminate\Support\Facades\Session::get('currentLangCode')], ])->first(); @endphp @if (!empty($selLang) && $selLang->rtl == 1) @section('styles') @endsection @endif @section('content')
{{ __('Donation_History') }}
@includeIf('user.partials.languages')
@if (count($donations) == 0)

{{ __('NO_DONATION_FOUND') }}

@else
@foreach ($donations as $key => $donation) @endforeach
{{ __('Transaction ID') }} {{ __('Amount') }} {{ __('Payment_Status') }} {{ __('Payment_Method') }} {{ __('Receipt') }} {{ __('Actions') }}
{{ convertUtf8(strlen($donation->transaction_id)) > 30 ? convertUtf8(substr($donation->transaction_id, 0, 30)) . '...' : convertUtf8($donation->transaction_id) }} {{ $donation->currency_symbol . ' ' . convertUtf8($donation->amount) }} @if ($donation->transaction_details !== 'offline') @if ($donation->status == 'pending') {{ __('Pending') }} @elseif ($donation->status == 'completed') {{ __('Success') }} @endif @else
@csrf
@endif
{{ convertUtf8($donation->payment_method) }} @if (!empty($donation->receipt)) {{ __('Show') }} @else {{ ' -' }} @endif @if (!empty($donation->name !== 'anonymous')) {{ __('Details') }} @else @endif
@csrf
@endif
@endsection @section('scripts') @endsection