{{__('admin.Purchase History')}}

{{__('admin.Seller')}} {{ $history->provider->name }}
{{__('admin.Plan')}} {{ $history->plan_name }}
{{__('admin.Expiration')}} {{ $history->expiration }}
{{__('admin.Expirated Date')}} {{ $history->expiration_date }}
{{__('admin.Remaining day')}} @if ($history->status == 'active') @if ($history->expiration_date == 'lifetime') {{__('admin.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 }} {{__('admin.Days')}} @else {{__('admin.Expired')}} @endif @endif @else {{__('admin.Expired')}} @endif
{{__('admin.Number of Product')}} {{ $history->maximum_service }}
{{__('admin.Payment Method')}} {{ $history->payment_method }}
{{__('admin.Transaction')}} {!! nl2br($history->transaction) !!}
{{__('admin.Status')}} @if ($history->status == 'active')
{{__('admin.Active')}}
@elseif ($history->status == 'pending')
{{__('admin.Pending')}}
@elseif ($history->status == 'expired')
{{__('admin.Expired')}}
@endif
{{__('admin.Payment')}} @if ($history->payment_status == 'success')
{{__('admin.Success')}}
@else
{{__('admin.Pending')}}
@endif
{{__('admin.Delete')}} @if ($history->payment_status == 'pending') {{__('admin.Payment approved')}} @endif