@extends('admin.index') @section('title')Sipariş Detayı - @endsection @section('header') @endsection @section('content')
Sipariş İşlemleri
@csrf
Sipariş Numarası: #{{ $order->order_number }}
Sipariş Ürünleri
@foreach ($order->order_products as $order_product)
product->deleted_at != null) data-bs-toggle="tooltip" data-bs-title="Ürün Silinmiş" style="border: 2px solid red !important;" @endif>
@csrf
@if ( $order_product->order_status == 1 )

Kargo Bilgilerini Giriniz

Aşağıdaki ürünler alıcı adresine aşağıdaki kargo bilgileri ile gönderilecektir.

PTT Kargo, Yurtiçi Kargo, MNG Kargo, Sürat Kargo, Aras Kargo vb...
Ex: 4234037253
@elseif($order_product->cargo_company_name != null && $order_product->cargo_number != null)

Kargo Bilgileri

Aşağıdaki ürünler alıcı adresine aşağıdaki kargo bilgileri ile gönderilecektir.

Kargo Firması: {{ $order_product->cargo_company_name }}

Kargo Numarası: {{ $order_product->cargo_number }}

@endif
@if($order_product->product->deleted_at != null)
Ürün sistemden silinmiş
@endif
@if ( $order_product->product->first_image != null ) {{ $order_product->product->content->name }} @else
Ürün Fotoğrafı Bulunamadı
@endif
{{ $order_product->product->content->name }}

{{ $order_product->get_price(false) }} ({{ $order_product->quantity }}x)

Birim Fiyatı: {{ $order_product->get_price(false) }}

Adet: {{ $order_product->quantity }}

Toplam Tutar: {{ $order_product->currency->symbol }}{{ money($order_product->quantity * $order_product->get_price(true)) }}

@if ( $order_product->order_status >= 0 && $order_product->order_status <= 3 ) @include('admin.components.order.steps.inprogress') @elseif( $order_product->order_status > 3 && $order_product->order_status <= 5 ) @include('admin.components.order.steps.return') @endif
@endforeach

{{ \Carbon\Carbon::parse($order->created_at)->ago(['parts' => 3]) }}
Sipariş Tarihi: {{ $order->created_at }}

Ödeme Türü: {{ $order->get_payment_type() }}

@if ( $order->payment_status == 0 )

Ödeme Durumu: Bekliyor

@elseif( $order->payment_status == 1 )

Ödeme Durumu: Ödeme Alındı

@elseif( $order->payment_status == 2 )

Ödeme Durumu: Ödeme İadesi Yapıldı

@else

Ödeme Durumu: Bilinmiyor

@endif

Toplam Tutar: {{ $order->get_price(false) }}

Fatura Yükleyin/Görüntüleyin
@csrf
@if ( $order->invoice_filename != null )
Faturayı Görüntüle @endif
Siparişi Veren
@if ( $order->user != null ) Kayıtlı Üye

Siparişi Veren
{{ $order->user->fullname() }}

E-posta Adresi
{{ $order->user->email ?? '-' }}

Telefon Numarası
{{ $order->user->phone ?? '-' }}

@else Kayıtlı Olmayan Üye

Siparişi Veren
-

E-posta Adresi
{{ $order->user_information->email ?? '-' }}

Telefon Numarası
{{ $order->user_information->phone ?? '-' }}

@endif
Teslimat Adresi

{{ $order->delivery_address->fullname ?? 'Unknown' }}

{{ $order->delivery_address->phone ?? 'Unknown' }}

{{ $order->delivery_address->country->name ?? 'Unknown' }}/{{ $order->delivery_address->city ?? 'Unknown' }}/{{ $order->delivery_address->district ?? 'Unknown' }} - {{ $order->delivery_address->postcode ?? 'Unknown' }}

{{ $order->delivery_address->address ?? 'Unknown' }}

Fatura Adresi

{{ $order->invoice_address->fullname ?? 'Unknown' }}

{{ $order->invoice_address->phone ?? 'Unknown' }}

{{ $order->invoice_address->country->name ?? 'Unknown' }}/{{ $order->invoice_address->city ?? 'Unknown' }}/{{ $order->invoice_address->district ?? 'Unknown' }} - {{ $order->invoice_address->postcode ?? 'Unknown' }}

{{ $order->invoice_address->address ?? 'Unknown' }}

@endsection @section('footer') @endsection