<?php foreach($clientProjects as $project):?>
<div class="card card-body">
    <div class="d-flex justify-content-between align-items-center mb-3">
        <h6 class="fw-bold mb-3">
            Project Carbon Data
        </h6>
        <button type="button" class="btn btn-sm btn-primary" onclick="carbon_data(<?= $project->id; ?>)">Collect Data</button>
    </div>
        <div class="table-responsive">
            <table class="table  table-bordered table-border w-100">
                <thead style="font-size:12px">
                    <tr>
                        <th>Project_ID</th>
                        <th>Project_Name</th>
                        <th>Geo_Boundary</th>
                        <th>Status</th>
                        <th>Project_Type</th>
                        <th>AFOLU_Activities</th>
                        <th>Methodology</th>
                        <th>Carbon_Pool</th>
                        <th>Gases</th>
                        <th>Estimated_ER</th>
                        <th>Buffer_Credit</th>
                        <th>Area(ha)</th>
                        <th>Reff_Period</th>
                        <th>Credit_Period</th>
                        <th>Uncertainty</th>
                        <th>Registry</th>
                    </tr>
                </thead>
                <tbody style="font-size:10px">
                    
                        <tr>
                            <td><?= $project->project_number; ?></td>
                            <td><?= $project->name; ?></td>
                            <td></td>
                            <td> </td>
                            <td>
                                <ul type="square" style="padding-left:0px;margin-left:0px;">
                                    <?php foreach ($project->types as $type): ?>
                                    <li><?= esc($type->type_name) ?></li> 
                                    <?php endforeach; ?>
                                </ul>
                            </td>
                            <td>
                                <ul type="square" style="padding-left:0px;margin-left:0px;">
                                    <?php foreach ($project->activities as $activity): ?>
                                    <li><?= esc($activity->activity_name) ?></li> 
                                    <?php endforeach; ?>
                                </ul>
                            </td>
                            <td>
                                <ul type="square" style="padding-left:0px;margin-left:0px;">
                                    <?php foreach ($project->methodologies as $methodology): ?>
                                    <li><?= esc($methodology->name) ?></li> 
                                    <?php endforeach; ?>
                                </ul>
                            </td>
                            <td>
                                <ul type="square" style="padding-left:0px;margin-left:0px;">
                                    <?php foreach ($project->carbon_pools as $pool): ?>
                                    <li><?= esc($pool->name) ?></li> 
                                    <?php endforeach; ?>
                                </ul>
                            </td>
                            <td>
                                <ul type="square" style="padding-left:0px;margin-left:0px;">
                                    <?php foreach ($project->gases as $gas): ?>
                                    <li><?= esc($gas->name) ?></li> 
                                    <?php endforeach; ?>
                                </ul>
                            </td>
                            <td></td>
                            <td></td>
                            <td><?= $project->size; ?></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                    
                </tbody>
            </table>
        </div>
</div>     
<?php endforeach;?>
<!-- Modal  Modal -->
