<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="">Dönen İş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 font-weight-bolder"> Dönen İşler</a></li>
                            <li class="list-inline-item"><a href="<?php echo site_url('isler/tamam');?>" class="text-muted"> 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" >
                <thead>
                  <tr>
						<th data-toggle="true">Müşteri</th>
						<th>Yapan Çalışan</th>
						<th>İş Türü</th>
						<th>Çalışma</th>
						<th>Eylemler</th>
                  </tr>
                </thead>
                <tbody>
					<?php foreach($isler as $i){ ?>
                  <tr>
                    <td>
					<?php musteriyaz($i['musteri']) ?></td>
					 <td>
					<?php calisanyaz($i['yapan']);
					
					$isialan=isimogren('yapan',$i['yapan']);
					
					?>
					</td>
					
                    <td><?php /*Veri Tabanı Ad Sorgulama */ echo   isimogren('istur', $i['istur']);  ?></td>
					<td>
					<a href="#" data-target="#donenis<?php echo $i['id']; ?>" data-toggle="modal"   class="btn btn-info ladda-button waves-effect waves-classic" data-style="slide-down" data-plugin="ladda">
                      <span class="ladda-label"><i class="icon md-long-arrow-down mr-10"  aria-hidden="true"></i>Çalışmalar</span>
						</a>
				<!-- Modal Bas -->	
				<div class="modal fade modal-primary" id="donenis<?php echo $i['id']; ?>" aria-hidden="true" role="dialog" tabindex="-1">
                    <div class="modal-dialog modal-lg modal-center">
                      <div class="modal-content">
                        <div class="modal-body">
						</br> 
						 <?php coklu_dosya_yazdir($i['dosyadonen'],$isialan,"Yapılan Çalışmalar"); ?>
					  
					   </div>
                        <div class="modal-footer">
                          <button type="button" class="btn btn-default btn-pure" data-dismiss="modal">Kapat</button>
                        </div>
                      </div>
                    </div>
					</div>
				<!-- Modal Bitti -->	
					
					</td>
					
                 
                     <td class="table-action">
                        <a href="#" data-target="#onay<?php echo $i['id']; ?>" data-toggle="modal" class="btn btn-icon btn-outline-primary"><i class="feather icon-check-circle"></i></a>       
                       <a href="<?php echo site_url('revize/index/'.$i['id']); ?>" class="btn btn-icon btn-outline-danger"><i class="feather icon-message-circle"></i></a>
					
					
					<div class="modal fade modal-default" id="onay<?php echo $i['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">İşi Onaylamak İstediğinize Emin misiniz ?</h4>
                        </div>
                        <div class="modal-body">
							</br>
						 Müşteri -<?php /*Veri Tabanı Ad Sorgulama */ echo  isimogren('musteri', $i['musteri']);  ?></br>
						 İş türü -<?php /*Veri Tabanı Ad Sorgulama */ echo  isimogren('istur', $i['istur']);  ?></br>
						Açıklama -<?php echo $i['aciklama']; ?></br>
                        </div>
                        <div class="modal-footer">
                          <button type="button" class="btn btn-default btn-pure" data-dismiss="modal">Kapat</button>
                          <a href="<?php echo site_url('isler/onay/'.$i['id']); ?>" class="btn btn-success btn-sm waves-effect waves-classic"><span class="fa fa-trash"></span> Onayla</a>
                        </div>
                      </div>
                    </div>
                  </div>                    

					</td>
                  </tr>
				  
					<?php } ?>
                </tbody>
               
              </table>
			    
            </div>
              
 			</div>
		</div>
	</div>

  
  
 </div>
 </div>

  