@extends('plugins/ecommerce::orders.master') @section('title', __('Order Confirmation | :site_title', ['site_title' => Theme::getSiteTitle()])) @push('header') @endpush @section('content') @php $firstOrder = $orders->first(); $sessionOrderReference = null; if (is_plugin_active('hblpay') && \Illuminate\Support\Facades\Schema::hasTable('hbl_order_ids')) { foreach ($orders as $placedOrder) { $orderReference = \Illuminate\Support\Facades\DB::table('hbl_order_ids') ->whereRaw('FIND_IN_SET(?, order_id)', [(string) $placedOrder->id]) ->whereNotNull('order_reference') ->orderByDesc('id') ->value('order_reference'); if ($orderReference) { $sessionOrderReference = $orderReference; break; } } } @endphp
@include('plugins/ecommerce::orders.partials.logo')
{{ __('Order confirmation') }}

{{ __('All set! Your order is in.') }}

{{ __('You will receive updates as your package moves through fulfillment.') }}

{{ __('Order number') }} {{ $sessionOrderReference ?: ($firstOrder?->code ?: '-') }}
{{ __('Total amount') }} {{ format_price($orders->sum('amount')) }}
{{ __('Payment method') }} @if (is_plugin_active('payment') && $firstOrder?->payment?->id) {{ $firstOrder->payment->payment_channel->label() }} @else {{ '-' }} @endif
@include('plugins/marketplace::orders.partials.customer-info-grid', [ 'order' => $orders, 'isShowShipping' => false, ])
@foreach ($orders as $order)
@php $successStore = $order->store; if (! $successStore || ! $successStore->exists) { $successStore = new \Botble\Marketplace\Models\Store(); $successStore->id = 0; $successStore->name = get_ecommerce_setting('company_name_for_invoicing', get_ecommerce_setting('store_name')) ?: Theme::getSiteTitle(); $successStore->logo = theme_option('favicon') ?: Theme::getLogo(); $successStore->logo_square = null; $successStore->url = BaseHelper::getHomepageUrl(); } @endphp @if ($successStore)
{{ $successStore->name }} {!! BaseHelper::clean($successStore->name) !!} @if ($successStore->id && EcommerceHelper::isReviewEnabled())
@include(EcommerceHelper::viewPath('includes.rating-star'), ['avg' => $successStore->reviews()->avg('star')]) @if (($reviewsCount = $successStore->reviews()->count()) === 1) ({{ __('1 Review') }}) @else ({{ __(':count Reviews', ['count' => number_format($reviewsCount)]) }}) @endif
@endif
@endif @include('plugins/ecommerce::orders.thank-you.order-info', [ 'isShowTotalInfo' => false, 'hideOrderNumber' => true, ]) @if ($order->shipping_method->getValue())
{{ __('Shipping method') }}:
  • {{ $order->shipping_method_name }} - {{ (float) $order->shipping_amount ? format_price($order->shipping_amount) : __('Free') }}
@endif
@if (! $loop->last)
@endif @endforeach
@include('plugins/ecommerce::orders.thank-you.total-info', [ 'order' => $firstOrder, 'orders' => $orders, ])
@stop