@extends('admin.master_layout') @section('title')
{{ __('Subscription Plan') }} >> {{ __('Purchase History') }}
@endsection @section('body-content')
{{ __('Order ID') }} |
{{ $history->order_id }} |
{{ __('Transaction') }} |
{{ $history->transaction }} |
{{ __('User Name') }} |
{{ $history?->user?->name }} |
{{ __('Plan') }} |
{{ $history->plan_name }} |
{{ __('Description') }} |
{{ __($planData['short_description']) }} |
{{ __('Features') }} |
@php
$features = explode("\r\n", $planData['features']);
@endphp
|
{{ __('Expiration') }} |
{{ ucfirst($history->expiration) }} |
{{ __('Price') }} |
{{ currency($history->plan_price) }} |
{{ __('Expiration Date') }} |
@if ($history->expiration == 'lifetime') {{ __('Lifetime') }} @elseif ($history->status == 'pending') {{ __('N/A') }} @elseif (!empty($history->expiration_date)) {{ \Carbon\Carbon::parse($history->expiration_date)->format('Y-m-d') }} @else {{ __('N/A') }} @endif |
{{ __('Remaining day') }} |
@if ($history->status == 'active') @if ($history->expiration_date == 'lifetime') {{ __('Lifetime') }} @else @php $startDate = \Carbon\Carbon::parse($history->created_at)->startOfDay(); $endDate = \Carbon\Carbon::parse($history->expiration_date)->startOfDay(); $remaining = $startDate->diffInDays($endDate, false); @endphp @if ($remaining > 0) {{ $remaining }} {{ __('Days') }} @else {{ __('Expired') }} @endif @endif @elseif ($history->status == 'pending') {{ __('N/A') }} @else {{ __('Expired') }} @endif |
{{ __('Subscription Status') }} |
@if ($history->status == 'active')
@if ($history->expiration_date == 'lifetime')
{{ __('Active') }}
@else
@if (date('Y-m-d') <= $history->expiration_date)
{{ __('Active') }}
@else
{{ __('Expired') }}
@endif
@endif
@elseif ($history->status == 'pending')
{{ __('Pending') }}
@elseif ($history->status == 'expired')
{{ __('Expired') }}
@elseif ($history->status == 'inactive')
{{ __('Inactive') }}
@endif
|
{{ __('Payment Status') }} |
@if ($history->payment_status == 'success')
{{ __('Success') }}
@else
{{ __('Pending') }}
@endif
|
{{ __('Payment Method') }} |
{{ $history->payment_method }} |
{{ __('Transaction') }} |
{!! clean($history->transaction) !!} |
{{ __('Action') }} |
@if ($history->payment_status == 'pending') {{ __('Payment Approval') }} @endif {{ __('Delete') }} |
{{ __('Are you realy want to delete this item?') }}
{{ __('Are you realy want to approved this payment?') }}