<div class="tlo-default">

<div class="container-fluid"> 
    <h1 class="section-title dash-left"><?php echo $company; ?></h1>
</div>

<div class="container">
    <div class="col-xs-12 col-sm-12 col-md-9 offset-md-3 col-lg-9 offset-lg-3 ramka">
            <div class="row margtop20">
                <h2 class="karta_tytul">Zadania stażu <strong><?php echo $project; ?></strong></h2>
            </div>
            <hr />
            <div class="row margtop20">
                <div class="col-sm-10 text-left nowe_label">
                    Nowe <span>zadanie</span>
                </div>
                <div class="col-sm-2 text-right nowe_label">
                    <a href="<?php echo base_url('tasks/add_task_project/' . $company_id.'/'.$project_id); ?>"><div class="submitZielony">Dodaj</div></a>
                </div>    
            </div>               
            <hr />
                <table class="listing_table">
                    <thead>                  
                        <th>Nazwa</th>         
                        <th class="text-center">Start</th>             
                        <th class="text-center">Czas trwania</th>     
                        <th class="text-center">Koniec</th>             
                        <th></th>     
        
                        </thead>
                    <tbody>
                        <?php foreach ($stanowiska as $data): ?>
                            <tr>    
                                <td class="text-left">        
                                    <?php echo $data['task_name']; ?>
                                </td>        
                                <td class="widthSmall text-center">        
                                    <?php echo $data['date_start']; ?>
                                </td>                         
                                <td class="widthSmall text-center">        
                                    <?php echo $data['duration'] . 'h'; ?>
                                </td>                                             
                                <td class="widthSmall text-center">        
                                    <?php echo $data['date_stop']; ?>
                                </td>                                 
                                
                                <td class="widthSmall text-right table_edit_icon" style="">        
                                    <?php echo anchor(base_url('tasks/edit_task/' . $data['id'].'/'.$project_id), '<img class="odsun" src="' . base_url('assets/img/ikony/edit.jpg') . '">'); ?>
                                    <img class="odsun podejrzyj_task" data-taskid="<?php echo $data['id'];?>" src="<?php echo base_url('assets/img/ikony/view.jpg'); ?>">
                                    <?php echo anchor(base_url('tasks/delete_task/' . $data['id']), '<img class="odsun" src="' . base_url('assets/img/ikony/trash.jpg') . '">'); ?>
                                </td>         
                            </tr>
                        <?php endforeach; ?>
                    </tbody>            
                </table>

               
            <div class="row margtop20">
                <?php echo $pagination; ?>
            </div>
            <hr />
            <div class="row margtop20">
                <h2 class="karta_tytul bold">Harmonogram projektu</h2>
            </div>
            <div class="row margtop20">
                <div class="col-sm-12">
                <canvas id="myChart" width="400" height="200"></canvas>
                    <?php echo $daneWykres; ?>
                    <?php //echo '<textarea cols="50" rows="10">'.$daneWykres.'</textarea>'; ?>
                    
                </div>
            </div>    
        
    </div>
</div>
</div>



