@extends('admin.master_layout') @section('title')
{{ __('translate.Subscription Plan') }} >> {{ __('translate.Purchase History') }}
@endsection @section('body-content')
{{ __('translate.User Name') }} |
{{ $history?->user?->name }} |
{{ __('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.Expiration 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.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 Status') }} |
@if ($history->payment_status == 'success')
{{ __('translate.Success') }}
@else
{{ __('translate.Pending') }}
@endif
|
{{ __('translate.Payment Method') }} |
{{ $history->payment_method }} |
{{ __('translate.Transaction') }} |
{!! clean($history->transaction) !!} |
{{ __('translate.Action') }} |
@if ($history->payment_status == 'pending') {{ __('translate.Payment Approval') }} @endif {{ __('translate.Delete') }} |
{{ __('translate.Are you realy want to delete this item?') }}
{{ __('translate.Are you realy want to approved this payment?') }}