<section class="container" style="padding-bottom: 2rem;">
	<div class="card bg-light-transparent">  
        <div class="card-header bg-white">
            <h5>Panel Clinic List</h5>

            <a href="<?php echo base_url('/CRM'); ?>" class="btn btn-outline-dark btn-sm" title="Add New Panel Clinic">
                <i class="fa fa-plus"></i> Add New Panel
            </a>

            <a href="" target="_blank" class="btn btn-outline-dark btn-sm" title="Print Panel Clinic">
                <i class="fa fa-print"></i>Print
            </a>
           
        </div>
        <div class="card-body">
            <div class="card no-shadow">
                <div class="card-body">
                    <table class="table table-hover table-bordered p-0 m-0">
                    	<thead>
                    		<tr>
                    			<th class="text-center">#</th>
                    			<th class="text-center">Hospital/Clinic</th>
                    			<th class="text-center">Address</th>
                    			<th class="text-center">Postcode</th>
                    			<th class="text-center">City</th>
                    			<th class="text-center">Phone No</th>
                    			<th class="text-center">Email</th>
                    			<th class="text-center">Action</th>
                    		</tr>
                    	</thead>
                    	<tbody>
                    		<?php if(!empty($panels)) foreach ($panels as $key => $panel){ ?>
                    			<tr>
                    				<td><?php echo $key+1 ?></td>
                    				<td><?php echo $panel->name ?></td>
                    				<td><?php echo $panel->address1 ?> <?php echo $panel->address2; ?></td>
                    				<td><?php echo $panel->postcode; ?></td>
                    				<td><?php echo $panel->city; ?></td>
                    				<td><?php echo $panel->phone; ?></td>
                    				<td><?php echo $panel->email; ?></td>
                    				<td class="text-center">
                    					<a href="#" class="btn btn-success btn-sm" data-toggle="tooltip" data-placement="top" title="View Clinic Detail">
                                            <i class="fas fa-sign-in-alt"></i>
                                        </a>
                    				</td>
                    			</tr>
                    		<?php } ?>
                    	</tbody>
                    </table>
                </div>
            </div>
        </div>        
    </div>
</section>

<script>
	document.getElementById('master_yes').onchange = function() {
		document.getElementById('group').disabled = this.checked;
		$('#group').val("");
	};

	document.getElementById('master_no').onchange = function() {
		document.getElementById('group').disabled = !this.checked;
	};
</script>



