@extends('layouts.app') @section('content')
@csrf @method('PUT')

{{ __('orders.edit') }}

{{ $order->currency?->symbol ?? '₺' }}
{{ $order->currency?->symbol ?? '₺' }}

{{ __('orders.order_items') }}

@foreach($order->items as $item)

{{ $item->clothType->title ?? __('orders.not_available') }}

{{ $order->currency?->symbol ?? '₺' }}
{{ __('orders.measurements') }}
@foreach($item->details->where('type', 'measurement') as $detail)
@endforeach
{{ __('orders.specs_attributes') }}
@foreach($item->details->where('type', 'attribute') as $detail) @php $isOnlyImage = $detail->attribute ? $detail->attribute->only_image : false; $isExtraImage = $detail->attribute ? $detail->attribute->extra_image : true; @endphp
@if(!$isOnlyImage) @if($detail->cloth_attribute_id && $detail->attribute && $detail->attribute->options->isNotEmpty()) @else @endif @endif @if($isOnlyImage || $isExtraImage) @endif
@endforeach
@endforeach
@endsection @push('scripts') @endpush