@php // $base_url = 'https://www.merisehat.pk'; $base_url = rtrim(env('APP_URL', 'https://www.merisehat.pk/'), '/'); $changefreq = 'monthly'; $priority = '0.5'; @endphp {{$base_url}} daily 1.0 {{$base_url}}/ur daily 1 @foreach ($footers as $footer) {{$base_url.'/'.ltrim($footer['link'], '/')}} {{$changefreq}} {{$priority}} @endforeach @foreach ($articles as $article) @if($article['language']['id'] != 1) {{$base_url.'/'.$article['language']['slug'].'/article/'.$article['slug']}} @else {{$base_url.'/article/'.$article['slug']}} @endif {{$changefreq}} {{$priority}} @endforeach @foreach ($diseases as $disease) @if($disease['language']['id'] != 1) {{$base_url.'/'.$disease['language']['slug'].'/disease/'.$disease['slug']}} @else {{$base_url.'/disease/'.$disease['slug']}} @endif {{$changefreq}} {{$priority}} @endforeach @foreach ($drugs as $drug) @if($drug['language']['id'] != 1) {{$base_url.'/'.$drug['language']['slug'].'/drug/'.$drug['slug']}} @else {{$base_url.'/drug/'.$drug['slug']}} @endif {{$changefreq}} {{$priority}} @endforeach