@extends('layouts.app') @section('wrapper')

{{__('Order')}} {{ $order->order_number }}

{{__('Placed on')}} {{ $order->created_at->format('d.m.Y H:i') }}
{{ $order->status_text }}
{{ $order->payment_status_text }}
@if($order->delivered_at)
{{__('Delivered on')}} {{ $order->delivered_at->format('d.m.Y H:i') }}
@endif @if($order->notes)
{{__('Notes')}}: {{ $order->notes }}
@endif
{{__('Product Information')}}
@if($order->product && $order->product->image_url) {{ $order->product_name }} @else
@endif
{{ $order->product_name }}
{{__('Unit Price')}}: {{ number_format($order->product_price, 2) }}₺
{{__('Quantity')}}: {{ $order->quantity }}
{{__('Total Amount')}}: {{ $order->formatted_total }}
@if($order->product)
{{__('Product Type')}}: {{ $order->product->is_digital ? __('Digital') : __('Physical') }}
@endif
@if($order->product) @endif
@if($order->delivery_data && $order->status === 'completed')
{{__('Your Digital Content')}}
@if(is_array($order->delivery_data) && isset($order->delivery_data['content']))
@if(is_array($order->delivery_data['content'])) @foreach($order->delivery_data['content'] as $key => $value)
{{ ucfirst($key) }}:
{{ $value }}
@endforeach @else
{{ $order->delivery_data['content'] }}
@endif
@if(isset($order->delivery_data['instructions']))
{{__('Instructions')}}:
{{ $order->delivery_data['instructions'] }}
@endif @else
{{__('Digital content will be available once the order is completed.')}}
@endif
@endif @if($order->canBeCancelled())
{{__('Order Actions')}}
{{__('You can cancel this order and get a full refund to your account balance.')}}
@endif
{{__('Order Summary')}}
{{__('Order Number')}}: {{ $order->order_number }}
{{__('Order Date')}}: {{ $order->created_at->format('d.m.Y') }}
{{__('Order Time')}}: {{ $order->created_at->format('H:i') }}
@if($order->delivered_at)
{{__('Delivered')}}: {{ $order->delivered_at->format('d.m.Y H:i') }}
@endif
{{__('Subtotal')}}: {{ $order->formatted_total }}
{{__('Payment Method')}}: {{__('Account Balance')}}

{{__('Total')}}: {{ $order->formatted_total }}
@if(auth()->user()->user_type == 1)
{{__('Customer Information')}}
{{__('Name')}}: {{ $order->user->account_holder ?? $order->user->name }}
{{__('Email')}}: {{ $order->user->email }}
@if($order->user->phone)
{{__('Phone')}}: {{ $order->user->phone }}
@endif
@endif
{{__('Need Help?')}}

{{__('If you have any questions about your order, please contact our support team.')}}

{{__('Contact Support')}}
@endsection @section('script') @endsection