@extends('layouts.email_layout') @section('content') SAMA
 
Someone Loves This
Psst… {{ $senderName ?? 'Someone' }} Loves This {{ $productType ?? 'Piece' }}
Hi{{ !empty($recipientName) ? ' '.$recipientName : '' }},
{{ $senderName ?? 'Someone' }} wanted to drop a little hint about this beautiful {{ strtolower($productType ?? 'piece') }} from SAMA…
@php $productsData = json_decode($data['product_data'] ?? '{}', true); $names = []; $productColor = null; $images = []; // Ring if (!empty($productsData['ringId'])) { $ringName = getRingName($productsData['ringId']); if (!empty($ringName)) { $names[] = $ringName; } $productColor = $productsData['productColor'] ?? null; $shape = $productsData['shape'] ?? ''; $ringImage = getProductImages( $productsData['ringId'], $productColor ?? '', $shape ); if (!empty($ringImage)) { $images[] = $ringImage; } } // Diamond if (!empty($productsData['diamondId'])) { $diamond = getDiamondImages( $productsData['diamondId'], $productsData['diamondType'] ?? '' ); if (!empty($diamond)) { $names[] = $diamond->short_title ?? ''; if (!empty($diamond->image_url)) { $images[] = $diamond->image_url; } } } // Gemstone if (!empty($productsData['gemstoneId'])) { $gemstone = getGemStoneImages($productsData['gemstoneId']); if (!empty($gemstone)) { $names[] = $gemstone->short_title ?? ''; if (!empty($gemstone->image_url)) { $images[] = $gemstone->image_url; } } } $productTitle = trim(implode(' ', array_filter($names))); if (!empty($productColor)) { $productTitle .= ' in ' . ucwords(str_replace('-', ' ', $productColor)); } $images = array_values(array_unique(array_filter($images))); @endphp @if(count($images)) @endif
{{ $productTitle ?: 'Selected Piece' }}
@foreach($images as $image) @php $count = count($images); if ($count == 1) { $width = 200; } elseif ($count == 2) { $width = 190; } else { $width = 120; } @endphp @endforeach
View This Piece
@if(!empty($data['message']))
A Note From {{ $data['first_name'] }}
{{ $data['message'] }}
@endif
That's all — just a spark of inspiration!
 
Continue Exploring
Engagement Rings
Engagement Rings
Wedding Bands
Wedding Bands
Gemstones
Gemstones
Diamonds
Diamonds
Jewelry
Jewelry
@endsection