@extends('backend.layout.master-tailwind') @section('title', __('Sitemap Generator')) @section('admin_styles') @endsection @section('content') @php $sitemaps = glob(base_path('../sitemap/sitemap_*.xml')); if ($sitemaps) rsort($sitemaps); else $sitemaps = []; @endphp

{{ __('Sitemap Generator') }}

{{ __('Generate and manage your XML sitemap') }}

@csrf
{{-- Info notice --}}
{{ __('Generating a sitemap will include all public routes: homepage, projects, jobs, freelancers, and dynamic pages. The file is saved to the /sitemap/ directory.') }}
@if(count($sitemaps) > 0)
{{-- File list --}}
{{ __('Generated Files') }} {{ count($sitemaps) }}
@foreach($sitemaps as $index => $sitemap) @php $filename = basename($sitemap); @endphp
{{ $filename }} @if($index === 0) {{ __('latest') }} @endif
{{ date('M d Y, H:i', filemtime($sitemap)) }}
@endforeach
{{-- Latest content preview --}}
{{ __('Latest Sitemap Content') }}
@else

{{ __('No sitemap files found.') }}

{{ __('Click "Generate Sitemap" to create your first one.') }}

@endif
@endsection @section('script') @endsection