@extends('layouts.app') @section('content')
@if(auth()->user()->plan_interval != 'prepaid' AND auth()->user()->plan_recurring_at < now())

{{__('You do not have a subscription yet')}}

{{__('Choose the plan that suits you and get started')}}

@endif

{{__('Payment history')}}

@foreach($listings as $listing)
{{$listing->payment_id}}
{{$listing->payment_method}}
@if($listing->status == 'completed')
{{__('Completed')}}
@elseif($listing->status == 'cancelled')
{{__('Cancelled')}}
@else
{{__('Pending')}}
@endif
{{$listing->created_at->translatedFormat('d M, Y')}}
@endforeach
@if(Auth::user()->plan_recurring_at)

{{__('Your subscription')}}

{{Auth::user()->plan->name}}

{{Auth::user()->plan->description}}
{{Auth::user()->plan->price}} {{Auth::user()->plan->currency}} / {{__(Auth::user()->plan_interval)}}
@if(Auth::user()->plan_recurring_at)
{{__('Subscription end').' : '}} {{__(Auth::user()->plan_recurring_at->translatedFormat('d M, Y'))}}
{{__('Cancel subscription')}}
@csrf
{{__('Cancel subscription')}}
@endif
@endif
@endsection