						<div class="table-toolbar">
							<div class="row">
								<div class="col-md-6">
									<h4 id="intercom_title"></h4>
								</div>
							</div>
						</div>	
						<table id="table_intercom" class="table table-striped table-bordered table-hover data_table">
							<thead>
							<tr>
								<th>
									戶號
								</th>
								<th>
									對講機ID
								</th>
								<th>
									模式
								</th>
								<th>
									動作
								</th>
								<th>
									發生時間
								</th>
								<th>
									主旨
								</th>
								<th>
									內容
								</th>
							</tr>
							</thead>
							<tbody>
							<?php foreach($intercoms as $intercom): ?>
							<tr class="odd gradeX">
								<td>
									<?php echo e($intercom->house_code); ?>

								</td>
								<td>
									<?php echo e($intercom->intercom_number); ?>

								</td>
								<td>
									<?php echo e($intercom->action_type); ?>

								</td>
								<td>
									<?php if($intercom->type_mode == 'alarm'): ?>
										<span class="label label-sm label-danger"> 告警中 </span>
									<?php elseif($intercom->type_mode == 'proccess'): ?>
										<span class="label label-sm label-warning"> 處理中 </span>
									<?php elseif($intercom->type_mode == 'release'): ?>
										<span class="label label-sm label-info"> 告警解除 </span>
									<?php elseif($intercom->type_mode == 'recover'): ?>
										<span class="label label-sm label-info"> 異常復歸 </span>
									<?php endif; ?>
								</td>
								<td>
									<?php echo e($intercom->last_trigger_time); ?>

								</td>
								<td>
									<?php echo e($intercom->subject); ?>

								</td>
								<td>
									<?php echo e($intercom->message); ?>

								</td>
							</tr>
							<?php endforeach; ?>
							</tbody>
							</table>

