@foreach($subscribers as $subscribed)
@php $plan = null; if($subscribed->stripe_plan){$plan = $subscribed->paymentPlan($subscribed->stripe_plan);} @endphp
{{$loop->iteration}} |
@if($subscribed->user && $subscribed->user->name)
{{$subscribed->user->name }} |
@else
|
@endif
@if($subscribed->user)
{{$subscribed->user->email}} |
@else
|
@endif
@if($plan)
{{$plan->name}} |
@else
|
@endif
{{$subscribed->stripe_status}}
| {{$subscribed->ends_at }} |
{{$subscribed->quantity}} |
@if($plan)
@if(!$plan->vat)
£ {{ ($plan->full_price * $subscribed->quantity)}} |
@else
|
@endif
@else
|
@endif
@if($plan)
@if($plan->vat)
£ {{($plan->full_price * $subscribed->quantity)}} |
@else
/ |
@endif
@else
|
@endif
{{ Carbon\Carbon::parse($subscribed->created_at)->format('d M Y') }} |
@endforeach