<div class="row">
    <div class="col-md-6">
        <h2 class="text-center">Entry Report</h2>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th colspan="2">
                        Date
                    </th>
                    <th>
                        Entry Time
                    </th>
                </tr>
            </thead>
            <tbody>
            
            @foreach($entry_time as $info)
            	<?php
            		$a=strtotime('9:30 am');
			$c=date('H:i:s a', $a);
			$entry_time=date('H:i:s a',strtotime($info['attendance_time']));
			if($entry_time>$c)
			{
				$background='red';
			} else
			{
				$background='green';
			}
            	?>
                <tr>
                    <td colspan="2">
                        <span style="font-size:12px;">{{ date('d-m-Y',strtotime($info['attendance_time'])) }}</span>
                    </td>
                    <td>
                        <span style="font-size:12px;color:<?php echo $background;?>">
                        	<?php
                        		$abtime=strtotime('12:00:00 am');
        				$mamun_er_pera=date('H:i:s a', $abtime);
                        	?>
                        	@if( date('h:i:s a',strtotime($info['attendance_time'])) > $mamun_er_pera)
                        		{{ date('h:i:s A',strtotime($info['attendance_time'])) }}
                        	@else
                        		{{ "Absent" }}
                        	@endif
                        	
                        </span>
                    </td>
                </tr>   
            @endforeach
             
                
            </tbody>
        </table>
    </div>
    <div class="col-md-6">
    <h2 class="text-center"> Exit Report</h2>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th colspan="2">
                        Date
                    </th>
                    <th>
                        Exit Time
                    </th>
                </tr>
            </thead>
            <tbody>
            
            @foreach($exit_time as $info)
                <tr>
                    <td colspan="2">
                        {{ date('d-m-Y',strtotime($info['attendance_time'])) }}
                    </td>
                    <td>
                        {{ date('h:i:s A',strtotime($info['attendance_time'])) }}
                    </td>
                </tr>   
            @endforeach
             
                
            </tbody>
        </table>
    </div>
</div> 

<hr>
</hr>