@extends('front.layouts.app-auth') @push('page_css') @endpush @section('content')
@include('front.components.breadcrumbs', [ 'currentPage' => 'Transactions', 'breadcrumbs' => [ ['label' => 'Campaigns', 'url' => route('profile.campaigns')] ] ])

{{ $campaign->title ?? 'Campaign' }} Transactions

View all payment transactions for this campaign.

{!! \App\Helpers\Helper::price($totalRaised ?? 0) !!}
Total Raised
From {{$totalContributors }} contributors
{!! \App\Helpers\Helper::price($campaign->fund_target ?? 0) !!}
Campaign Goal
Funding target
{{ number_format($totalProgress, 0) }}%
Progress
{{ number_format($totalProgress, 1) }}% of goal reached
{{ count($transactions ?? []) }}
Total Contributions
Number of transactions

Transaction History

@forelse($transactions as $transaction) @php // Convert UTC to user's local timezone $dateTimeFormatted = $transaction->transaction_date ? \App\Helpers\Helper::convertToLocalTime($transaction->transaction_date) : 'N/A'; // Payment method $paymentMethodLabel = $transaction->payment_method_label ?? 'N/A'; // Reference number // $referenceNumber = $transaction->vendorPayoutTransaction->transaction_id ?? $transaction->reference_number ?? 'N/A'; $referenceNumber = $transaction->reference_number ?? 'N/A'; // Balance after $balanceAfter = \App\Models\Users\WalletTransaction::calculateTransactionBalanceCampaign($transaction, $campaign->fund_target); @endphp @empty @endforelse
Date Contributor Payment Method Reference Rem. Goal Amount Admin Fees Amount Receivable Status Action
{{ $dateTimeFormatted }}
{{ $transaction->contributor_name ?? 'N/A' }}
{{ $paymentMethodLabel }}
@if($referenceNumber && $referenceNumber !== 'N/A')
{{ \Illuminate\Support\Str::limit($referenceNumber, 20) }}
@else @endif
{!! \App\Helpers\Helper::price($balanceAfter ?? 0, 2) !!}
{{ $transaction->formatted_amount }}
${{ number_format($transaction->admin_fees, 2) }}
{!! \App\Helpers\Helper::price($transaction->vendor_payout_amount ?? 0, 2) !!}
{{ ($transaction->vendor_payout_transaction_id) ? 'Transfered to Bank' : $transaction->status_label['name'] }} @php $vendorPayout = $transaction->vendorPayoutTransaction ?? null; @endphp @if($transaction->vendor_payout_transaction_id && $vendorPayout) @else @endif
No transactions found
No contributions have been made to this campaign yet.
@if(isset($transactions) && method_exists($transactions, 'hasPages') && $transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection @push('page_script') @endpush