@foreach ($histories as $index => $history)
{{ ++$index }}
|
{{ $history?->user?->name }}
|
{{ $history->plan_name }}
|
{{ currency($history->plan_price) }}
|
@if ($history->status == 'active')
@if ($history->expiration_date == 'lifetime')
{{ __('translate.Active') }}
@else
@if (date('Y-m-d') <= $history->expiration_date)
{{ __('translate.Active') }}
@else
{{ __('translate.Expired') }}
@endif
@endif
@elseif ($history->status == 'pending')
{{ __('translate.Pending') }}
@elseif ($history->status == 'expired')
{{ __('translate.Expired') }}
@endif
|
@if ($history->payment_status == 'success')
{{ __('translate.Success') }}
@else
{{ __('translate.Pending') }}
@endif
|
{{ $history->created_at->format('h:i A, d F Y') }}
|
{{ __('translate.Detail') }}
{{ __('translate.Delete') }}
|
@endforeach