<?php
include_once "global.php";

$pageTitle = 'Manage Invoice Statuses - ';
include_once 'header.php';
?>

<!--breadcrumb-->
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
    <div class="breadcrumb-title pe-3">Custom Settings</div>
    <div class="ps-3">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb mb-0 p-0">
                <li class="breadcrumb-item"><a href="javascript:;"></a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">Invoice Statuses</li>
            </ol>
        </nav>
    </div>
</div>
<!--end breadcrumb-->
<h6 class="mb-0 text-uppercase">Manage Invoice Statuses</h6>
<hr>
<div class="card">
    <div class="card-body">
        <ul class="nav nav-tabs nav-success" role="tablist">
            <li class="nav-item" role="presentation">
                <a class="nav-link active" data-bs-toggle="tab" href="#successhome" role="tab" aria-selected="true">
                    <div class="tab-title">Active Statuses</div>
                </a>
            </li>
            <li class="nav-item" role="presentation">
                <a class="nav-link" data-bs-toggle="tab" href="#successprofile" role="tab" aria-selected="false">
                    <div class="tab-title">Draft</div>
                </a>
            </li>
            <li class="nav-item" role="presentation">
                <a class="nav-link" data-bs-toggle="tab" href="#successcontact" role="tab" aria-selected="false">
                    <div class="tab-title">Add New Status</div>
                </a>
            </li>
        </ul>
        <div class="tab-content py-3">
            <div class="tab-pane fade show active" id="successhome" role="tabpanel">
                <?php $crm->invoiceStatusesView(); ?>
            </div>
            <div class="tab-pane fade" id="successprofile" role="tabpanel">
                <?php $crm->invoiceStatusesDraft(); ?>
            </div>
            <div class="tab-pane fade" id="successcontact" role="tabpanel">
                <form id="invoicestatusAddForm" class="row g-3" method="post">
                    <div class="row mb-3">
                        <label for="invoicestatus" class="col-sm-3 col-form-label">Status Title</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="invoicestatus" id="invoicestatus">
                        </div>
                    </div>
                    <div class="row mb-3">
                        <label for="publish" class="col-sm-3 col-form-label">Publish</label>
                        <div class="col-sm-9">
                            <div class="form-check form-switch form-check-success">
                                <input class="form-check-input" type="checkbox" name="publish" role="switch"
                                    id="flexSwitchCheckSuccess" value="1">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <button type="submit" class="btn btn-grd-primary px-4">Submit</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php
include_once 'footer.php';
?>