@foreach ($pages as $page) @if ($page->pg_url === 'home') {{ url('/') }} @else {{ url('/') }}/{{ $page->pg_url }} @endif {{ $page->created_at->tz('UTC')->toAtomString() }} daily 0.8 @endforeach @foreach ($products as $product) {{ url('/') }}/{{ $product->product_url }} {{ $product->created_at->tz('UTC')->toAtomString() }} daily 0.8 @endforeach @foreach ($locations as $location) {{ url('/') }}/{{ $location->pg_url }} {{ $location->created_at->tz('UTC')->toAtomString() }} daily 0.8 @endforeach @foreach ($subdomain as $subdomaindata) {{ url('/') }}/{{ $subdomaindata->subdomain_slug }} {{ $subdomaindata->created_at->tz('UTC')->toAtomString() }} daily 0.8 @endforeach @foreach ($locations as $location) @foreach ($products as $data) {{ url('/') }}/{{ $location->pg_url }}/{{ $data->product_url }} {{ $data->created_at->tz('UTC')->toAtomString() }} daily 0.8 @endforeach @endforeach @foreach ($subdomain as $subdomaindata) @foreach ($products as $data) {{ url('/') }}/{{ $subdomaindata->subdomain_slug }}/{{ $data->product_url }} {{ $data->created_at->tz('UTC')->toAtomString() }} daily 0.8 @endforeach @endforeach