@php $details = json_decode($item->detail, true); @endphp
Customer Details
- Name: {{ $details['customer_details']['first_name'] }}
{{ $details['customer_details']['last_name'] }}
- Email: {{ $details['customer_details']['email'] }}
- Phone: {{ $details['customer_details']['phone'] }}
Order Details
@foreach ($details['item_details'] as $itemDetail)
-
{{ $itemDetail['name'] }} -
{{ $itemDetail['quantity'] }} x Rp.
{{ number_format($itemDetail['price'], 0, ',', '.') }}
@endforeach
Total: Rp. {{ number_format($item->amount, 0, ',', '.') }}
Plan: {{ $item->plan }}
@if ($item->status == 'success')
Renewed At:
{{ \Carbon\Carbon::parse($item->updated_atrenew)->format('l, d F Y') }}
Expires At:
{{ \Carbon\Carbon::parse($item->expired_at)->format('l, d F Y') }}
@endif
Excluded Users:
{{ $item->user_exclude ? implode(', ', array_column(json_decode($item->user_exclude, true), 'username')) : '-' }}
@if ($item->status == 'pending')
@else
@endif