{!! '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' !!} {{-- Core Storefront Pages --}} {{ route('home') }} {{ now()->tz('UTC')->toAtomString() }} daily 1.0 {{ route('shop') }} {{ now()->tz('UTC')->toAtomString() }} daily 0.9 @if(\Illuminate\Support\Facades\Route::has('bhaitika')) {{ route('bhaitika') }} {{ now()->tz('UTC')->toAtomString() }} weekly 0.9 @endif {{ route('about') }} monthly 0.7 {{ route('contact') }} monthly 0.7 {{-- Legal & Customer Policy Pages --}} @foreach(array_keys(\App\Support\Policies::MAP) as $policySlug) {{ route('policy.short.' . $policySlug) }} monthly 0.4 @endforeach {{-- Product Categories --}} @foreach(\App\Models\Category::all() as $category) {{ route('shop', ['category' => $category->slug]) }} weekly 0.8 @endforeach {{-- Available Store Products --}} @foreach(\App\Models\Product::where('status', 'available')->with('images')->get() as $product) {{ route('product.show', $product->slug) }} {{ ($product->updated_at ?? now())->tz('UTC')->toAtomString() }} weekly 0.8 @if($product->images && $product->images->count() > 0) @foreach($product->images as $img) @if(!empty($img->image_path)) {{ asset('storage/' . $img->image_path) }} {{ htmlspecialchars($product->name, ENT_XML1, 'UTF-8') }} @endif @endforeach @endif @endforeach