File Manager Lite
Dir:
/home/codewavebd/public_html/resources/views/admin/blog
Upload
[..]
create.blade.php (3.88 KB)
Edit
Rename
Del
edit.blade.php (3.93 KB)
Edit
Rename
Del
index.blade.php (2.62 KB)
Edit
Rename
Del
Edit: create.blade.php
@extends('layouts.admin') @section('title', 'Add Blog Post') @section('page_title', 'Create Blog Post') @section('content') <div class="admin-card mb-5"> <h5 class="font-heading text-white mb-4 border-bottom border-secondary pb-3">Article Specs & Details</h5> <form action="{{ route('admin.blog.store') }}" method="POST" class="admin-form"> @csrf <div class="row"> <div class="col-md-8 mb-3"> <label class="form-label">Article Title</label> <input type="text" name="title" class="form-control" placeholder="e.g. Scaling Monolith Laravel 12 on AWS VPS" value="{{ old('title') }}" required> </div> <div class="col-md-4 mb-3"> <label class="form-label">Author Name</label> <input type="text" name="author_name" class="form-control" value="{{ old('author_name', 'Tanvir Rahman') }}" required> </div> </div> <div class="mb-3"> <label class="form-label">Short Summary / Description</label> <textarea name="short_description" rows="2" class="form-control" placeholder="Brief outline summarizing the key technical takeaways (max 500 chars)" required>{{ old('short_description') }}</textarea> </div> <div class="mb-3"> <label class="form-label">Article Body Content (HTML allowed)</label> <textarea name="content" rows="10" class="form-control font-monospace" placeholder="<p>Full article paragraphs...</p>" required>{{ old('content') }}</textarea> </div> <div class="row"> <div class="col-md-4 mb-3"> <label class="form-label">Featured Image Name</label> <input type="text" name="image" class="form-control" placeholder="e.g. blog_cover.webp" value="{{ old('image') }}"> <small class="text-muted">From the <a href="{{ route('admin.media.index') }}" target="_blank" class="text-info text-decoration-none">Media Manager <i class="bi bi-box-arrow-up-right"></i></a></small> </div> <div class="col-md-4 mb-3"> <label class="form-label">Status</label> <select name="status" class="form-select" required> <option value="published">Published & Visible</option> <option value="draft">Draft / Hidden</option> </select> </div> <div class="col-md-4 mb-3"> <label class="form-label">Publish Date & Time (Optional)</label> <input type="datetime-local" name="published_at" class="form-control" value="{{ old('published_at') }}"> <small class="text-muted">Leave empty to set publication timestamp to now</small> </div> </div> <hr class="border-secondary my-4"> <h5 class="font-heading text-info mb-3">SEO Override Fields (Optional)</h5> <div class="mb-3"> <label class="form-label">SEO Title Override</label> <input type="text" name="seo_title" class="form-control" value="{{ old('seo_title') }}"> </div> <div class="mb-3"> <label class="form-label">SEO Meta Description Override</label> <textarea name="seo_meta_description" rows="2" class="form-control">{{ old('seo_meta_description') }}</textarea> </div> <div class="mb-4"> <label class="form-label">SEO Meta Keywords</label> <input type="text" name="seo_keywords" class="form-control" placeholder="e.g. laravel tips, tech guide bd" value="{{ old('seo_keywords') }}"> </div> <div class="text-end pt-3 border-top border-secondary"> <a href="{{ route('admin.blog.index') }}" class="btn btn-outline-secondary me-2">Cancel</a> <button type="submit" class="btn btn-primary-glow px-4">Create Post</button> </div> </form> </div> @endsection
Simpan