عربي | English
@for($copy = 1; $copy <= 2; $copy++)
@if(!empty($settings['invoice_logo'])) {{ $settings['site_name'] }} @else

{{ $settings['site_name'] }}

@endif
{{ __('print.remarks') }}: {{ $order->notes ?? __('print.not_available') }}

1. {{ __('print.from_shipper') }}

{{ __('print.company') }}: {{ $settings['site_name'] }}

{{ __('print.contact') }}: {{ $settings['site_name'] }}

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

{{ __('print.address') }}: {{ $settings['company_address'] }}

{{ __('print.country') }}: {{ $settings['company_country'] }}

2. {{ __('print.to_receiver') }}

{{ __('print.contact') }}: {{ $order->customer->name ?? $order->customer_snapshot['name'] ?? __('print.not_available') }}

{{ __('print.phone_number') }}: {{ $order->customer->mobile1 ?? $order->customer_snapshot['mobile1'] ?? __('print.not_available') }}

{{ __('print.address') }}: {{ $order->shipping_address }}

{{ __('print.city') }}: {{ $order->shipping_city }}

{{ __('print.tracking_number') }} {{ $order->tracking_number ?? __('print.not_available') }}
@if($order->shippingCompany)
{{ __('print.shipping_company') }} {{ $order->shippingCompany->display_name }}
@endif
{{ __('print.order_ref') }} {{ $order->order_number }}
{{ __('print.no_of_pieces') }} {{ $totalPieces }} {{ __('print.pieces') }}
{{ __('print.weight') }} {{ number_format($totalWeight / 1000, 2) }} {{ __('print.kg') }}

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

{{ $shortDescription }}

{{ __('print.biller') }}: {{ $settings['site_name'] }}

{{ __('print.value') }} {{ number_format($order->total_amount, 2) }} EGP
{{ __('print.payment_method') }} {{ $order->paymentMethod->localized_name ?? __('print.not_available') }}
{{ __('print.discount') }} @php // Calculate actual discount amount $manualDiscount = 0; if ($order->discount_type === 'percentage' && $order->discount_value > 0) { // Calculate percentage discount from subtotal (excluding shipping) $subtotal = $order->items->sum('subtotal'); $manualDiscount = ($subtotal * $order->discount_value) / 100; } elseif ($order->discount_type === 'fixed' && $order->discount_value > 0) { $manualDiscount = $order->discount_value; } $totalDiscount = $manualDiscount + ($order->coupon_discount ?? 0); @endphp @if($totalDiscount > 0) @if($order->coupon_code) {{ $order->coupon_code }} (-{{ number_format($totalDiscount, 2) }} EGP) @else -{{ number_format($totalDiscount, 2) }} EGP @endif @else {{ __('print.no_discount') }} @endif
{{ __('print.shipper_sign') }}
{{ __('print.receiver_sign') }}
{{ __('print.creation_date') }}: {{ $order->order_date->format('Y-m-d') }}
{{ __('print.date_received') }}: {{ $order->delivered_at ? $order->delivered_at->format('Y-m-d') : __('print.not_available') }}
{{ __('print.received_by') }}:
@endfor