<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">Studenci</h2>
        </div>
            <hr />
        <div class="row margtop20">
                <div class="col-sm-10 text-left nowe_label">
                    Nowy <span>student</span>
                </div>
                <div class="col-sm-2 text-right nowe_label">
                    <a href="<?php echo base_url('auth/add_user/student/'); ?>"><div class="submitZielony">Dodaj</div></a>
                </div>    
        </div>               
            <hr />
            <table class="listing_table">
                <thead>  
                <th>        
                    Imię Nazwisko
                </th>    
                <th>
                    Telefon
                </th>     
                <th>
                    E-mail
                </th>             
                <th>
                    Rok studiów
                </th>             
                <th>
                    Kierunek
                </th>                     
                <th>        
                    Edytuj
                </th>     
                <th>        
                    Usuń
                </th>         
                </thead>
                <tbody>
                    <?php foreach ($studenci as $student): ?>
                        <tr>    
                            <td>        
                                <?php echo $student['first_name'].' '.$student['last_name']; ?>
                            </td>    
                            <td>        
                                <?php echo $student['phone']; ?>
                            </td>     
                            <td>        
                                <?php echo $student['email']; ?>
                            </td>                         
                            <td>        
                                <?php echo $student['rok_studiow']; ?>
                            </td>                         
                            <td>        
                                <?php echo $student['kierunek']; ?>
                            </td>                                             
                            <td>        
                                <?php echo anchor(base_url('auth/edit_user/' . $student['user_id']), '<img src="' . base_url('assets/img/ikony/edit.jpg') . '">'); ?>
                            </td>     
                            <td>        
                                <?php echo anchor(base_url('auth/delete_user/' . $student['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> 



