HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/stream-flix.workzenix.com/resources/views/admin/pages/categories/add.blade.php
@extends('admin.index')

@section('title', 'Add Category')

@section('content')
    <div class="content-area">
        <!-- Header Section -->
        <div class="flex-column align-items-center " style="margin-bottom: 5%;">
            <h1 class="mb-2 stat-value" style="font-weight: 700;">Add New Category</h1>
            <p class="stat-label" style="max-width: 600px;">
                Fill out the form below to create a new category and organize your content effectively.
            </p>
        </div>

        <!-- Form Card Centered -->
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card shadow-sm border-0">
                    <div class="card-body p-4">
                        <form id="addCategoryForm" action="{{ route('category.store') }}" method="POST">
                            @csrf

                            <div class="form-group mb-3">
                                <label class="form-label">Category Name *</label>
                                <input type="text" name="name" class="form-control" placeholder="Enter category name"
                                    required>
                            </div>

                            <div class="form-group mb-3">
                                <label class="form-label">Status</label>
                                <select name="status" class="form-control">
                                    <option value="active">Active</option>
                                    <option value="inactive">Inactive</option>
                                </select>
                            </div>

                            <div class="form-group mb-4">
                                <div class="form-check">
                                    <!-- Hidden input sends 0 if checkbox is unchecked -->
                                    <input type="hidden" name="featured" value="0">
                                    <input type="checkbox" name="featured" value="1" id="featured"
                                        class="form-check-input">
                                    <label class="form-check-label" for="featured">Feature this category</label>
                                </div>
                            </div>


                            <div class="d-flex justify-content-between">
                                <button type="submit" class="btn btn-primary">
                                    <i class="fas fa-save"></i> Save Category
                                </button>
                                <a href="{{ route('category.list') }}" class="btn btn-outline-secondary">Back to List</a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection