@extends('frontend.layouts.master') @section('content') @if(!$invoice)

{{ __('Invoice not found') }}

{{ __('The invoice you are looking for could not be found or you do not have permission to view it.') }}

@else

Thông tin đơn hàng

Mã đơn: #{{ $invoice->order_num ?? 'N/A'}}

Thông tin đơn hàng

Ngày đặt: @if ($invoice->date) {{ date('d/m/Y H:i', strtotime($invoice->date)) }} @else N/A @endif
Trạng thái: @if ($invoice->status == 1) Chờ thanh toán @elseif($invoice->status == 2) Đã thanh toán @else Khác @endif
Tên miền (Domain): {{ $invoice->invoiceItem->first()->server_name ?? '' }}

Thông tin khách hàng

Họ tên: {{ $invoice->customer->firstname . ' ' . $invoice->customer->lastname }}
Số điện thoại: {{ $invoice->customer->phone }}
Email: {{ $invoice->customer->email }}

Chi tiết sản phẩm

@foreach ($invoice->invoiceItem as $item) @foreach ($item->addons as $addon) @endforeach @endforeach @php $addonTotal = 0; foreach ($invoice->invoiceItem as $item) { foreach ($item->addons as $addon) { $addonTotal += $addon->price * $item->months; } } $productTotal = $invoice->total - $addonTotal; @endphp @if ($invoice->discount_value) @endif
Mô tả Số lượng Giá
Sản phẩm {{ $item->product->name ?? 'Không xác định' }}
Loại: @if ($item->product_type == 1) Shared Hosting @elseif($item->product_type == 4) VPS @elseif($item->product_type == 3) Dedicated Server @else Khác @endif
Hệ điều hành:
{{ $item->os->osGroup->name }}
{{ $item->os->osGroup->name }} {{ $item->os->version }}
{{ $item->quantity }}

{{ format_price($item->price) }} /{{ $item->months }}tháng

Addon {{ $addon->addonItems->name }} đơn giá: ({{ format_price($addon->addonItems->price) }}) / {{ $addon->addonItems->step . $addon->addonItems->prefix }}
{{ $addon->qty }} / {{ $addon->addonItems->prefix }} ({{ $item->months }} tháng) {{ number_format($addon->price * $item->months) }} VNĐ
Giá trị sản phẩm {{ number_format($productTotal) }} VNĐ
Tổng addon {{ number_format($addonTotal) }} VNĐ
Giảm giá -{{ number_format($invoice->discount_value) }} VNĐ
Tổng cộng {{ number_format($invoice->total) }} VNĐ
@if ($invoice->note)

Ghi chú đơn hàng

{{ $invoice->note }}

@endif

Bạn cần hỗ trợ?

Nếu bạn gặp bất kỳ vấn đề nào khi thanh toán, vui lòng liên hệ với chúng tôi thông qua.
Hotline {{ setting('setting.tel') }} hoặc thông qua Email {{ setting('setting.support') }}

@endif @endsection