feat: update profile page layout and filters

- Refactored the layout of the profile page for better readability
- Updated the filters in the payment section to include 'currentPubkey' and 'content' fields
- Made minor changes to the styling and text content
- Improved the handling of payment-related information
- Fixed some indentation issues for better code readability.
This commit is contained in:
fsociety
2024-09-30 15:59:48 +02:00
parent 5eb8307691
commit 7c6ce0eb7d

View File

@@ -105,7 +105,14 @@ $searchPaymentEvent = function () {
'tags' => $event->event->tags, 'tags' => $event->event->tags,
'created_at' => $event->event->created_at, 'created_at' => $event->event->created_at,
]) ])
->filter(fn($payment) => collect($payment['tags'])->firstWhere('0', 'e')[1] === $this->currentPleb->paymentEvents->first()->event_id) ->filter(fn($payment)
=> collect($payment['tags'])->firstWhere('0', 'p')[1] === $this->currentPubkey
&& json_decode(
collect($payment['tags'])->firstWhere('0', 'description')[1],
true,
512,
JSON_THROW_ON_ERROR,
)['content'] == date('Y'))
->values() ->values()
->toArray(); ->toArray();