{{ __('translate.Plan') }} |
{{ $history->plan_name }} |
{{ __('translate.Price') }} |
{{ currency($history->plan_price) }} |
{{ __('translate.Maximum Car') }} |
{{ $history->max_car }} |
{{ __('translate.Featured Car') }} |
{{ $history->featured_car }} |
{{ __('translate.Expiration') }} |
{{ $history->expiration }} |
{{ __('translate.Expirated Date') }} |
{{ $history->expiration_date }} |
{{ __('translate.Remaining day') }} |
@if ($history->status == 'active')
@if ($history->expiration_date == 'lifetime')
{{ __('translate.Lifetime') }}
@else
@php
$date1 = new DateTime(date('Y-m-d'));
$date2 = new DateTime($history->expiration_date);
$interval = $date1->diff($date2);
$remaining = $interval->days;
@endphp
@if ($remaining > 0)
{{ $remaining }} {{ __('translate.Days') }}
@else
{{ __('translate.Expired') }}
@endif
@endif
@else
{{ __('translate.Expired') }}
@endif
|
{{ __('translate.Payment Method') }} |
{{ $history->payment_method }} |
{{ __('translate.Transaction') }} |
{!! clean(nl2br($history->transaction)) !!} |
{{ __('translate.Plan Status') }} |
@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
|
{{ __('translate.Payment') }}
|
@if ($history->payment_status == 'success')
{{ __('translate.Success') }}
@else
{{ __('translate.Pending') }}
@endif
|