@extends('layouts.layout') @section('content')
{{-- @php dd($invoiceType); @endphp --}} @if ($invoiceType == 'Normal') @foreach ($orderItem as $orderItem) {{-- ############################################################ --}} @php $orderdata = json_decode($orderItem['order_data']); @endphp
Thank You for Your Order!

Your order has been successfully placed, and we’re thrilled to be part of your love story!

Order Details
Invoice Number : {{ $invoice->invoice_id }}
Order Number : {{ $ordervalue->order_id }}
Order Date : {{-- {{ date('M d, Y', strtotime($ordervalue->created_at)) }} --}} {{ format_est($ordervalue->created_at) }}
Shipping To : Billing To :
@if (empty($intake)) @else @endif
{{ $username }}
{{ ucfirst($shipping_address->address_line1) }}
{{ $shipping_address->city }} , {{ $shipping_address->state }}
{{ $shipping_address->email }}
{{ formateNumber($shipping_address->phone) }}
{{ ucfirst($billing_address->address_line1) }}
{{ $billing_address->city }} , {{ $billing_address->state }}
{{ $billing_address->email }}
{{ formateNumber($billing_address->phone) }}
{{ $username }}
{{ ucfirst($intake->street_address) }}
{{ $intake->city }} , {{ $intake->state }}
{{ $intake->email }}
{{ formateNumber($intake->phone) }}
{{ ucfirst($intake->street_address) }}
{{ $intake->city }} , {{ $intake->state }}
{{ $intake->email }}
{{ formateNumber($intake->phone) }}
@if ($orderdata->product_type == 'jewelry') Earrings @elseif ($orderdata->product_type == 'ring_diamond' || $orderdata->product_type == 'ring_gemstone') Ring (Completed) @else Wedding Band @endif
@if ($orderdata->product_type == 'ring_diamond' || $orderdata->product_type == 'ring_gemstone') {{-- print the complete ring based on type gemstone or diamond --}} @php $ringImage = getProductImages( $orderdata->ring_id, $orderdata->ring_color, $orderdata->center_stone_shape, ); $ringName = getRingName( $orderdata->ring_id, ); $ringSku = getRingSKU( $orderdata->ring_id, ); if ( $orderdata->product_type == 'ring_diamond' ) { // get the diamond Data and pric $diamondDetails = getResponseFromSavedData( $orderItem->diamond_response, ); $stone_image = $diamondDetails->image_url; $size = $diamondDetails->size . ' Carat'; $shape = $diamondDetails->shape; $diamondType = $orderdata->diamond_type == 'Lab_grown_Diamond' ? 'Lab Diamond' : 'Natural Diamond'; $cut = $diamondDetails->cut . ' Cut'; $color = $diamondDetails->color . ' Color'; $clarity = $diamondDetails->clarity . ' Clarity'; } else { // get the gemstone data and print $gemstoneDetails = getResponseFromSavedData( $orderItem->gemstone_response, ); $title = $gemstoneDetails->short_title; $stone_image = $gemstoneDetails->image_url; } @endphp {{-- //printed ring data --}} {{-- //stone details ring data --}} @else @php $ringImage = getProductImages( $orderdata->ring_id, $orderdata->ring_color, $orderdata->center_stone_shape, ); $ringName = getRingName( $orderdata->ring_id, ); $ringSku = getRingSKU( $orderdata->ring_id, ); @endphp @endif @endforeach @elseif($invoiceType == 'Intake Invoice') @endif {{-- ######################################################### --}}
{{ $ringName }} {{ $ringName }}
{{ $ringSku }}
@if (!empty($orderdata->ring_color) && $orderdata->ring_color != 'null') Metal Color : {{ ucwords(str_replace('-', ' ', $orderdata->ring_color)) }}
@endif Ring Size : {{ !empty($orderdata->ring_size) && $orderdata->ring_size != 'null' ? $orderdata->ring_size : '-' }}

${{ number_format($orderdata->ring_price, 2) }}
@php if ( isset( $shape, ) ) { $errorImg = env( 'AWS_URL', ) . 'frontend/images/' . ucfirst( $shape, ) . '.' . 'jpg'; } else { $errorImg = env( 'AWS_URL', ) . 'frontend/images/' . 'grayscalelogo.png'; } @endphp
stone @if ($orderdata->product_type == 'ring_diamond') {{ $size }} {{ $shape }} {{ $diamondType }}
{{ $cut }}, {{ $color }}, {{ $clarity }} @else {{ $title }} @endif
${{ formatPrice($orderdata->product_type == 'ring_diamond' ? $orderdata->diamond_price : $orderdata->gemstone_price) }}
{{ $ringName }} {{ $ringName }}
{{ $ringSku }}
@if (!empty($orderdata->ring_color) && $orderdata->ring_color != 'null') Metal Color : {{ ucwords(str_replace('-', ' ', $orderdata->ring_color)) }}
@endif Ring Size : {{ !empty($orderdata->ring_size) && $orderdata->ring_size != 'null' ? $orderdata->ring_size : '-' }}
@if (!empty($orderdata->engraving)) Engraving : {{ $orderdata->engraving }}
@endif @if (!empty($orderdata->font)) Font : {{ $orderdata->font }} @endif
${{ number_format($orderdata->ring_price, 2) }}
Intake Details
@if ($intake->attachments->isEmpty()) Nora (1 Ct Tw) Wedding Band @else Nora (1 Ct Tw) Wedding Band @endif {{ $intake->product_description }} {{--
SA50633-W-20 --}}
Ring Size : {{ $intake->ring_size }}
@if (!empty($intake->engraving_text)) Engraving : {{ $intake->engraving_text }}
@endif @if (!empty($intake->engraving_font)) Engraving : Font : {{ $intake->font->value }}
@endif
${{ number_format(optional($intake)->price ?? 0, 2) }}
@if ($ordervalue->coupon_discount != 0 || !empty($ordervalue->coupon_discount)) @endif
Subtotal : ${{ number_format($intake->price ?? 0, 2) }}
Order Confirmation Deposit (50%) : ${{ number_format(($intake->price ?? 0) / 2, 2) }}
Shipping Fees : {{ $ordervalue->shipping == 0 ? 'Free' : '$' . $ordervalue->shipping }}
Sales TAX : ${{ $ordervalue->tax == 0 ? 0 : number_format($ordervalue->tax, 2) }}
Discount : ${{ number_format($ordervalue->coupon_discount) }}
Total Price : ${{ number_format($ordervalue->final_amount, 2) }}
@php $switch = $ordervalue->choose_your_impact; if (empty($switch)) { $pageLink = ''; $firstWord = ''; $theirText = ''; } switch ($switch) { case 'LGBTQ': $pageLink = 'https://www.thetrevorproject.org/'; $firstWord = 'The Trevor Project'; $theirText = 'intervention and suicide prevention services to LGBTQIA+ youth'; break; case 'Empowering_Education': $pageLink = ' https://www.donorschoose.org/'; $firstWord = 'DonorsChoose'; $theirText = 'advancing educational opportunities to underserved children'; break; case 'Mental_Health': $pageLink = 'https://www.thenationalcouncil.org/'; $firstWord = 'National Council for Mental Wellbeing'; $theirText = 'advancing mental health care for all'; break; case 'Antiviolence_and_Wellness': $pageLink = 'https://equalrightscoalition.org/'; $firstWord = 'ERA Coalition'; $theirText = 'the ERA Coalition, working to ensure constitutional protections against sex-based discrimination.'; break; default: # code... break; } @endphp
Your Journey with SAMA Begins Here
You’ll receive an email confirmation shortly with all the details. Once your order ships, we’ll send you a tracking number so you can follow its journey to you!
Thanks to your purchase, we’ve donated 1% of your order to {{ $firstWord }}, helping support {{ $theirText }} Together, we’re making love mean more.
Here’s what to expect next:
  • Order Processing: Our team is carefully preparing your ring. Custom and made-to-order pieces may take a little longer—we promise it’s worth the wait!
  • Shipping & Delivery: You’ll receive an update as soon as your order is on its way.
  • Need Help? If you have any questions, our team is here for you. Contact us at customercare@rocksama.com or 332-295-2110.
@endsection