Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/resources/views/admin/categories/add.blade.php
Назад
@extends('admin.layouts.master') @section('title', 'Add Destination') @section('content') <div class="container-xxl flex-grow-1 container-p-y"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-8 col-xs-9 bhoechie-tab-container" style="background-color:white;"> <div class="row"> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 bhoechie-tab-menu"> <div class="list-group"> <a href="#" class="list-group-item active text-center "> <i class="fas fa-pen"></i><br />Page Fields </a> </div> </div> <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 bhoechie-tab"> <!-- flight section --> <div class="bhoechie-tab-content active"> <div class="p-5 mb-4"> <h5 class="card-header">Add Category</h5> <div class="card-body"> <form action="{{ route('category.add.data') }}" method="POST" enctype="multipart/form-data"> @csrf @include('partials.alert') <div class="row"> <div class="col-md-6 mb-6"> <label class="form-label">Title <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <input type="text" class="form-control" name="title" value="{{ old('title') }}" placeholder="Enter title" /> </div> <div class="col-md-6 mb-6"> <label class="form-label">Slug <small>(Page URL)</small> <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <input type="text" class="form-control" name="slug" value="{{ old('slug') }}" placeholder="Slug" /> </div> </div> <div class="row mt-3"> <div class="col-md-12 mb-12"> <label for="exampleFormControlTextarea1" class="form-label"> Description <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <textarea name="short_description" id="div-short-editor" style="height: 300px"> {{ old('short_description') }} </textarea> </div> </div> <div class="row mt-3"> <div class="col-md-12 mb-6"> <label class="form-label">Featured Image <small>(show home page)</small> <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i></label> <input class="form-control" type="file" name="featured_image" accept=".png, .jpeg, .jpg" id="open-image-form-File" onchange="previewOpenGraphAdd()"> </div> <img id="open-image-frame" src="" class="img-fluid img-thumbnail" /> </div> <div class="row mt-3"> <div class="col-md-6 mb-6"> <label class="form-label">Status <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <select name="status" id="status" class="form-select"> <option value="1">Active</option> <option value="0">Inactive</option> </select> </div> </div> @include('admin.seo.add') <div class="row mt-3 "> <div class="col-md-12"> <a href="{{ route('categories') }}" class="btn btn-danger redirect-btn">Back</a> <button type="submit" class="btn btn-primary" onclick="showLoader()">Add</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> @php $defaultRegionId = 1; // Replace with the desired default region ID @endphp @endsection @push('admin-scripts') <script> $(document).ready(function() { $("div.bhoechie-tab-menu>div.list-group>a").click(function(e) { e.preventDefault(); $(this).siblings('a.active').removeClass("active"); $(this).addClass("active"); var index = $(this).index(); $("div.bhoechie-tab>div.bhoechie-tab-content").removeClass("active"); $("div.bhoechie-tab>div.bhoechie-tab-content").eq(index).addClass("active"); }); // Function to generate a slug from a given string function generateSlug(str) { return str .toLowerCase() .replace(/ /g, '-') // Replace spaces with hyphens .replace(/[^\w-]+/g, ''); // Remove special characters } // Event listener for the title input field $('input[name="title"]').on('input', function() { // Get the value of the title input var titleValue = $(this).val(); // Generate the slug var slugValue = generateSlug(titleValue); // Get the site URL from the APP_URL variable in the .env file var siteUrl = "{{ config('app.url') }}"; // Combine the site URL and the slug // var fullSlug = siteUrl + '/' + slugValue; var fullSlug = slugValue; // Set the value of the slug input field $('input[name="slug"]').val(fullSlug); }); }); </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка