@lang('theme.notify.order_placed_thanks')

@php $order = $orders[0]; $payment_instructions = null; if (optional($order->paymentMethod)->type == \App\Models\PaymentMethod::TYPE_MANUAL) { $payment_instructions = get_from_option_table('wallet_payment_info_' . $order->paymentMethod->code); } @endphp @if ($payment_instructions)

@lang('theme.payment_instruction'): {!! $payment_instructions !!}

@elseif(!$order->isPaid())

@lang('theme.payment_status'): {!! $order->paymentStatusName() !!}

@endif @if ($order->pickup()) @php $warehouseIds = []; @endphp @foreach ($order->inventories as $key => $inventory) @if (!empty($inventory->warehouse)) @if (!in_array($inventory->warehouse_id, $warehouseIds)) @php $warehouseIds[] = $inventory->warehouse_id; @endphp

{{ trans('theme.notify.business_days') }}: {{ $inventory->warehouse->business_days }}

{{ trans('theme.notify.availability') }}: {{ $inventory->warehouse->opening_time }} - {{ $inventory->warehouse->close_time }}

{{ trans('theme.notify.order_number') }}: {{ $order->order_number }}

{{ trans('theme.notify.pick_up_order_from') }}:
{!! address_str_to_html($inventory->warehouse->address->toString()) !!}

@endif @endif @endforeach @else

{{ trans('theme.notify.order_will_ship_to') }}: "{!! $order->shipping_address !!}"

@endif

{{ trans('theme.button.continue_shopping') }} @if (\Auth::guard('customer')->check()) @lang('theme.button.order_detail') @endif