@if(sizeof($payments) !== 0)
My Payments
# |
Payment ID |
Price (USD) |
@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value)
Invoice Number |
Status |
@endif
Paid At |
Offer |
@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value)
Download Invoice |
@endif
@foreach($payments as $payment)
@php
if (Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) {
$invoice = Auth::user()->findInvoice($payment->invoice_id);
}
@endphp
{{ $loop->index+1 }} |
{{ $payment->name }} |
@currency($payment->stripe_price) |
@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value)
{{ $invoice->number }} |
{{ ucfirst($invoice->status) }} |
@endif
{{ $payment->created_at->isoFormat('DD-MMM-Y HH:mm') }} |
|
@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value)
|
@endif
@endforeach()
@else
You have no payments at the moment
@endif