@extends('admin.layouts.app') {{-- CUstom CSS --}} @section('custom-css') @endsection @php use App\Models\Setting; use App\Models\Plan; $settings = Setting::first(); $planDetails = Plan::where('id', $transaction->plan_id)->first(); // For monthly if ($planDetails->validity >= 30 && $planDetails->validity <= 31) { $term = 'Monthly'; } elseif ($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->name) }} - {{ currency($planDetails->price) }}/{{ $term }} | 1 | {{ currency($planDetails->price) }} | {{ currency($planDetails->price) }} |
| {{ __('Subtotal') }} | {{ currency($transaction->billing_details['subtotal']) }} | ||
| {{ __($transaction->billing_details['tax_name']) }} ({{ $transaction->billing_details['tax_value'] }}%) | {{ currency($transaction->billing_details['tax_amount']) }} | ||
| {{ __('Applied Coupon') }} : {{ $transaction->billing_details['applied_coupon'] }} | - {{ currency($transaction->billing_details['discounted_price']) }} | ||
| {{ __('Total') }} | {{ currency($transaction->billing_details['invoice_amount']) }} | ||
| {{ __('Amount Paid') }} | {{ currency($transaction->billing_details['invoice_amount']) }} | ||
{{ __('Notes') }}:
{{ __('Payment from ' . $transaction->payment_gateway_name) }}
{{ __('Transaction ID: ') }}
{{ $transaction->transaction_id != '' ? $transaction->transaction_id : '-' }}
{{ __($config[29]->config_value ?? 'Thank you for your business!') }}