@php use Carbon\Carbon; use App\Http\Helpers\Helper; @endphp @extends("frontend.main") @section("content")
| # | Dịch vụ | Thời hạn | Số tiền |
|---|---|---|---|
| {{ $key + 1 }} | {{ $item->description }} | {!! Helper::ViewBillingCycle($item->billing) !!} | {{ number_format($item->amount * Helper::BillingFormat($item->billing),0,',','.') }} đ |
| Giảm giá | {{ number_format($invoice->Order->discount_value,0,',','.') }} đ @php( $discount = $invoice->Order->discount_value) | ||
| Thành tiền (Chưa VAT) | {{ number_format($invoice->InvoiceItem->sum('amount') * Helper::BillingFormat($item->billing) - $discount,0,',','.') }} đ | ||
| VAT (10%) | {{ number_format(($invoice->InvoiceItem->sum('amount') * Helper::BillingFormat($item->billing) - $discount) * (10/100),0,',','.') }} đ | ||
| Tổng cộng | {{ number_format($invoice->total,0,',','.') }} đ | ||