@extends('app') @section('content') @include('layout.admin_sidebar')
| # | Transaction ID | Pay it Forward™ | Kick it Back™ | Subscription | Transaction Fee | Transaction Status | Date |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $payment->transaction_id ?? 'N/A' }} | ${{ number_format($payment->pay_it_forward, 2, '.', ',') ?: '0.00' }} | {{ '$' . $payment->kick_it_back }} | {{-- Show the subscription amount only for the first entry of each month --}}@php // Format the created_at date to get the month and year $currentMonth = \Carbon\Carbon::parse($payment->created_at)->format('Y-m'); @endphp @if ($lastShownMonth !== $currentMonth) {{$payment->amount }} {{-- Show the subscription amount --}} @php $lastShownMonth = $currentMonth; @endphp @else - @endif | hihkkm | {{ \Carbon\Carbon::parse($payment->payment_created_at)->format('F-d-Y') ?? now()->format('F-d-Y') }} |