@extends('emails.layouts.main') @section('title', 'Don\'t forget your basket!') @section('content')
@php // İndirim hesapla $originalPrice = $extra->price; $discount = $cartLog->discount; $discountedPrice = $discount != 0 ? $originalPrice - ($originalPrice * ($discount / 100)) : $originalPrice; $hasDiscount = $originalPrice != $discountedPrice; @endphp @if(isset($isLimitedOffer) && $isLimitedOffer) @endif
🛒
You forgot some items in your cart on OrhanErgun.Net!
Hi {{$userName}},

You have some items in your shopping cart!

We also gave you a special discount, so maybe this makes it easier to decide.
Products in your cart
{{$itemDetails->title}} @if($hasDiscount)
${{number_format($originalPrice, 2)}}
${{number_format($discountedPrice, 2)}}
%{{round((($originalPrice - $discountedPrice) / $originalPrice) * 100)}} Discount
@else ${{number_format($originalPrice, 2)}} @endif
@php $totalOriginal = $extra->price ?? 0; $totalDiscounted = $hasDiscount ? $discountedPrice : $totalOriginal; $hasTotalDiscount = $totalOriginal != $totalDiscounted; @endphp @if($hasTotalDiscount) @endif @if($hasTotalDiscount) @endif
Total: ${{number_format($totalOriginal, 2)}} ${{number_format($totalOriginal, 2)}}
@if($hasTotalDiscount) Discounted Total: @else Total Amount: @endif ${{number_format($totalDiscounted, 2)}}
Total ${{number_format($totalOriginal - $totalDiscounted, 2)}} savings!
View Cart and Checkout
Limited Time! Don't miss out on these special discounts! @if(isset($offerExpiration))
Campaign end date: {{$offerExpiration}} @endif
You can contact us with your questions.


Thank you for choosing us.
@endsection