@extends('admin.layouts.index', ['header' => true, 'nav' => true, 'demo' => true]) @section('css') @endsection @php use App\Setting; use App\Plan; $settings = Setting::first(); $planDetails = Plan::where('plan_id', $transaction->plan_id)->first(); // For monthly if ($planDetails->validity >= 30 && $planDetails->validity <= 31) { $term = 'Monthly'; } else if($planDetails->validity >= 365 && $planDetails->validity <= 366) { $term = 'Yearly'; } else { $term = $planDetails->validity . ' days'; } @endphp @section('content')
{{ __('Date') }}: {{ date('M d, Y', strtotime($transaction->transaction_date)) }}
{{ __('Payment Terms') }}: {{ __($term) }}
| {{ __('Item') }} | {{ __('Quantity') }} | {{ __('Rate') }} | {{ __('Amount') }} |
|---|---|---|---|
| {{ __($planDetails->plan_name) }} - {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $planDetails->plan_price }}{{ $term == "9999 days" ? "" : "/" . $term }} | 1 | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $planDetails->plan_price }} | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $planDetails->plan_price }} |
| {{ __('Subtotal') }} | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['subtotal'] }} | ||
| {{ __($transaction->billing_details['tax_name']) }} ({{ $transaction->billing_details['tax_value'] }}%) | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['tax_amount'] }} | ||
| {{ __('Before Discount') }} | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['subtotal'] + $transaction->billing_details['tax_amount'] }} | ||
| {{ __('Applied Coupon') }} : {{ $transaction->billing_details['applied_coupon'] }} | - {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['discounted_price'] }} | ||
| {{ __('After Tax') }} | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['subtotal'] + $transaction->billing_details['tax_amount'] }} | ||
| {{ __('Total') }} | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['invoice_amount'] }} | ||
| {{ __('Amount Paid') }} | {{ $currencies->firstWhere('iso_code', $transaction->transaction_currency)->symbol ?? '' }}{{ $transaction->billing_details['invoice_amount'] }} | ||
{{ __('Notes') }}:
{{ __('Payment from ') }}{{ __($transaction->payment_gateway_name) }}
{{ __('Transaction ID: ') }} {{ $transaction->transaction_id }}
{{ __($config[29]->config_value ?? 'Thank you for your business!') }}