@extends('admin.layout') @section('title', 'Detalle del Pedido') @section('page-title', 'Sipariş Detayı — ' . ($order->invoice_number ?? ('S#' . $order->id))) @section('content') @php($detail = $order->storeOrderDetail)
Ürünler
@foreach ($order->items as $item) @endforeach
Ürün SKU Adet Birim Fiyat İndirim Toplam
{{ $item->product_name }} @if ($item->variant_attributes)
@foreach ($item->variant_attributes as $key => $value) {{ ucfirst($key) }}: {{ $value }}@if(!$loop->last), @endif @endforeach
@endif
{{ $item->sku }} {{ $item->quantity }} {{ number_format($item->unit_price, 2, ',', '.') }} ₺ {{ $item->line_discount > 0 ? number_format($item->line_discount, 2, ',', '.') . ' ₺' : '—' }} {{ number_format($item->line_total, 2, ',', '.') }} ₺
Ara Toplam: {{ number_format($order->subtotal, 2, ',', '.') }} ₺
Kargo Ücreti: {{ number_format($detail->shipping_fee, 2, ',', '.') }} ₺
@if ($order->discount_amount > 0)
İndirim: -{{ number_format($order->discount_amount, 2, ',', '.') }} ₺
@endif
Toplam: {{ number_format($order->total, 2, ',', '.') }} ₺
Kargo Adresi

{{ $detail->ship_recipient_name }} — {{ $detail->ship_phone }}

{{ $detail->ship_address_line }}

{{ $detail->ship_district }} / {{ $detail->ship_city }} {{ $detail->ship_postal_code }} — {{ $detail->ship_country }}

Müşteri

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

{{ $order->user?->email }}

Kargo / Teslimat Durumu
@if ($detail->admin_notes)
{{ $detail->admin_notes }}
@endif
@csrf @method('PATCH')
@error('fulfillment_status')
{{ $message }}
@enderror
@if ($detail->shipped_at)

Kargoya verildi: {{ $detail->shipped_at->format('d.m.Y H:i') }}

@endif @if ($detail->delivered_at)

Teslim edildi: {{ $detail->delivered_at->format('d.m.Y H:i') }}

@endif
Listeye Dön
@endsection