@extends('layouts.email_layout') @section('content') {{-- --}}
Psst... someone loves this ring
@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 ############## --}} {{-- @if (!empty($productColor)) @endif --}}
Hi {{ $data['recipient_first_name'] }},
{{ $data['first_name'] }} wanted to drop a little hint about this stunning piece from SAMA
{{ implode(' ', $Names) }} @if (!empty($productColor)) in {{ ucwords(str_replace('-', ' ', $productColor)) }} @endif
{{ ucwords(str_replace('-', ' ', $productColor)) }}
@php $values = $data['product_data']; $productData = json_decode($values, true); $images = []; if (!empty($productData['ringId'])) { $ringImage = getProductImages($productData['ringId'], $productData['productColor'], ''); if (!empty($ringImage)) { $images[] = $ringImage; } } if (!empty($productData['diamondId'])) { $diamondImage = getDiamondImages($productData['diamondId'], $productData['diamondType'] ?? ''); if (!empty($diamondImage)) { $images[] = $diamondImage->image_url; } } if (!empty($productData['gemstoneId'])) { $gemstoneImage = getGemStoneImages($productData['gemstoneId']); if (!empty($gemstoneImage)) { $images[] = $gemstoneImage->image_url; } } @endphp {{-- @if (!empty($images))
@foreach ($images as $image) @endforeach
Product Image
@endif --}} @if (!empty($images))
@foreach ($images as $image) @php $imgCount = count($images); $cellWidth = $imgCount === 1 ? '50%' : 100 / $imgCount . '%'; $imgStyle = $imgCount === 1 ? 'width: 100% !important; max-width: 300px; border-radius: 5px !important;' : 'width: 100% !important; border-radius: 5px !important;'; $align = $imgCount === 1 ? 'center' : 'center'; @endphp @endforeach
Product Image
@endif {{-- eeeeeeeeeeeee --}}
That's all. Just a spark of inspiration!
{{-- eeeeeeeeeeeee --}}
{{-- @php dd($data['message']); @endphp --}} @if (!empty($data['message'])) @endif
Note From {{ $data['first_name'] }}
{{ $data['message'] }}
With love,
The SAMA Team
rocksama.com
You received this email because someone who loves you shared a ring they adore from SAMA. We do not store your email address and will not contact you unless requested. Privacy Policy
{{--
Engagment Ring
Engagement Rings
Wedding Ring
Wedding Rings
Bridal Sets
Bridal Sets
Gemstone Ring
Gemstone Rings
--}}
Engagment Ring
Engagement Rings
Wedding Ring
Wedding Rings
Bridal Sets
Bridal Sets
Gemstone Ring
Gemstone Rings
@endsection