@extends('layouts.landing') @section('title', 'Donation') @section('content')
@include('elements.settings-menu')
Donations
@php $transaction_no = 1 @endphp @if($transactions) @foreach($transactions as $transaction) @php $transaction_no++ @endphp @php $package = App\Models\Package::where('id', $transaction->payment_reference_id)->first(); $donation = App\Models\Donation::where('id', $transaction->payment_reference_id)->first(); @endphp @endforeach @else
No recent donation
@endif
s/n Payment Reference Amount Donation Payment Status Payment Date
{{$transaction_no}}{{$transaction->reference}} ₦{{number_format($transaction->amount, 2)}} @if($transaction->payment_type == 'subscription') {{$package->name}} @else {{$donation->title}} @endif {{$transaction->status}} {{\Carbon\Carbon::parse($transaction->created_at)->toFormattedDateString()}}
@endsection