<div class="container-fluid">
    <div class="row">
        <div class="col">
            <h2>Report History</h2>
        </div>
    </div>
    <!--grid-->
    <div class="row inbox-mail">
        <div class="col-12 col-md-3 compose">
            <form action="#" method="GET">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" placeholder="Search..." aria-label="Search" aria-describedby="basic-addon2">
                    <span class="input-group-text" id="basic-addon2"><i class="fa fa-search"></i></span>
                </div>
                <!-- Input Group -->
            </form>

            <div class="alert alert-danger py-0" role="alert">
                <h4>Reports</h4>
            </div>

            <div class="d-flex align-items-start list-group" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                <a id="new-reports-tab" data-bs-toggle="pill" data-bs-target="#new-reports" type="button" role="tab" aria-controls="new-reports" aria-selected="true" class="text-secondary list-group-item list-group-item-action list-group-item-light">
                    <i class="fas fa-globe-asia nav_icon" aria-hidden="true"></i> New Reports
                    <span class="badge badge-secondary badge-pill float-right">[[!analysisCount? &analysis=`reports_view` &cid=`[[+id]]` &status=`0` ]]</span>
                </a>
                <a id="soil-reports-tab" data-bs-toggle="pill" data-bs-target="#soil-reports" type="button" role="tab" aria-controls="soil-reports" aria-selected="false" class="text-secondary list-group-item list-group-item-action list-group-item-light">
                    <i class="fas fa-icicles fa-rotate-180 nav_icon" aria-hidden="true"></i> Soil Analysis
                    <span class="badge badge-secondary badge-pill float-right">[[!analysisCount? &analysis=`soil_records` &cid=`[[+id]]` &status=`0` ]]</span>
                </a>
                <a id="plant-reports-tab" data-bs-toggle="pill" data-bs-target="#plant-reports" type="button" role="tab" aria-controls="plant-reports" aria-selected="false" class="text-secondary list-group-item list-group-item-action list-group-item-light">
                    <i class="fab fa-pagelines nav_icon" aria-hidden="true"></i> Plant Analysis
                    <span class="badge badge-success badge-pill float-right">[[!analysisCount? &analysis=`plant_records` &cid=`[[+id]]` &status=`0` ]]</span>
                </a>
                <a id="water-reports-tab" data-bs-toggle="pill" data-bs-target="#water-reports" type="button" role="tab" aria-controls="water-reports" aria-selected="false" class="text-secondary list-group-item list-group-item-action list-group-item-light">
                    <i class="fa fa-tint nav_icon" aria-hidden="true"></i> Water Analysis
                    <span class="badge badge-primary badge-pill float-right">[[!analysisCount? &analysis=`water_records` &cid=`[[+id]]` &status=`0` ]]</span>
                </a>
                <a id="dietary-reports-tab" data-bs-toggle="pill" data-bs-target="#dietary-reports" type="button" role="tab" aria-controls="dietary-reports" aria-selected="false" class="text-secondary list-group-item list-group-item-action list-group-item-light">
                    <i class="fas fa-dog nav_icon" aria-hidden="true"></i> Animal Dietary Balance
                    <span class="badge badge-success badge-pill float-right">[[!analysisCount? &analysis=`animal_records` &cid=`[[+id]]` &status=`0` ]]</span>
                </a>
                <a id="compost-reports-tab" data-bs-toggle="pill" data-bs-target="#compost-reports" type="button" role="tab" aria-controls="compost-reports" aria-selected="false" class="text-secondary list-group-item list-group-item-action list-group-item-light">
                    <i class="fas fa-cloud nav_icon" aria-hidden="true"></i> Compost Test Data
                    <span class="badge badge-success badge-pill float-right"><!-- [ [!analysisCount? &analysis=`compost_records` &cid=`[[+id]]` &status=`0` ]] --></span>
                </a>
            </div>

            <br>

            <div class="list-group">
                <a href="#" class="list-group-item list-group-item-action"> Folders
                </a>
                <a href="#" class="list-group-item list-group-item-action list-group-item-light text-warning">
                    <i class="fa fa-folder text-warning" aria-hidden="true"></i> Archived
                    <span class="badge badge-warning badge-pill float-right">[[!analysisCount? &analysis=`reports_view` &cid=`[[+id]]` &status=`2` ]]</span>
                </a>
                <a href="#" class="list-group-item list-group-item-action list-group-item-light text-danger">
                    <i class="fa fa-folder text-danger" aria-hidden="true"></i> Deleted
                    <span class="badge badge-danger badge-pill float-right">[[!analysisCount? &analysis=`reports_view` &cid=`[[+id]]` &status=`3` ]]</span>
                </a>
            </div>
        </div>


        <!-- tab content -->
        <div class="col-12 col-md-9 tab-content tab-content-in">
            <!-- tab content -->

            <div class="tab-pane fade show active text-style" id="new-reports" role="tabpanel" aria-labelledby="new-reports-tab">
                <div class="inbox-right">
                    <div class="mailbox-content">
                        <div class="mail-toolbar clearfix">
                            <div class="float-left">
                                <div class="btn-group m-r-sm mail-hidden-options" style="display: inline-block;">

                                    <div class="btn-group">
                                        <div class="dropdown">
                                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-folder"></i> <span class="caret"></span></button>
                                            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                                <a class="dropdown-item" href="#">Social</a>

                                            </div>
                                        </div>

                                        <div class="dropdown">
                                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-tags"></i> <span class="caret"></span></button>
                                            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                                <a class="dropdown-item" href="#">Work</a>

                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                            <div class="float-right">
                                <div class="dropdown">
                                    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-cog "></i><i class="fafa-chevron-down "></i></button>
                                    <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                        <a class="dropdown-item" href="#"><i class="fa fa-pencil-square-o icon_9"></i> Edit</a>

                                    </div>
                                </div>

                                <div class="btn-group">
                                    <a class="btn btn-default"><i class="fa fa-angle-left"></i></a>
                                    <a class="btn btn-default"><i class="fa fa-angle-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <table class="table table-hover">
                            <thead>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col">Report</th>
                                    <th scope="col">Details</th>
                                    <th scope="col">Lab Number</th>
                                    <th scope="col">Block ID</th>
                                    <th scope="col">Crop</th>
                                    <th scope="col">Date Processed</th>
                                    <th scope="col" class='text-right'>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                [[!reportHistory? &analysis=`reports_view` &cid=`[[+id]]` &icon=`text-secondary fas fa-globe-asia` ]]

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div class="tab-pane fade text-style" id="soil-reports" role="tabpanel" aria-labelledby="soil-reports-tab">
                <div class="inbox-right">
                    <div class="mailbox-content">
                        <div class="mail-toolbar clearfix">
                            <div class="float-left">
                                <div class="btn-group m-r-sm mail-hidden-options" style="display: inline-block;">

                                    <div class="btn-group">
                                        <div class="dropdown">
                                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-folder"></i> <span class="caret"></span></button>
                                            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                                <a class="dropdown-item" href="#">Social</a>

                                            </div>
                                        </div>

                                        <div class="dropdown">
                                            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-tags"></i> <span class="caret"></span></button>
                                            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                                <a class="dropdown-item" href="#">Work</a>

                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                            <div class="float-right">
                                <div class="dropdown">
                                    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-cog "></i><i class="fafa-chevron-down "></i></button>
                                    <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                        <a class="dropdown-item" href="#"><i class="fa fa-pencil-square-o icon_9"></i> Edit</a>

                                    </div>
                                </div>

                                <div class="btn-group">
                                    <a class="btn btn-default"><i class="fa fa-angle-left"></i></a>
                                    <a class="btn btn-default"><i class="fa fa-angle-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <table class="table table-hover">
                            <thead>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col">Report</th>
                                    <th scope="col">Details</th>
                                    <th scope="col">Lab Number</th>
                                    <th scope="col">Block ID</th>
                                    <th scope="col">Crop</th>
                                    <th scope="col">Date Processed</th>
                                    <th scope="col" class='text-right'>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                [[!reportHistory? &analysis=`soil_records` &cid=`[[+id]]` &icon=`text-secondary fas fa-globe-asia` ]]

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div class="tab-pane fade text-style" id="plant-reports" role="tabpanel" aria-labelledby="plant-reports-tab">
                <div class="inbox-right">
                    <div class="mailbox-content">
                        <div class="mail-toolbar clearfix">
                            <div class="float-left">
                                <div class="btn-group m-r-sm mail-hidden-options" style="display: inline-block;">
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-folder"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Social</a></li>

                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-tags"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Work</a></li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="float-right">
                                <div class="dropdown">
                                    <a href="#" title="" class="btn btn-default" data-toggle="dropdown" aria-expanded="false">
                                        <i class="fa fa-cog icon_8"></i>
                                        <i class="fa fa-chevron-down icon_8"></i>
                                        <div class="ripple-wrapper"></div>
                                    </a>
                                    <ul class="dropdown-menu float-right">
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-pencil-square-o icon_9"></i>
                                                Edit
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-calendar icon_9"></i>
                                                Schedule
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-download icon_9"></i>
                                                Download
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" class="font-red" title="">
                                                <i class="fa fa-times" icon_9=""></i>
                                                Delete
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="btn-group">
                                    <a class="btn btn-default"><i class="fa fa-angle-left"></i></a>
                                    <a class="btn btn-default"><i class="fa fa-angle-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col">Details</th>
                                    <th scope="col">Lab Number</th>
                                    <th scope="col">Block ID</th>
                                    <th scope="col">Crop</th>
                                    <th scope="col">Date Processed</th>
                                    <th scope="col" class='text-right'>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                [[!reportHistory? &analysis=`plant_records` &cid=`[[+id]]` &icon=`text-success fab fa-pagelines` ]]
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div class="tab-pane fade text-style" id="water-reports" role="tabpanel" aria-labelledby="waterports-tab">
                <div class="inbox-right">
                    <div class="mailbox-content">
                        <div class="mail-toolbar clearfix">
                            <div class="float-left">
                                <div class="btn-group m-r-sm mail-hidden-options" style="display: inline-block;">
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-folder"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Social</a></li>

                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-tags"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Work</a></li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="float-right">
                                <div class="dropdown">
                                    <a href="#" title="" class="btn btn-default" data-toggle="dropdown" aria-expanded="false">
                                        <i class="fa fa-cog icon_8"></i>
                                        <i class="fa fa-chevron-down icon_8"></i>
                                        <div class="ripple-wrapper"></div>
                                    </a>
                                    <ul class="dropdown-menu float-right">
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-pencil-square-o icon_9"></i>
                                                Edit
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-calendar icon_9"></i>
                                                Schedule
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-download icon_9"></i>
                                                Download
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" class="font-red" title="">
                                                <i class="fa fa-times" icon_9=""></i>
                                                Delete
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="btn-group">
                                    <a class="btn btn-default"><i class="fa fa-angle-left"></i></a>
                                    <a class="btn btn-default"><i class="fa fa-angle-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th scope="col"></th>
                                    <th scope="col"></th>
                                    <th scope="col">Details</th>
                                    <th scope="col">Lab Number</th>
                                    <th scope="col">Block ID</th>
                                    <th scope="col">Date Processed</th>
                                    <th scope="col" class='text-right'>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                [[!reportHistory? &analysis=`water_records` &cid=`[[+id]]` &icon=`text-primary fa fa-tint` ]]
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade text-style" id="dietary-reports" role="tabpanel" aria-labelledby="dietary-reports-tab">
                <div class="inbox-right">
                    <div class="mailbox-content">
                        <div class="mail-toolbar clearfix">
                            <div class="float-left">
                                <div class="btn-group m-r-sm mail-hidden-options" style="display: inline-block;">
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-folder"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Social</a></li>

                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-tags"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Work</a></li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="float-right">
                                <div class="dropdown">
                                    <a href="#" title="" class="btn btn-default" data-toggle="dropdown" aria-expanded="false">
                                        <i class="fa fa-cog icon_8"></i>
                                        <i class="fa fa-chevron-down icon_8"></i>
                                        <div class="ripple-wrapper"></div>
                                    </a>
                                    <ul class="dropdown-menu float-right">
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-pencil-square-o icon_9"></i>
                                                Edit
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-calendar icon_9"></i>
                                                Schedule
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-download icon_9"></i>
                                                Download
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" class="font-red" title="">
                                                <i class="fa fa-times" icon_9=""></i>
                                                Delete
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="btn-group">
                                    <a class="btn btn-default"><i class="fa fa-angle-left"></i></a>
                                    <a class="btn btn-default"><i class="fa fa-angle-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <table class="table">
                            <tbody>
                                <!-- /* ******************************************************************************** */ -->
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade text-style" id="compost-reports" role="tabpanel" aria-labelledby="compost-reports-tab">
                <div class="inbox-right">
                    <div class="mailbox-content">
                        <div class="mail-toolbar clearfix">
                            <div class="float-left">
                                <div class="btn-group m-r-sm mail-hidden-options" style="display: inline-block;">
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-folder"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Social</a></li>

                                        </ul>
                                    </div>
                                    <div class="btn-group">
                                        <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-tags"></i> <span class="caret"></span></a>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                            <li><a href="#">Work</a></li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="float-right">
                                <div class="dropdown">
                                    <a href="#" title="" class="btn btn-default" data-toggle="dropdown" aria-expanded="false">
                                        <i class="fa fa-cog icon_8"></i>
                                        <i class="fa fa-chevron-down icon_8"></i>
                                        <div class="ripple-wrapper"></div>
                                    </a>
                                    <ul class="dropdown-menu float-right">
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-pencil-square-o icon_9"></i>
                                                Edit
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-calendar icon_9"></i>
                                                Schedule
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" title="">
                                                <i class="fa fa-download icon_9"></i>
                                                Download
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#" class="font-red" title="">
                                                <i class="fa fa-times" icon_9=""></i>
                                                Delete
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="btn-group">
                                    <a class="btn btn-default"><i class="fa fa-angle-left"></i></a>
                                    <a class="btn btn-default"><i class="fa fa-angle-right"></i></a>
                                </div>
                            </div>
                        </div>
                        <table class="table">
                            <tbody>
                                <!-- /* ******************************************************************************** */ -->
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>