@extends('admin_html.layouts.main')

@section('content')
<div class="container-fluid">
                <div class="row ">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-header d-flex align-items-center justify-content-between">
                                <h5 class="card-title mb-0"> <i class="fa fa-book"></i> &nbsp; Add New Category </h5>
                                <div class="card-tools">
                                    <button type="button" class="btn btn-tool" data-card-widget="collapse"
                                        title="Collapse">
                                        <i class="fas fa-minus"></i>
                                    </button>
                                    <button type="button" class="btn btn-tool">
                                        <a href="./category.html" class="btn btn-info btn-sm"><i
                                                class="mdi mdi-plus"></i> <i class="fa fa-arrow-left"></i> Back</a>
                                    </button>
                                </div>
                            </div>
                            <div class="card-body">
                                <div class="col-md-11">
                                    <input type="hidden" value="" id="id" name="id">
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">Category Name <code>*</code></label>
                                        <div class="col-sm-5">
                                            <input type="text" value="" id="title" name="name" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="" class="col-sm-2 col-form-label">Alias <code>*</code></label>
                                        <div class="col-sm-5">
                                            <input type="text" value="" id="alias" name="alias" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="" class="col-sm-2 col-form-label">Parent Category
                                            <code>*</code></label>
                                        <div class="col-sm-5">
                                            <select id="parent_id" name="parent_id" class="form-control">
                                                <option value=""> Select Parent Category </option>
                                                <option value="1"> Food &amp; Agriculture </option>
                                                <option value="3"> Crafts &amp; Hobbies </option>
                                                <option value="4"> Events &amp; Entertainment </option>
                                                <option value="5"> Beauty &amp; Fitness </option>
                                                <option value="6"> Business Services </option>
                                                <option value="7"> Education, Training &amp; Career </option>
                                                <option value="8"> Charity, Community &amp; Foundations </option>
                                                <option value="9"> Electronics &amp; Technology </option>
                                                <option value="10"> Construction &amp; Manufacture </option>
                                                <option value="11"> Restaurant &amp; Cafe </option>
                                                <option value="12"> Home, Furniture &amp; Decor </option>
                                                <option value="13"> Household &amp; Home Services </option>
                                                <option value="14"> Fashion, Clothing &amp; Shopping </option>
                                                <option value="15"> Medical &amp; Health </option>
                                                <option value="16"> Travel, Tour &amp; Vacation </option>
                                                <option value="17"> Media, News &amp; Publishing </option>
                                                <option value="18"> Sports &amp; Goods </option>
                                                <option value="19"> Governments &amp; Legal Services </option>
                                                <option value="20"> Money &amp; Insurance </option>
                                                <option value="21"> Energy &amp; Power </option>
                                                <option value="22"> Automobile &amp; Vehicle </option>
                                                <option value="239"> Web &amp; E-Commerce </option>
                                                <option value="280"> Miscellaneous </option>
                                                <option value="296"> Textile, Garments &amp; Apparels </option>
                                                <option value="300"> Land &amp; Housing </option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">Prefix</label>
                                        <div class="col-sm-2">
                                            <input type="text" value="" name="prefix" class="form-control">
                                        </div>
                                        <label class="col-sm-1 col-form-label">Suffix</label>
                                        <div class="col-sm-2">
                                            <input type="text" value="" name="suffix" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">Per Page</label>
                                        <div class="col-sm-5">
                                            <select name="per_page" class="form-control">
                                                <option value="10">10</option>
                                                <option value="20">20</option>
                                                <option value="30">30</option>
                                                <option value="40">40</option>
                                                <option value="50">50</option>
                                                <option value="60">60</option>
                                                <option value="70">70</option>
                                                <option value="80">80</option>
                                                <option value="90">90</option>
                                                <option value="100">100</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">Meta Title </label>
                                        <div class="col-sm-5">
                                            <input type="text" value="" name="meta_title" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <!-- Featured Image -->
                                        <div class="mb-3 row">
                                            <label for="featured_image" class="col-sm-2 col-form-label">Image</label>
                                            <div class="col-sm-5">
                                                <div class="input-group">
                                                    <input type="file" accept="image/*" name="featured_image"
                                                        id="featured_image" class="form-control">
                                                    <div class="input-group-text">
                                                        <span class="fa fa-image"></span>
                                                    </div>
                                                </div>
                                                <!-- Image Preview -->
                                                <div class="mt-3">
                                                    <img id="imagePreview" src="#" alt="Preview Image"
                                                        class="img-fluid border"
                                                        style="display:none; max-width: 250px;">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-sm-2 col-form-label">Status<code>*</code></label>
                                        <div class="col-sm-5">
                                            <select name="status" class="form-control">
                                                <option value="1">Active</option>
                                                <option value="0">Inactive</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="card-footer">
                                <div class="offset-md-3 col-sm-9">
                                    <button type="submit" name="submit" class="btn btn-success">Save </button>
                                    &nbsp;&nbsp;
                                    <button name="submit" value="save-n-exit" type="submit" class="btn btn-primary">Save
                                        &amp; Exit</button>
                                    &nbsp;&nbsp;
                                    <a href="#" class="btn btn-warning">Cancel</a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
@endsection('content')
