@php $studentInfo = $invoice?->user->userable ?? null; $organization = $invoice?->course?->organization?->userable ?? null; $studentTranslations = parse_translation($studentInfo); $orgTranslations = parse_translation($organization); $course = $invoice->course; $instructors = $invoice?->course?->instructors ?? []; $general = get_theme_option('general') ?? []; $backendLogo = get_theme_option(key: 'backend_logo') ?? null; $invoiceLogo = isset($backendLogo['invoice_logo']) && fileExists('lms/theme-options', $backendLogo['invoice_logo']) == true ? asset("storage/lms/theme-options/{$backendLogo['invoice_logo']}") : asset('lms/assets/images/logo/logo.svg'); $backendSetting = get_theme_option(key: 'backend_general') ?? null; $currency = $backendSetting['currency'] ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); @endphp
| # | {{ translate('Item') }} | {{ translate('Type') }} | {{ translate('Price') }} | {{ translate('Discount Price') }} | {{ translate('Total') }} |
|---|---|---|---|---|---|
| {{ $invoice?->course?->id ?? ($invoice?->courseBundle?->id ?? '') }} | {{ $invoice?->course?->title ?? ($invoice?->courseBundle?->title ?? '') }} | {{ $invoice?->purchase_type }} | {{ $currencySymbol }}{{ $invoice?->price }} | {{ $currencySymbol }}{{ $invoice?->discount_price }} | @php $subTotal = dotZeroRemove($invoice?->discount_price) ? $invoice?->discount_price : $invoice?->price; @endphp @if (dotZeroRemove($invoice?->discount_price)) {{ $currencySymbol }}{{ $invoice?->discount_price }} @else {{ $currencySymbol }}{{ $invoice?->price }} @endif |
|
{{ translate('Sub Total') }}:
|
${{ $subTotal }}
|
|
{{ translate('Platform Fee') }}:
|
{{ $currencySymbol }}{{ $invoice?->platform_fee }}
|
|
{{ translate('Total') }}
|
{{ $currencySymbol }}{{ $subTotal + $invoice?->platform_fee }}
|