generated from boboko/starter
14 lines
472 B
PHP
14 lines
472 B
PHP
{{--
|
|
An order status as text, e.g. "Σε επεξεργασία". Translated through
|
|
storefront.order_status.{status}, falling back to Lunar's own (English)
|
|
label from config('lunar.orders.statuses') when that key doesn't exist.
|
|
--}}
|
|
@props(['status'])
|
|
|
|
@php
|
|
$key = "storefront.order_status.{$status}";
|
|
$label = Lang::has($key) ? __($key) : config("lunar.orders.statuses.{$status}.label", $status);
|
|
@endphp
|
|
|
|
<span {{ $attributes }}>{{ $label }}</span>
|