<div class="container-fluid"> 
    <h1 class="section-title dash-left">Admin</h1>
</div>

<div class="container">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ramka">
        <div class="row margtop20">
                <h2 class="karta_tytul">Firmy</h2>
        </div>
            <hr />
        <div class="row margtop20">
                <div class="col-sm-10 text-left nowe_label">
                    Nowa <span>firma</span>
                </div>
                <div class="col-sm-2 text-right nowe_label">
                    <a href="<?php echo base_url('auth/add_user/firma/'); ?>"><div class="submitZielony">Dodaj</div></a>
                </div>    
            </div>               
            <hr />
                <table class="listing_table">
                    <thead>  
                    <th>        
                        Firma
                    </th>    
                    <th>
                        Telefon
                    </th>     
                    <th>
                        E-mail
                    </th>             
                    <th>        
                        Edytuj
                    </th>     
                    <th>        
                        Usuń
                    </th>         
                    </thead>
                    <tbody>
                        <?php foreach ($firmy as $firma): ?>
                            <tr>    
                                <td>        
                                    <?php echo $firma['company']; ?>
                                </td>    
                                <td>        
                                    <?php echo $firma['phone']; ?>
                                </td>     
                                <td>        
                                    <?php echo $firma['email']; ?>
                                </td>                         
                                <td>        
                                    <?php echo anchor(base_url('auth/edit_user/' . $firma['user_id']), '<img src="' . base_url('assets/img/ikony/edit.jpg') . '">'); ?>
                                </td>     
                                <td>        
                                    <?php echo anchor(base_url('auth/delete_user/' . $firma['user_id']), '<img src="' . base_url('assets/img/ikony/trash.jpg') . '">'); ?>
                                </td>         
                            </tr>            
                        <?php endforeach; ?>
                    </tbody>            
                </table>
                <hr />
        <div class="row margtop20">
            <?php echo $pagination; ?>
        </div>
    </div>
</div>



