@php $cycleMap = [ 'monthly' => 'Hàng tháng', 'quarterly' => 'Hàng quý', 'semi_annually' => '6 tháng', 'annually' => 'Hàng năm', 'biennially' => '2 năm', ]; @endphp @if(($items ?? collect())->isNotEmpty())

CHI TIẾT SẢN PHẨM

@foreach($items as $item) @endforeach
Sản phẩm Server Chu kỳ Giá
{{ $item->product?->name ?? '—' }} {{ $item->server_name ?? '—' }} {{ $cycleMap[$item->billing_cycle] ?? ($item->billing_cycle ?? '—') }} {{ number_format((float) $item->price) }} VNĐ
@endif