@extends('components.dashboard.layouts.master') @section('styles') @stack('datatableStyles') @endsection @section('title') {{ __('dashboard.order_summary') }} @endsection @section('content')

{{ __('dashboard.order_summary') }}

{{ $order->serial_number }}

{{ $order->created_at->translatedFormat('Y-m-d H:i a') }}

@php use App\Enum\OrderStatusEnum; @endphp {{ OrderStatusEnum::from($order->status)->label() }}

{{ __($order->payment_method) }}

{{ $order->total }}

{{ __('dashboard.user_details') }}

{{ $order->user->name ?? '--' }}

{{ $order->address->country ?? '--' }}

{{ $order->address->city ?? '--' }}

{{ __('dashboard.products_list') }}

@foreach($order->products as $op)

{{$op->name }}

{{ $op->pivot->price }}

{{ $op->pivot->quantity }}

@foreach($op->sizes as $size) {{ $size->name }}{{ !$loop->last ? ', ' : '' }} @endforeach

@foreach($op->colors as $color)
@endforeach
@if($op->hasMedia('images')) @foreach($op->getMedia('images') as $image) {{ $op->name }} @endforeach @else -- @endif
@endforeach

{{ __('dashboard.change_status') }}

@csrf @method('PATCH')
@if($order->msg)

{{ __('dashboard.message_for_action') }}

{{ $order->msg }}

@endif
@endsection @section('script') @stack('datatableScripts') @endsection