@extends('themes.basic.user.layouts.app')
@section('section', translate('Transactions'))
@section('title', translate('Invoice #:number', ['number' => $trx->id]))
@section('back', route('user.transactions.index'))
@section('breadcrumbs', Breadcrumbs::render('user.transactions.show', $trx))
@section('container', 'dashboard-container-sm')
@section('content')
-
{{ translate('Transaction ID') }}
#{{ $trx->id }}
-
{{ translate('Transaction Date') }}
{{ dateFormat($trx->created_at) }}
-
{{ translate('Transaction Status') }}
@if ($trx->isPending())
{{ $trx->getStatusName() }}
@elseif($trx->isPaid())
{{ $trx->getStatusName() }}
@elseif($trx->isCancelled())
{{ $trx->getStatusName() }}
@endif
-
{{ translate('Transaction Type') }}
{{ $trx->getTypeName() }}
@if ($trx->isCancelled() && $trx->cancellation_reason)
-
{{ translate('Cancellation reason') }}
{{ $trx->cancellation_reason }}
@endif
-
{{ translate('Payment Method') }}
{{ $trx->paymentGateway->name }}
@if ($trx->isTypePurchase())
@foreach ($trx->trxItems as $trxItem)
@php
$item = $trxItem->item;
$licenseType = $trxItem->isLicenseTypeRegular()
? translate('Regular License')
: translate('Extended License');
@endphp
-
{{ $item->name }}
({{ $licenseType }})
({{ getAmount($trxItem->price) . ' x ' . $trxItem->quantity }})
{{ getAmount($trxItem->total) }}
@if ($trxItem->support)
{{ $trxItem->support->title }}
@if ($trxItem->support->total)
({{ getAmount($trxItem->support->price) . ' x ' . $trxItem->support->quantity }})
@endif
{{ getAmount($trxItem->support->total) }}
@endif
@endforeach
@elseif($trx->isTypeSupportPurchase() || $trx->isTypeSupportExtend())
-
{{ $trx->support->title }}
@if ($trx->support->total)
({{ getAmount($trx->support->price) . ' x ' . $trx->support->quantity }})
@endif
{{ getAmount($trx->support->total) }}
@elseif($trx->isTypeDeposit())
-
{{ translate('Deposit to account balance') }}
{{ getAmount($trx->amount) }}
@elseif($trx->isTypeSubscription())
-
{{ translate('Subscription - :plan_name (:plan_interval)', [
'plan_name' => $trx->plan->name,
'plan_interval' => $trx->plan->getIntervalName(),
]) }}
{{ getAmount($trx->amount) }}
@endif
@if ($trx->hasFees() || $trx->hasTax())
-
{{ translate('SubTotal') }}
{{ getAmount($trx->amount) }}
@if ($trx->hasTax())
-
{{ translate(':tax_name (:tax_rate%)', [
'tax_name' => $trx->tax->name,
'tax_rate' => $trx->tax->rate,
]) }}
{{ getAmount($trx->tax->amount) }}
@endif
@if ($trx->hasFees())
-
{{ translate(':payment_gateway Fees (:percentage%)', [
'payment_gateway' => $trx->paymentGateway->name,
'percentage' => $trx->paymentGateway->fees,
]) }}
{{ getAmount($trx->fees) }}
@endif
@endif
-
{{ translate('Total') }}
{{ getAmount($trx->total) }}
@endsection