{{ html()->form('POST', route('sitemapConfig.store'))->class('needs-validation')->attributes(['novalidate'])->open() }} @isset($sitemapConfig) {{ html()->hidden('id', $sitemapConfig->id) }} @endisset
{{ html()->label('Config Name')->for('title') }} {{ html()->span('*')->class('text-danger') }} {{ html()->text('title')->value($sitemapConfig->title ?? old('title'))->class('form-control')->placeholder('Enter Config Name')->required() }} {{ html()->div('Please enter a title.')->class('invalid-feedback') }}
{{ html()->label('Max depth')->class('form-label')->for('max_depth') }} {{ html()->number('max_depth')->class('form-control')->value($sitemapConfig->max_depth ?? old('max_depth'))->placeholder('Max Depth') }}
{{ html()->label('Max crawl count')->class('form-label')->for('max_count') }} {{ html()->number('max_crawl_count')->class('form-control')->value($sitemapConfig->max_crawl_count ?? old('max_crawl_count'))->placeholder('Page Crawl Count') }}
{{ html()->label('Ignore crawler')->class('form-label')->for('sitemap_excludes') }} {{ html()->textarea('sitemap_excludes')->class('form-control')->value($sitemapConfig->sitemap_excludes ?? old('sitemap_excludes'))->placeholder('CSV Format') }}
{{ html()->label('Ignore robots')->class('form-label')->for('ignore_robot') }} {{ html()->select('ignore_robot', ['0' => 'Disable', '1' => 'Enable'])->value($sitemapConfig->ignore_robot ?? old('ignore_robot'))->class('form-select choices-select') }}
{{ html()->form()->close() }}