Feat: Adding Order reference to views

This commit is contained in:
2026-09-28 13:31:29 +03:00
parent 060b6c647e
commit 69486f65ee
2 changed files with 11 additions and 4 deletions
@@ -1,6 +1,10 @@
@extends('layouts.account')
@section('title', __('storefront.orders.order_title', ['number' => $order->reference]))
@php
$orderReference = \Modules\Core\Order\Support\OrderReferenceDisplay::resolve($order);
@endphp
@section('title', __('storefront.orders.order_title', ['number' => $orderReference]))
@php
$productLines = $order->lines->where('type', '!=', 'shipping');
@@ -18,7 +22,7 @@
</a>
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
{{ __('storefront.orders.order_title', ['number' => $order->reference]) }}
{{ __('storefront.orders.order_title', ['number' => $orderReference]) }}
</h1>
</div>