@php $brandColor = \App\Models\Setting::getValue('primary_brand_color', '#006738'); $siteName = \App\Models\Setting::getValue('site_name', 'Sawdabazar'); $storePhone = \App\Models\Setting::getValue('store_phone'); $storeEmail = \App\Models\Setting::getValue('store_email'); $storeAddress = \App\Models\Setting::getValue('store_address'); $logo = \App\Models\Setting::getValue('store_logo'); $logoUrl = $logo ? \Illuminate\Support\Facades\Storage::url($logo) : null; // Social URLs $socialFacebook = \App\Models\Setting::getValue('social_facebook'); $socialInstagram = \App\Models\Setting::getValue('social_instagram'); $socialWhatsapp = \App\Models\Setting::getValue('social_whatsapp'); $socialYoutube = \App\Models\Setting::getValue('social_youtube'); @endphp {{ $siteName }} Invoice
@if($logoUrl) {{ $siteName }} @else

{{ $siteName }}

@endif
{!! $emailContent !!}
Order Info
Order Number: #{{ $order->order_number }}
Placed At: {{ $order->created_at->format('M j, Y h:i A') }}
Payment Status: {{ strtoupper($order->payment_status) }}
Subtotal: ৳{{ number_format($order->subtotal, 2) }}
Delivery Charge: ৳{{ number_format($order->shipping_charge, 2) }}
@if($order->discount > 0)
Discount: -৳{{ number_format($order->discount, 2) }}
@endif
Grand Total: ৳{{ number_format($order->grand_total, 2) }}