<div class="card bg-light-transparent">
    <div class="card-header bg-white">
    
    </div>
    <div class="card-body">
        <div class="card no-shadow">
            <div class="card-body">
               <div class="table-responsive">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>Name</th>
                                <th>Claim Submission</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php if(!empty($department['claims'])) foreach($department['claims'] as $key => $claim): ?>
                            <tr>
                                <td><?php echo (!empty($claim->name))?$claim->name:''; ?></td>
                                <td><?php echo (!empty($claim->month) && !empty($claim->year))?date('F-Y',strtotime('01-'.$claim->month.'-'.$claim->year)):''; ?></td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <a class="btn btn-primary btn-sm text-white" href="<?php echo base_url('/hr/claim/myClaimDetail/'.$claim->year.'/'.$claim->month.'/'.$claim->user_id.'/'.$claim->id.'/approval-hod'); ?>" data-trigger="hover" data-tooltip="tooltip" title="" data-original-title="View claim" target="_blank">
                                            <i class="fas fa-sign-in-alt"></i>
                                        </a>
                                    </div>
                                </td>
                            </tr>
                            <?php endforeach ?>
                        </tbody>
                    </table>
               </div>
            </div>
        </div>
    </div>
</div>