{extends file="$layouts_admin"}

{block name="content"}
    <div class="row">
        <div class="widget-1 col-md-6 col-sm-12">
            <div class="panel">
                <div class="panel-hdr">
                    <h2 class="panel-title">{$_L['Edit Categories']}</h2>
                </div>
                <div class="panel-container">
                    <div class="panel-content">
                        <form role="form" name="accadd" method="post" action="{$_url}settings/categories-edit-post">
                            <div class="mb-3">
                                <label for="name">{$_L['Name']}</label>

                                <input type="text" class="form-control" id="name" name="name" value="{$c['name']}">
                            </div>



                            <input type="hidden" name="id" value="{$c['id']}">
                            <button type="submit" class="btn btn-primary">{$_L['Submit']}</button>
                        </form>
                    </div>

                </div>
            </div>
        </div> <!-- Widget-1 end-->
        <div class="widget-1 col-md-6 col-sm-12">
            <div class="panel">
                <div class="panel-hdr">
                    <h2 class="panel-title">{$_L['Delete']}</h2>
                </div>
                <div class="panel-container">
                    <div class="panel-content">
                        <p>{$_L['Deleting Categories will']} </p>
                         <a href="{$_url}settings/categories-delete/{$c['id']}" class="btn btn-danger"> {$_L['Delete']}</a>
                    </div>

                </div>
            </div>
        </div>
        <!-- Widget-2 end-->
    </div>
{/block}
