File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/demo/Dynast/resources/views/Dashboard/Pages/meta/create.blade.php
Back
@extends('layouts.dashboardLayout') @section('title', 'Create Page Meta Data') @section('content') <div class="container-fluid"> <div class="card shadow mb-4"> <div class="card-header py-3"> <div class="row"> <div class="col-md-8"> <h6 class="m-0 font-weight-bold text-primary">Create New Page Meta Record</h6> </div> <div class="col-md-4 text-end"> <a href="{{ route('meta.index') }}" class="btn btn-primary btn-sm float-right"><i class="fas fa-arrow-left"></i> Back</a> </div> </div> </div> <div class="card-body"> <form action="{{ route('meta.store') }}" method="POST"> @csrf {{-- SECTION 1: IDENTIFICATION & ROBOTS --}} <h5 class="mt-4 text-primary">Page Setup & Indexing</h5> <hr class="mt-1"> <div class="row"> {{-- Page Path --}} <div class="col-md-6 mb-3"> <label for="page_path" class="form-label">Page Path (Slug)</label> <input type="text" class="form-control @error('page_path') is-invalid @enderror" id="page_path" name="page_path" value="{{ old('page_path', '/') }}" placeholder="/about-us or /products/item-slug"> <small class="form-text text-muted">Use `/` for the homepage. **Must be unique.**</small> @error('page_path')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> {{-- Robots Indexing --}} <div class="col-md-6 mb-3"> <label for="robots" class="form-label">Robots Indexing</label> <select class="form-control @error('robots') is-invalid @enderror" id="robots" name="robots"> <option value="index, follow" {{ old('robots') == 'index, follow' ? 'selected' : '' }}>index, follow (Default - Recommended)</option> <option value="noindex, follow" {{ old('robots') == 'noindex, follow' ? 'selected' : '' }}> noindex, follow (Hide page from search results)</option> <option value="noindex, nofollow" {{ old('robots') == 'noindex, nofollow' ? 'selected' : '' }}>noindex, nofollow (Strictly hide and block link crawling)</option> </select> <small class="form-text text-muted">Controls how search engines crawl and index this page.</small> @error('robots')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> </div> {{-- SECTION 2: CORE SEO TAGS --}} <h5 class="mt-4 text-primary">Core SEO Tags (Search Engine Result Page - SERP)</h5> <hr class="mt-1"> <div class="mb-3"> <label for="title" class="form-label">Meta Title (max ~60 chars)</label> <input type="text" class="form-control @error('title') is-invalid @enderror" id="title" name="title" value="{{ old('title') }}" maxlength="255" placeholder="Example: Best Luxury Hotel in Shimla | The Sapphire Resort"> <small class="form-text text-muted">This is the blue link displayed in Google results (approx. 50-60 characters ideal).</small> @error('title')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> <div class="mb-3"> <label for="description" class="form-label">Meta Description (max ~160 chars)</label> <textarea class="form-control @error('description') is-invalid @enderror" id="description" name="description" rows="3" placeholder="Example: Book your dream getaway at The Sapphire Resort. Enjoy stunning mountain views, five-star service, and world-class amenities in Shimla.">{{ old('description') }}</textarea> <small class="form-text text-muted">This is the text snippet displayed under the title in search results (approx. 150-160 characters ideal).</small> @error('description')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> <div class="row"> <div class="col-md-6 mb-3"> <label for="keywords" class="form-label">Keywords (Comma Separated)</label> <input type="text" class="form-control @error('keywords') is-invalid @enderror" id="keywords" name="keywords" value="{{ old('keywords') }}" maxlength="255" placeholder="Example: luxury hotel, shimla resort, sapphire booking"> <small class="form-text text-muted">Optional for modern SEO, but include primary page topics.</small> @error('keywords')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> <div class="col-md-6 mb-3"> <label for="canonical_url" class="form-label">Canonical URL</label> <input type="url" class="form-control @error('canonical_url') is-invalid @enderror" id="canonical_url" name="canonical_url" value="{{ old('canonical_url') }}" maxlength="255" placeholder="Example: https://www.yourdomain.com/official-page"> <small class="form-text text-muted">If this page is duplicated elsewhere, enter the **preferred** full URL here. Leave blank otherwise.</small> @error('canonical_url')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> </div> {{-- SECTION 3: OPEN GRAPH (Social Media) --}} <h5 class="mt-4 text-primary">Open Graph (Facebook/LinkedIn Preview)</h5> <hr class="mt-1"> <div class="row"> <div class="col-md-6 mb-3"> <label for="og_title" class="form-label">OG Title</label> <input type="text" class="form-control" id="og_title" name="og_title" value="{{ old('og_title') }}" placeholder="Defaults to Meta Title if empty."> <small class="form-text text-muted">Title displayed when this page is shared on Facebook or LinkedIn.</small> </div> <div class="col-md-6 mb-3"> <label for="og_site_name" class="form-label">OG Site Name (Optional)</label> <input type="text" class="form-control" id="og_site_name" name="og_site_name" value="{{ old('og_site_name') }}" placeholder="Example: The Sapphire Resort"> <small class="form-text text-muted">The name of your website.</small> </div> </div> <div class="mb-3"> <label for="og_description" class="form-label">OG Description</label> <textarea class="form-control" id="og_description" name="og_description" rows="2" placeholder="Defaults to Meta Description if empty.">{{ old('og_description') }}</textarea> <small class="form-text text-muted">Description displayed when this page is shared on Facebook or LinkedIn.</small> </div> <div class="row"> <div class="col-md-6 mb-3"> <label for="og_image" class="form-label">OG Image URL</label> <input type="url" class="form-control" id="og_image" name="og_image" value="{{ old('og_image') }}" placeholder="Example: https://www.yourdomain.com/images/og_shimla.jpg"> <small class="form-text text-muted">Full URL to the image used for social media sharing (1200x630px is standard).</small> @error('og_image')<div class="invalid-feedback d-block">{{ $message }}</div>@enderror </div> <div class="col-md-3 mb-3"> <label for="og_type" class="form-label">OG Type</label> <select class="form-control" id="og_type" name="og_type"> <option value="website" {{ old('og_type') == 'website' ? 'selected' : '' }}>Website (Default) </option> <option value="article" {{ old('og_type') == 'article' ? 'selected' : '' }}>Article</option> <option value="product" {{ old('og_type') == 'product' ? 'selected' : '' }}>Product</option> </select> <small class="form-text text-muted">Defines the type of content.</small> </div> <div class="col-md-3 mb-3"> <label for="og_locale" class="form-label">OG Locale</label> <input type="text" class="form-control" id="og_locale" name="og_locale" value="{{ old('og_locale', 'en_US') }}" placeholder="Example: en_GB"> <small class="form-text text-muted">Language/region of the page.</small> </div> </div> {{-- SECTION 4: TWITTER CARDS --}} <h5 class="mt-4 text-primary">Twitter Card (X Preview)</h5> <hr class="mt-1"> <div class="row"> <div class="col-md-6 mb-3"> <label for="twitter_card" class="form-label">Twitter Card Type</label> <select class="form-control" id="twitter_card" name="twitter_card"> <option value="summary_large_image" {{ old('twitter_card') == 'summary_large_image' ? 'selected' : '' }}>Summary Large Image (Recommended)</option> <option value="summary" {{ old('twitter_card') == 'summary' ? 'selected' : '' }}>Summary </option> </select> <small class="form-text text-muted">How the card preview appears on X/Twitter.</small> </div> <div class="col-md-6 mb-3"> <label for="twitter_site" class="form-label">Twitter Site (@username)</label> <input type="text" class="form-control" id="twitter_site" name="twitter_site" value="{{ old('twitter_site') }}" placeholder="@YourCompanyName"> <small class="form-text text-muted">The Twitter handle of the website/creator.</small> </div> </div> <div class="mb-3"> <label for="twitter_title" class="form-label">Twitter Title</label> <input type="text" class="form-control" id="twitter_title" name="twitter_title" value="{{ old('twitter_title') }}" placeholder="Defaults to OG Title/Meta Title if empty."> </div> <div class="mb-3"> <label for="twitter_description" class="form-label">Twitter Description</label> <textarea class="form-control" id="twitter_description" name="twitter_description" rows="2" placeholder="Defaults to OG Description/Meta Description if empty.">{{ old('twitter_description') }}</textarea> </div> <div class="mb-3"> <label for="twitter_image" class="form-label">Twitter Image URL</label> <input type="url" class="form-control" id="twitter_image" name="twitter_image" value="{{ old('twitter_image') }}" placeholder="Example: https://www.yourdomain.com/images/twitter_promo.jpg"> <small class="form-text text-muted">Full URL to the image used specifically for the Twitter card.</small> @error('twitter_image')<div class="invalid-feedback d-block">{{ $message }}</div>@enderror </div> {{-- SECTION 5: HREFLANG (Advanced) --}} <h5 class="mt-4 text-primary">Hreflang / Alternate Links (International SEO)</h5> <hr class="mt-1"> <div class="mb-3"> <label for="alternate_links" class="form-label">Alternate Links (JSON format)</label> <textarea class="form-control @error('alternate_links') is-invalid @enderror" id="alternate_links" name="alternate_links" rows="3" placeholder='{"en": "https://site.com/en/page", "fr": "https://site.com/fr/page"}'>{{ old('alternate_links') }}</textarea> <small class="form-text text-muted">**Crucial for multi-language sites.** Maps language codes to the full URL of the equivalent page in that language. Must be valid JSON.</small> @error('alternate_links')<div class="invalid-feedback">{{ $message }}</div>@enderror </div> <div class="mt-4"> <button type="submit" class="btn btn-success"><i class="fas fa-save"></i> Save Meta Data</button> <a href="{{ route('meta.index') }}" class="btn btn-secondary">Cancel</a> </div> </form> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings