@if($email_message && $email_message->itemByLang)
|
@php
$raw = $order->ordersUsers->child_name ?? '';
$children = is_string($raw) ? json_decode($raw, true) : $raw;
if (is_string($children)) {
$children = json_decode($children, true);
}
$childrenNames = is_array($children) ? implode(', ', $children) : $raw;
@endphp
{!! str_replace(
['{order_id}', '{video_link}', '{child_name}'],
[
$order->id,
'' . ShowLabelById(36) . '',
$childrenNames
],
$email_message->itemByLang->body
) ?? '' !!}
|
@endif
|