@extends(get_view('pages.user.index')) @section('user.sidebar-my-orders') active @endsection @section('user.content')

{{ __('Siparişlerim') }}

@if ( $orders->total() > 0 )
@foreach ($orders as $key => $order) @endforeach
Sipariş Numarası Tarih Ürün Sayısı Durum Toplam Tutar
{{ $order->order_number }} {{ $order->created_at->format('d M, Y') }} {{ $order->order_products->count() }} @if ( $order->status == 0 ) {{ __('Onay Bekliyor') }}
@elseif ( $order->status == 1 ) {{ __('Sipariş Onaylandı') }}
@elseif ( $order->status == 2 ) {{ __('Sipariş İptal Edildi') }}
@endif
{{ $order->get_price(false) }}
@if ( $order->invoice_filename != null ) @endif @foreach ($order->order_products as $order_product)
@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
@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)

{{-- Ürünü Değerlendir --}}

@if ( $order_product->order_status >= 2 ) @if( $order_product->cargo_company_name != null && $order_product->cargo_number != null )

{{ __('Kargo Firması') }}:
{{ $order_product->cargo_company_name }}

{{ __('Kargo Numarası') }}:
{{ $order_product->cargo_number }}

@endif @endif
@if ( $order_product->invoice_filename != null) {{ __('Faturayı Gör') }} @endif @if ( $order_product->can_return() ) {{ __('İade Talebi Oluştur') }} @elseif( $order_product->return_request() )

{{ __('İade Talebi Oluşturuldu') }}

@endif
@endforeach
{{ __('Teslimat Adresi') }}

{{ $order->delivery_address->fullname }}

{{ $order->delivery_address->phone }}

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

{{ $order->delivery_address->address }}

{{ __('Fatura Adresi') }}

{{ $order->invoice_address->fullname }}

{{ $order->invoice_address->phone }}

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

{{ $order->invoice_address->address }}

{{ $orders->links() }}
@else

{{ __('Sipariş Bulunamadı') }}

{{ __('Sepetinize ürünler ekleyerek alışveriş yapabilirsiniz.') }}

{{ __('Alışverişe Başla') }}

@endif
@endsection @section('user.footer') @endsection