@extends('user.layout') @php // $selLang = \App\Language::where('code', request()->input('language'))->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