@foreach ($invoice->invoiceItems() as $item)
{{ $item->description }} |
|
{{ $item->total() }} |
@endforeach
@foreach ($invoice->subscriptions() as $subscription)
{{ $subscription->plan->nickname }} |
{{ $subscription->startDateAsCarbon()->formatLocalized('%B %e, %Y') }} -
{{ $subscription->endDateAsCarbon()->formatLocalized('%B %e, %Y') }}
|
{{ $subscription->total() }} |
@endforeach
@if ($invoice->hasDiscount())
@if ($invoice->discountIsPercentage())
{{ $invoice->coupon() }} ({{ $invoice->percentOff() }}% Off) |
@else
{{ $invoice->coupon() }} ({{ $invoice->amountOff() }} Off) |
@endif
|
-{{ $invoice->discount() }} |
@endif
@if ($invoice->tax_percent)
Tax ({{ $invoice->tax_percent }}%) |
|
{{ Laravel\Cashier\Cashier::formatAmount($invoice->tax) }} |
@endif
|
Total |
{{ $invoice->total() }} |