@php $layout = auth()->check() && auth()->user()->type == 'donar' ? 'frontend.donar.user_layouts' : 'frontend.member.user_layouts'; @endphp @extends($layout) @section('member-content')

Your Donaition

@if (session('success')) @endif @if (session('error')) @endif
{{-- Desktop: keep table --}} @forelse ($items as $donation) @empty @endforelse
# Invoice No Amount Payment Type Account Info Transaction No Status Action
{{ $loop->iteration }} {{ $donation->invoice_no }} {{ number_format($donation->donation_amount, 2) }} {{ ucfirst(str_replace('_', ' ', $donation->payment_type)) }} @if ($donation->account) @if ($donation->account->gateway_type == 'Mobile Bank') {{ $donation->account->company_name }}
{{ $donation->account->mobile_number }} @elseif ($donation->account->gateway_type == 'Bank') {{ $donation->account->bank_name }}
Acc: {{ $donation->account->account_number }} @endif @else N/A @endif
{{ $donation->transaction_no ?? '-' }} {{ ucfirst($donation->payment_status) }}
No donation records found.
{{-- Mobile stacked cards --}}
@forelse ($items as $donation)
#{{ $donation->invoice_no }}
{{ ucfirst($donation->payment_status) }}
{{ number_format($donation->donation_amount, 2) }}
Payment Type: {{ ucfirst(str_replace('_', ' ', $donation->payment_type)) }}
Account: @if ($donation->account) @if ($donation->account->gateway_type == 'Mobile Bank') {{ $donation->account->company_name }} ({{ $donation->account->mobile_number }}) @elseif ($donation->account->gateway_type == 'Bank') {{ $donation->account->bank_name }} (Acc: {{ $donation->account->account_number }}) @endif @else N/A @endif
Transaction: {{ $donation->transaction_no ?? '-' }}
@empty
No donation records found.
@endforelse
@endsection