|
Hi {{ $data['recipient_first_name'] }},
|
|
|
{{ $data['first_name'] }} wanted to drop a little hint about
this stunning piece from
SAMA
|
|
@php
$products_data = $data['product_data'];
$proDetails = json_decode($products_data, true);
$Names = [];
$productColor = null;
if (!empty($proDetails['ringId'])) {
$ringName = getRingName($proDetails['ringId']);
if (!empty($ringName)) {
$Names[] = $ringName;
}
$productColor = $proDetails['productColor'] ?? null;
}
if (!empty($proDetails['diamondId'])) {
$diamondDetails = getDiamondImages(
$proDetails['diamondId'],
$proDetails['diamondType'] ?? '',
);
if (!empty($diamondDetails)) {
$Names[] = $diamondDetails->short_title;
}
}
if (!empty($proDetails['gemstoneId'])) {
$gemstoneDetails = getGemStoneImages($proDetails['gemstoneId']);
if (!empty($gemstoneDetails)) {
$Names[] = $gemstoneDetails->short_title;
}
}
@endphp
{{-- ############## product name and color ############## --}}
|
{{ implode(' ', $Names) }}
@if (!empty($productColor))
in {{ ucwords(str_replace('-', ' ', $productColor)) }}
@endif
|
|
{{-- @if (!empty($productColor))
|
{{ ucwords(str_replace('-', ' ', $productColor)) }}
|
|
@endif --}}