@extends('admin.layouts.app') @section('title', 'Sifariş ' . $order->order_number) @section('content')

Sifariş {{ $order->order_number }}

Geri

Müştəri məlumatları

Ad: {{ $order->shipping_name ?: trim(($order->customer?->first_name ?? '') . ' ' . ($order->customer?->last_name ?? '')) }}

Telefon: {{ $order->shipping_phone ?: $order->customer?->phone }}

Ünvan: {{ $order->shipping_address ?: '—' }}

@if($order->customer_note)

Qeyd: {{ $order->customer_note }}

@endif

Sifariş məlumatları

Status: {{ $order->status }}

Ödəniş tipi: {{ $order->payment_type }}

Ödəniş statusu: {{ $order->payment_status }}

Tarix: {{ $order->created_at->format('d.m.Y H:i') }}

Məbləğ

Məhsullar: {{ number_format($order->subtotal, 2, ',', ' ') }} AZN

Endirim: {{ number_format($order->discount, 2, ',', ' ') }} AZN

Çatdırılma: {{ number_format($order->shipping, 2, ',', ' ') }} AZN

Cəmi: {{ number_format($order->total, 2, ',', ' ') }} AZN

Seçilən məhsullar

@foreach($order->items as $item) @endforeach
Məhsul Variant Say Qiymət Cəmi
{{ $item->product_name }} {{ $item->variant_info ?: '—' }} {{ $item->quantity }} {{ number_format($item->price, 2, ',', ' ') }} AZN {{ number_format($item->total, 2, ',', ' ') }} AZN

Status dəyiş

@csrf

Status tarixçəsi

@foreach($order->statusHistory as $history) @endforeach
Status Qeyd Admin Tarix
{{ $history->status }} {{ $history->comment ?: '—' }} {{ $history->admin?->name ?: 'Sistem' }} {{ $history->created_at->format('d.m.Y H:i') }}
@endsection