first change
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{{ html()->form('POST', route('sitemapConfig.store'))->class('needs-validation')->attributes(['novalidate'])->open() }}
|
||||
|
||||
@isset($sitemapConfig)
|
||||
{{ html()->hidden('id', $sitemapConfig->id) }}
|
||||
@endisset
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="mb-3">
|
||||
{{ 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') }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
{{ 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') }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
{{ 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') }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
{{ 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') }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
{{ 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') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-form-buttons :href="route('sitemapConfig.index')" :label="isset($sitemapConfig) ? 'Update' : 'Create'" />
|
||||
</div>
|
||||
</div>
|
||||
{{ html()->form()->close() }}
|
@@ -0,0 +1,12 @@
|
||||
<div class="hstack flex-wrap gap-3">
|
||||
<a href="{{ route('sitemapConfig.index', ['id' => $id]) }}" class="link-success fs-15 edit-item-btn"><i
|
||||
class="ri-edit-2-line"></i></a>
|
||||
|
||||
<a data-link="{{ route('sitemapConfig.toggle', $id) }}" data-bs-toggle="tooltip" data-bs-placement="bottom"
|
||||
data-bs-title="Toggle" data-status="{{ $status == 1 ? 'Draft' : 'Published' }}"
|
||||
class="link-info fs-15 toggle-item"><i class="{{ $status == 1 ? 'ri-toggle-line' : 'ri-toggle-fill' }}"></i></a>
|
||||
|
||||
<a href="javascript:void(0);" data-link="{{ route('sitemapConfig.destroy', $id) }}"
|
||||
class="link-danger fs-15 remove-item"><i class="ri-delete-bin-line"></i>
|
||||
</a>
|
||||
</div>
|
@@ -0,0 +1,51 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<x-dashboard.breadcumb :title="$title" />
|
||||
|
||||
@if ($errors->any())
|
||||
<x-flash-message type="danger" :messages="$errors->all()" />
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-xl-3">
|
||||
<div class="card profile-card">
|
||||
@include('sitemap::sitemapConfig.add-sitemap-config-form')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-xl-8 col-lg-9">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@php
|
||||
$columns = [
|
||||
[
|
||||
'title' => 'S.N',
|
||||
'data' => 'DT_RowIndex',
|
||||
'name' => 'DT_RowIndex',
|
||||
'orderable' => false,
|
||||
'searchable' => false,
|
||||
'sortable' => false,
|
||||
],
|
||||
['title' => 'Name', 'data' => 'title', 'name' => 'title'],
|
||||
['title' => 'Status', 'data' => 'status', 'name' => 'status'],
|
||||
[
|
||||
'title' => 'Action',
|
||||
'data' => 'action',
|
||||
'orderable' => false,
|
||||
'searchable' => false,
|
||||
],
|
||||
];
|
||||
@endphp
|
||||
|
||||
<x-data-table-script :route="route('sitemapConfig.index')" :reorder="null" :columns="$columns" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
Reference in New Issue
Block a user