File Manager Lite
Dir:
/home/codewavebd/public_html/resources/views/admin/products
Upload
[..]
edit.blade.php (5.32 KB)
Edit
Rename
Del
index.blade.php (2.9 KB)
Edit
Rename
Del
Edit: edit.blade.php
@extends('layouts.admin') @section('title', 'Edit Software Product') @section('page_title', 'Update Software Product') @section('content') <div class="admin-card mb-5"> <h5 class="font-heading text-white mb-4 border-bottom border-secondary pb-3">Update Software Specs & Details</h5> <form action="{{ route('admin.products.update', $product->id) }}" method="POST" class="admin-form"> @csrf @method('PUT') <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label">Software Name</label> <input type="text" name="name" class="form-control" value="{{ old('name', $product->name) }}" required> </div> <div class="col-md-4 mb-3"> <label class="form-label">Software Category</label> <select name="category_id" class="form-select" required> <option value="">Select Category...</option> @foreach($categories as $cat) <option value="{{ $cat->id }}" @selected($product->category_id === $cat->id)>{{ $cat->name }}</option> @endforeach </select> </div> <div class="col-md-2 mb-3"> <label class="form-label">Base Price (৳)</label> <input type="number" name="price" class="form-control" value="{{ old('price', $product->price) }}" required> </div> </div> <div class="mb-3"> <label class="form-label">Short Description</label> <textarea name="short_description" rows="2" class="form-control" required>{{ old('short_description', $product->short_description) }}</textarea> </div> <div class="mb-3"> <label class="form-label">Long Description (HTML or Raw Text)</label> <textarea name="long_description" rows="6" class="form-control" required>{{ old('long_description', $product->long_description) }}</textarea> </div> <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label">Demo Video YouTube Embed URL</label> <input type="url" name="demo_video_url" class="form-control" value="{{ old('demo_video_url', $product->demo_video_url) }}"> <small class="text-muted">Must be the embed format (`/embed/` URL), not standard watch link.</small> </div> <div class="col-md-6 mb-3"> <label class="form-label">Status</label> <select name="status" class="form-select" required> <option value="active" @selected($product->status === 'active')>Active & Visible</option> <option value="inactive" @selected($product->status === 'inactive')>Inactive / Hidden</option> </select> </div> </div> <div class="row"> <div class="col-md-4 mb-3"> <label class="form-label">Product Features Checklist (one per line)</label> <textarea name="features_raw" rows="4" class="form-control">{{ old('features_raw', $features_raw) }}</textarea> </div> <div class="col-md-4 mb-3"> <label class="form-label">Gallery Images (comma separated)</label> <textarea name="gallery_raw" rows="4" class="form-control">{{ old('gallery_raw', $gallery_raw) }}</textarea> <small class="text-muted">From the Media Manager</small> </div> <div class="col-md-4 mb-3"> <label class="form-label">Screenshots Gallery (comma separated)</label> <textarea name="screenshots_raw" rows="4" class="form-control">{{ old('screenshots_raw', $screenshots_raw) }}</textarea> <small class="text-muted">Separate multiple filenames with commas</small> </div> </div> <div class="mb-4"> <label class="form-label">Pricing Plans Tiers Setup (Format: <code>Plan Name | Price | Plan Description</code> on each line)</label> <textarea name="pricing_plans_raw" rows="5" class="form-control">{{ old('pricing_plans_raw', $pricing_plans_raw) }}</textarea> </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', $product->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', $product->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" value="{{ old('seo_keywords', $product->seo_keywords) }}"> </div> <div class="text-end pt-3 border-top border-secondary"> <a href="{{ route('admin.products.index') }}" class="btn btn-outline-secondary me-2">Cancel</a> <button type="submit" class="btn btn-primary-glow px-4">Update Product</button> </div> </form> </div> @endsection
Simpan