<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">İşler</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="">Tamamlanan İşler</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-9">
                <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>İşler</h5>
                            </div>
                            <div class="col-sm-6 text-right">
                                <button type="button" class="btn btn-primary btn-sm" onclick="location.href='<?php echo site_url('isler/add');?>'"><i class="feather icon-plus"></i>İş Ekle</button>
                            </div>
                        </div>
                        <ul class="list-inline">
                            <li class="list-inline-item border-right m-0"><a href="<?php echo site_url('isler/index');?>" class="pr-2 pl-1  text-muted "> Tüm İşler</a></li>
                            <li class="list-inline-item border-right m-0"><a href="<?php echo site_url('isler/donenisler');?>" class="pr-2 pl-1 text-muted "> Dönen İşler</a></li>
                            <li class="list-inline-item"><a href="<?php echo site_url('isler/tamam');?>" class="font-weight-bolder"> Tamamlanan İşler </a></li>
                        </ul>
                  </div>
                </div>
            </div>
			<div class="col-sm-3">
					<div class="card">
								<div class="card-body">
									<div class="input-group">
										<input type="search" id="arama" placeholder="Arama...">
									</div>
								</div>
					</div>
			</div>

	
            <!-- customar project  start -->
            <div class="col-xl-12">
                <div class="card">
                    <div class="card-body" >

              <table class="table table-hover toggle-circle table-responsive-lg" id="exampleNoHeaders" data-show-header="false"
                data-paging="true" data-filtering="true">
                <thead>
                  <tr>
						<th data-toggle="true">Müşteri</th>
						<th>Yapan Çalışan</th>
						<th>İş Türü</th>
						<th>Açıklama</th>
						<th>Durum</th>
						<th>Eylemler</th>
                  </tr>
                </thead>
                <tbody>
					<?php foreach($isler as $i){ ?>
                  <tr>
                    <td>
					<?php musteriyaz($i['musteri']) ?>
					</td>
					<td>
					<?php calisanyaz($i['yapan']) ?>
					</td>
                    <td><?php /*Veri Tabanı Ad Sorgulama */ echo   isimogren('istur', $i['istur']);  ?></td>
					<td><?php echo mb_substr($i['aciklama'],0,70); ?>...</td>
					<td><?php $durum = $i['onay'];  if($durum==0){?> <span class="badge badge-warning">Yeni</span><?php } if($durum==1){?><span class="badge badge-primary">Yapılıyor</span> <?php } if($durum==2){?><span class="badge badge-danger">Revize</span><?php } if($durum==3){?><span class="badge badge-info">Onaylandı</span> <?php } ?></td>
                   <td class="table-action">
                                            <a href="<?php echo site_url('isler/detay/'.$i['id']); ?>" class="btn btn-icon btn-outline-primary"><i class="feather icon-eye"></i></a>
                    </td>
                    
                  </tr>
					<?php } ?>
                </tbody>
               
              </table>
			   	
				</div>
              
 			</div>
		</div>
	</div>

  
  
 </div>
 </div>       