@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'); @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 }} | ${{ $invoice?->price }} | ${{ $invoice?->discount_price }} | @php $subTotal = dotZeroRemove($invoice?->discount_price) ? $invoice?->discount_price : $invoice?->price; @endphp @if (dotZeroRemove($invoice?->discount_price)) ${{ $invoice?->discount_price }} @else ${{ $invoice?->price }} @endif |
{{ translate('Sub Total') }}:
|
${{ $subTotal }}
|
{{ translate('Platform Fee') }}:
|
${{ $invoice?->platform_fee }}
|
{{ translate('Total') }}
|
${{ $subTotal + $invoice?->platform_fee }}
|