{{-- Transaction Info Partial - Optimized with date helpers --}} @php $registrationDate = $invoice->date ? \Carbon\Carbon::parse($invoice->date)->format('d/m/Y') : 'N/A'; $dueDate = $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') : 'N/A'; $totalAmount = number_format($invoice->total ?? 0, 0, ',', '.'); $isExpired = $invoice->status == 1; @endphp

{{ __('Thông tin giao dịch') }}

{{-- Registration Date --}}
{{ __('Ngày đăng ký') }} {{ $registrationDate }}
{{-- Initial Payment --}}
{{ __('Thanh toán lần đầu') }} {{ $totalAmount }} đ
{{-- Recurring Payment Amount --}}
{{ __('Số tiền thanh toán định kỳ') }} {{ $totalAmount }} đ
{{-- Service Status --}}
{{ __('Hạn sử dụng') }} @if ($isExpired) {{ __('Hết hạn') }} @else {{ __('Hoạt động') }} @endif
{{-- Expiry Date --}}
{{ __('Ngày hết hạn') }} {{ $dueDate }}
{{-- Auto Renewal Status --}}
{{ __('Trạng thái gia hạn tự động') }} OFF