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

Sifariş {{ $order->order_number }}

Geri

Müştəri məlumatları

Ad: {{ $order->customer?->first_name }} {{ $order->customer?->last_name }}

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

Email: {{ $order->customer?->email }}

Çatdırılma

Ad: {{ $order->shipping_name }}

Telefon: {{ $order->shipping_phone }}

Ünvan: {{ $order->shipping_address }}

Ödəniş

Tip: {{ $order->payment_type }}

Status: {{ $order->payment_status }}

Promokod: {{ $order->promocode ?: '—' }}

Məbləğ

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

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

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

Ümumi: {{ number_format($order->total, 2) }} AZN

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şdir

@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