<tr class="remove" >
    <td colspan="15">
        <h5 class="h4text" style="background: #E2E2E2;padding:7px;margin: 0; font-weight: bold;">Sightseeing Details</h5>
        <table class="table table-bordered table-striped table-responsive left">            
            <tbody>
                <?php
                //echo "<pre>"; print_r($activityData); die;
                if (!empty($activityData)) {
                    $i=1;
                    foreach($activityData as $val) {
                        $data = [
                            'mapping_id'=>$val['s_detail_id']
                        ];
                        $vendorName = $this->mainMenu()->fetchUserName($val['vendor_id']);
                        $fareList = $this->mainMenu()->fetchActivityFare($data)
                    ?>
                <thead>
                    <tr>
                         <th colspan="9">&nbsp;</th>
                    </tr>
                    <tr>
                        <th>S.NO</th>
                        <th>Vendor</th>
                        <th>From</th>
                        <th>To</th>
                        <th>Opening Time</th>
                        <th>Closing Time</th>
                        <th>Estimated Time</th>
                        <th>Pickup Point</th>
                        <th>Allocation</th>
                    </tr>
                </thead>
                    <tr>
                            <td><?php echo $i;?></td>
                            <td><?php echo $vendorName ?></td>
                            <td><?php echo date('Y-m-d',strtotime($val['from_date'])); ?></td>
                            <td><?php echo date('Y-m-d',strtotime($val['to_date'])); ?></td>
                            <td><?php echo $val['opening_time'] ?></td>
                            <td><?php echo $val['closing_time'] ?></td>
                            <td><?php echo $val['estimated_time']; ?></td>
                            <td><?php echo $val['pickup_point']; ?></td>
                            <td><?php echo $val['allocation']; ?></td>
                     </tr>
                    <?php $i++; ?>
                     <tr>
                         <th colspan="9">
                             <h5 style="background: #E2E2E2;padding:7px;margin: 0; font-weight: bold;">Sightseeing Fare</h5>
                         </th>
                    </tr>
                     <tr>
                        <th>S.NO</th>
                        <th>Currency</th>
                        <th>Adult Price</th>
                        <th>Child Price</th>
                        <th>Infant Price</th>
                        <th>Sr. Citizen Price</th>
                        <th>Guide Available</th>
                        <th>Guide Lang</th>
                        <th>Guide Cost</th>
                    </tr>
                        <?php if(!empty($fareList)) { 
                             $j=1;
                    foreach($fareList as $fare) {
                        $currency = $this->mainMenu()->fetchCurrencyCode($fare['currency_type_id']);
                        $lang = $this->mainMenu()->fetchLanguage($fare['guide_lang']);
                            ?>
                        <tr>
                            <td><?php echo $j;?></td>
                            <td><?php echo $currency; ?></td>
                            <td><?php echo $fare['adult_price']; ?></td>
                            <td><?php echo $fare['child_price']; ?></td>                           
                            <td><?php echo $fare['infant_price'] ?></td>
                            <td><?php echo $fare['senior_citizen_price'] ?></td>
                            <td><?php if($fare['is_guide_available']==1){ echo "Yes";}else{ echo "No";} ?></td>
                            <td><?php echo $lang; ?></td>
                            <td><?php echo $fare['guide_cost']; ?></td>
                        </tr>
                        
                        
                    <?php $j++;} } else {?>
                         <tr><td colspan="9" class="red">No Record Found</td></tr>
                    <?php } ?>
                    <?php } } else { ?>
                    <tr><td colspan="9" class="red">No Record Found</td></tr>
                <?php } ?>

            </tbody>
        </table>
       
    </td>
</tr>