@extends('admin.layouts.app') @section('panel')
@lang('Shipping Address')
  • @lang('Order Number') #{{__(@$orderDetails->order_number)}}
  • @lang('Full Name') {{__(@$orderDetails->firstname.@$orderDetails->lastname)}}
  • @lang('Address') {{__(@$orderDetails->address)}}
  • @lang('Email') {{__(@$orderDetails->email)}}
  • @lang('Phone Number') {{__(@$orderDetails->phone)}}
@forelse ($orderDetails->products as $item) @empty @endforelse
@lang('Product Image') @lang('Product Name') @lang('Quantity') @lang('Total Price')
Image {{__($item->name)}} {{__($item->pivot->product_quantity)}} x {{showAmount(__($item->price))}} {{__($general->cur_sym)}}{{__($item->price * $item->pivot->product_quantity)}}
{{__($emptyMessage) }}
@forelse ($orderDetails->options as $item) @empty @endforelse
@lang('Option') @lang('Value')
{{$item->title}} @foreach($item->items as $value) @php $selectionType = $value->selection_type ?? null; $meta = is_array($value->meta_json ?? null) ? $value->meta_json : []; $displayValue = $value->text_value ?? $value->value; @endphp
{{ $displayValue }} @if($selectionType === 'seller_additional_item') @lang('Seller Added') @elseif($selectionType === 'level_range') ({{ $meta['from_label'] ?? $meta['from_value_id'] ?? '-' }} -> {{ $meta['to_label'] ?? $meta['to_value_id'] ?? '-' }}) @endif
@endforeach
{{__($emptyMessage) }}
@php $selectionOptions = $selectionLabels['options'] ?? []; $orderPricing = $orderDetails->orderOfferPricing ?? null; $breakdown = is_array($orderPricing?->breakdown_json ?? null) ? $orderPricing->breakdown_json : []; @endphp
@lang('Selections')
@if(!empty($selectionOptions)) @foreach($selectionOptions as $option)
{{ $option['option_title'] ?? __('Option') }}
@lang('Standard')
@if(!empty($option['standard_items']))
    @foreach($option['standard_items'] as $item)
  • {{ $item['label'] ?? $item['option_item_id'] ?? '-' }}
  • @endforeach
@else
@lang('None')
@endif
@lang('Additional')
@if(!empty($option['additional_items']))
    @foreach($option['additional_items'] as $item)
  • {{ $item['label'] ?? $item['additional_item_id'] ?? '-' }}
  • @endforeach
@else
@lang('None')
@endif
@lang('Level Ranges')
@if(!empty($option['level_ranges']))
    @foreach($option['level_ranges'] as $range)
  • {{ $range['label'] ?? '-' }}
  • @endforeach
@else
@lang('None')
@endif
@lang('Seller Type Items')
@if(!empty($option['seller_type_items']))
    @foreach($option['seller_type_items'] as $item)
  • {{ $item['label'] ?? $item['seller_type_item_id'] ?? '-' }}
  • @endforeach
@else
@lang('None')
@endif
@endforeach @else
@lang('No selections recorded.')
@endif
@lang('Pricing Breakdown')
@if($orderPricing)
@lang('Base Price')
{{ $general->cur_sym }}{{ showAmount($orderPricing->base_price) }}
@lang('Final Price')
{{ $general->cur_sym }}{{ showAmount($orderPricing->final_price) }}
@lang('Total Price')
{{ $general->cur_sym }}{{ showAmount($orderPricing->total_price) }}
@if(!empty($breakdown))
    @foreach($breakdown as $row) @php $rowLabel = $row['label'] ?? ($row['type'] ?? __('Modifier')); $rowOperator = $row['operator'] ?? null; $rowValue = $row['value'] ?? null; $rowDelta = $row['delta'] ?? null; @endphp
  • {{ $rowLabel }} @if($rowOperator !== null && $rowValue !== null) ({{ $rowOperator }}{{ $rowValue }}) @endif {{ $rowDelta !== null ? showAmount($rowDelta) : '-' }}
  • @endforeach
@else
@lang('No breakdown recorded.')
@endif @else
@lang('No breakdown recorded.')
@endif
@endsection