عربي | English
@if(!empty($settings['invoice_logo'])) {{ $settings['site_name'] }} @endif

{{ $settings['site_name'] }}

{{ $settings['company_address'] }}

{{ __('print.phone_number') }}: {{ $settings['company_phone'] }}

{{ __('print.invoice') }}

{{ __('print.invoice_number') }}: {{ $order->order_number }}

{{ __('print.invoice_date') }}: {{ $order->order_date->format('Y-m-d') }}

{{ __('print.customer_info') }}

{{ __('print.customer_name') }}: {{ $order->customer->name ?? $order->customer_snapshot['name'] ?? __('print.not_available') }}
{{ __('print.customer_phone') }}: {{ $order->customer->mobile1 ?? $order->customer_snapshot['mobile1'] ?? __('print.not_available') }}
{{ __('print.customer_address') }}: {{ $order->shipping_address }}
{{ __('print.customer_city') }}: {{ $order->shipping_city }}

{{ __('app.resources.orders.label') }}

{{ __('print.order_ref') }}: {{ $order->order_number }}
{{ __('print.payment_method') }}: {{ $order->paymentMethod->localized_name ?? __('print.not_available') }}
{{ __('print.qty_of_products') }}: {{ $totalPieces }} {{ __('print.pieces') }}
@if($order->tracking_number)
{{ __('print.tracking_number') }}: {{ $order->tracking_number }}
@endif
@foreach($order->items as $item) @endforeach
{{ __('print.item') }} {{ __('print.quantity') }} {{ __('print.unit_price') }} {{ __('print.total') }}
{{ $item->display_name }} {{ $item->quantity }} {{ number_format($item->price, 2) }} EGP {{ number_format($item->price * $item->quantity, 2) }} EGP
{{-- Products Subtotal --}}
{{ __('print.products_subtotal') }} {{ number_format($order->order_price, 2) }} EGP
{{-- Shipping --}}
{{ __('print.shipping') }} {{ number_format($order->shipping_price, 2) }} EGP
{{-- Combined Subtotal (Products + Shipping) --}} @php $combinedSubtotal = $order->order_price + $order->shipping_price; @endphp
{{ __('print.combined_subtotal') }} {{ number_format($combinedSubtotal, 2) }} EGP
{{-- Manual Discount (discount_value) - Applied on products only --}} @php $manualDiscount = 0; if ($order->discount_type === 'percentage' && $order->discount_value > 0) { // Calculate discount on products only (NOT shipping) $manualDiscount = ($order->order_price * $order->discount_value) / 100; } elseif ($order->discount_type === 'fixed' && $order->discount_value > 0) { $manualDiscount = $order->discount_value; } @endphp @if($manualDiscount > 0)
{{ __('print.manual_discount') }} @if($order->discount_type === 'percentage') ({{ $order->discount_value }}%) @endif -{{ number_format($manualDiscount, 2) }} EGP
@endif {{-- Coupon Discount --}} @if($order->coupon_discount > 0)
{{ __('print.discount') }} ({{ $order->coupon_code }}) -{{ number_format($order->coupon_discount, 2) }} EGP
@endif {{-- Cashback Applied --}} @if($order->cashback_applied > 0)
{{ __('print.cashback_applied') }} -{{ number_format($order->cashback_applied, 2) }} EGP
@endif {{-- Grand Total --}}
{{ __('print.grand_total') }} {{ number_format($order->total_amount, 2) }} EGP
@if($order->notes)

{{ __('print.remarks') }}

{{ $order->notes }}

@endif

{{ __('app.messages.thank_you_order', ['site' => $settings['site_name']]) }}

{{ $settings['company_phone'] }} | {{ $settings['company_address'] }}