@extends('layouts.app') @section('content')
@if(sizeof($payments) !== 0)

My Payments

@if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @endif @if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @endif @foreach($payments as $payment) @php if (Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) { $invoice = Auth::user()->findInvoice($payment->invoice_id); } @endphp @if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @endif @if(Auth::user()->type === \App\Enum\UserType::ORGANIZER->value) @endif @endforeach()
# Payment ID Price (USD)Invoice Number StatusPaid At OfferDownload Invoice
{{ $loop->index+1 }} {{ $payment->name }} @currency($payment->stripe_price){{ $invoice->number }} {{ ucfirst($invoice->status) }}{{ $payment->created_at->isoFormat('DD-MMM-Y HH:mm') }}
@else

You have no payments at the moment

@endif
@endsection