@extends('admin.master_layout') @section('title')
{{ __('Subscription Plan') }} >> {{ __('Purchase History') }}
@endsection @section('body-content')| {{ __('Serial') }} | {{ __('User') }} | {{ __('Plan') }} | {{ __('Price') }} | {{ __('Subscription Status') }} | {{ __('Payment') }} | {{ __('Payment Method') }} | {{ __('Purchase Date') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|---|---|
{{ ++$index }} |
{{ $history?->user?->name }} |
{{ $history->plan_name }} |
{{ currency($history->plan_price) }} |
@if ($history->status == 'active')
@if ($history->expiration == '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') }}
@endif
|
@if ($history->payment_status == 'success')
{{ __('Paid') }}
@else
{{ __('Unpaid') }}
@endif
|
{{ $history->payment_method }} |
{{ $history->created_at->format('g:i A, d M Y') }} |
{{ __('Detail') }} {{ __('Delete') }} |
{{ __('Are you realy want to delete this item?') }}