<div class="pcoded-main-container">
    <div class="pcoded-content">
        <!-- [ breadcrumb ] start -->
        <div class="page-header">
            <div class="page-block">
                <div class="row align-items-center">
                    <div class="col-md-12">
                        <div class="page-header-title">
                            <h5 class="m-b-10">Çalışanlar</h5>
                        </div>
                        <ul class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo site_url('anasayfa');?>"><i class="feather icon-home"></i></a></li>
                            <li class="breadcrumb-item"><a href="#">Çalışanlar</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- [ breadcrumb ] end -->
        <!-- [ Main Content ] start -->
       
 <div class="row justify-content-center">
            <!-- liveline-section start -->
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-body text-center">
                        <div class="row align-items-center m-l-0">
                            <div class="col-sm-6 text-left">
                                <h5>Çalışanlar</h5>
                            </div>
                            <div class="col-sm-6 text-right">
                                <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" onclick="location.href='<?php echo site_url('calisan/add');?>'"><i class="feather icon-plus"></i>Çalışan Ekle</button>
                            </div>
                        </div>
                        <ul class="list-inline">
						<li class="list-inline-item border-right m-0"><a href="#!" class="pr-2 pl-1 font-weight-bolder"> Tümü</a></li>
           
                        </ul>
                  </div>
                </div>
            </div>
			<?php foreach($calisan as $c){ ?>
            <div class=" col-md-3">
                <div class="card user-card user-card-1 mt-4">
                    <div class="card-body pt-0">
                        <div class="user-about-block text-center">
                            <div class="row align-items-end">
							
								<div class="col text-left pb-3">
								
								</div>
								
                                <div class="col"><img class="img-radius img-fluid wid-80" src="<?php echo site_url('uploads/'. $c['profil']); ?>" alt="User image"></div>
                                <div class="col text-right pb-3">
                                    <div class="dropdown">
                                        <a class="drp-icon dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="feather icon-more-horizontal"></i></a>
                                        <div class="dropdown-menu dropdown-menu-right">
                                            <a class="dropdown-item" href="<?php echo site_url('calisan/edit/'.$c['id']); ?>">Düzenle</a>
                                            <?php if ($c['tur'] != 1){ ?><a class="dropdown-item" data-toggle="modal" data-target="#sil<?php echo $c['id']; ?>" href="#">Sil</a><?php } ?>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="text-center">
                            <a href="#!" data-toggle="modal" data-target="#modal-report">
                                <h4 class="mb-1 mt-3"><?php echo $c['ad']; ?></h4>
                            </a>
                            <p class="mb-3 text-muted"><?php /*Veri Tabanı Ad Sorgulama */ echo   isimogren('istur', $c['tur']);  ?></p>
                            <p class="mb-1"><b>Email : </b><?php echo $c['mail']; ?></p>
                            <p class="mb-0"><b>Telefon: </b><?php echo $c['telefon'];  ?></p>
						
                        </div>
					</div>
                </div>
            </div>
			
			 <div class="modal fade modal-default" id="sil<?php echo $c['id']; ?>" aria-hidden="true" role="dialog" tabindex="-1">
                    <div class="modal-dialog">
                      <div class="modal-content modal-simple modal-center">
                        <div class="modal-header">
                          <h4 class="modal-title">Çalışanı Silmek İstediğinize Emin misiniz ?</h4>
                        </div>
                        <div class="modal-body">
							</br>
						  İsim-<?php echo $c['ad']; ?></br>
                          Görev-<?php /*Veri Tabanı Ad Sorgulama */ echo   isimogren('istur', $c['tur']);  ?>
                        </div>
                        <div class="modal-footer">
                          <button type="button" class="btn btn-default btn-pure" data-dismiss="modal">Kapat</button>
                        <?php if ($c['tur'] != 1){ ?>  <a href="<?php echo site_url('calisan/remove/'.$c['id']); ?>" class="btn btn-success btn-sm waves-effect waves-classic"><span class="fa fa-trash"></span> Sil</a><?php } ?>
                        </div>
                      </div>
                    </div>
                  </div>
			
			
			<?php } ?>
		
        </div> 
     <center>
	 <?php 
							$sayfagetiradet =  $this->session->userdata('sayfaadet');
							sayfalama_yazdir($aktifsayfa,'calisan/index/',$sayfagetiradet,$kayitsayi); ?>

	  </center>
    </div>
</div>