@php $product = $quoteProduct->product; $categoryName = $product?->category?->name ?? 'Uncategorized'; $latestImage = $product?->images?->last(); $special = $product->special_price ?? null; $standard = $product->standard_price ?? null; $sku = $product->sku ?? null; $brand = $product->brand?->name ?? null; @endphp @component('mail::message') # Quote Request Received **Reference ID: #{{ $userQuote->id ?? 'N/A' }}** Hello **{{ $userQuote->name }}**, Thank you for reaching out! We have received your request for a quote and our team is currently reviewing the details. You can find a summary of your request below. --- ## 📋 Summary of Request @if($userQuote->email) @endif
Customer: {{ $userQuote->name }}
Phone: {{ $userQuote->phone }}
Email: {{ $userQuote->email }}
--- ## 📦 Product Information @if($latestImage) @php $path = public_path('uploads/products/images/' . $latestImage->image); $src = is_file($path) ? $message->embed($path) : asset('uploads/products/images/' . $latestImage->image); @endphp
{{ $product->name }}
@endif **Product:** {{ $product->name ?? 'Unknown Product' }} **Quantity:** {{ $quoteProduct->qty ?? 1 }} Units | Detail | Information | | :--- | :--- | | **Category** | {{ $categoryName }} | @if($sku)| **SKU** | {{ $sku }} |@endif @if($brand)| **Brand** | {{ $brand }} |@endif @if($special || $standard)| **Est. Price** | QR {{ number_format($special ?? 0, 2) }} – {{ number_format($standard ?? 0, 2) }} |@endif @if(!empty($product->description)) > **Product Description:** > {{ \Illuminate\Support\Str::limit($product->description, 150) }} @endif --- @if($userQuote->note) **Your Message:** *"{{ $userQuote->note }}"* @endif @component('mail::button', ['url' => 'https://mfmsqatar.lifelinehealthcare.com.pk/public']) Visit Our Website @endcomponent Our representative will contact you shortly via **{{ $userQuote->phone }}**. Regards, **{{ config('app.name') }}** @endcomponent