@if (!empty($oldPayment->status !== 'confirmed'))
{!! Form::open(['route' => ['payments.update', $oldPayment->id], 'method' => 'patch', 'style'=>'display:inline']) !!}
@if(Auth::user()->admin == 1 || ($oldPayment->content && Auth::user()->id == $oldPayment->content['user_id']))
{!! Form::button('
Approve',
['type' => 'submit', 'class' => 'btn btn-success btn-xs',
'onclick' => "return confirm('Are you sure you want to APPROVE this?')"]) !!}
@endif
{!! Form::close() !!}
@endif
Update
{!! Form::open(['route' => ['payments.destroy', $oldPayment->id], 'method' => 'delete', 'style'=>'display:inline']) !!}
@if(Auth::user()->admin == 1)
{!! Form::button('
Delete',
['type' => 'submit', 'class' => 'btn btn-danger btn-xs',
'onclick' => "return confirm('Are you sure you want to delete this?')"]) !!}
@endif
{!! Form::close() !!}
@if(Auth::user()->admin == 1)
@if($oldPayment->reminded)
Reminded
@else
Remind
@endif
@endif
Subscription: {{ optional($userSubscription->tier)->name ?? 'All-Access' }}
{{ strtoupper($userSubscription->billing_cycle ?? 'monthly') }} plan |
Started {{ $userSubscription->created_at->diffForHumans() }} |
Payment not completed
@if(Auth::user()->admin == 1 && !empty($userSubscription->user))
{{$userSubscription->user->email }}
@endif
@endif
@endforeach