@php $items = $getRecord()->cart_items ?? []; @endphp @if(empty($items))

{{ __('admin.payments.no_items') }}

@else
@foreach($items as $item) @php $name = $item['name'] ?? '—'; $image = $item['image'] ?? ''; $price = (float) ($item['price'] ?? 0); $qty = (int) ($item['quantity'] ?? 1); $mealType = $item['options']['mealType'] ?? ''; $calories = $item['options']['calories'] ?? ''; $lineTotal = $price * $qty; @endphp @endforeach
{{ __('admin.payments.fields.item_image') }} {{ __('admin.payments.fields.item_name') }} {{ __('admin.payments.fields.item_qty') }} {{ __('admin.payments.fields.item_price') }} {{ __('admin.payments.fields.item_total') }}
@if($image) @else
@endif
{{ $name }}
@if($mealType || $calories)
@if($mealType){{ ucfirst($mealType) }}@endif @if($mealType && $calories) · @endif @if($calories){{ $calories }} kcal @endif
@endif
{{ $qty }} {{ number_format($price, 2) }} SAR {{ number_format($lineTotal, 2) }} SAR
@endif