					
  	<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="#">İş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>
                        <ul class="list-inline">
                            <li class="list-inline-item border-right m-0"><a href="<?php echo site_url('cisler/havuz');?>" class="pr-2 pl-1 font-weight-bolder"> İş Havuzu</a></li>
                            <li class="list-inline-item border-right m-0"><a href="<?php echo site_url('cisler/bende');?>" class="pr-2 pl-1 text-muted"> Bendeki İşler</a></li>
                            <li class="list-inline-item"><a href="<?php echo site_url('cisler/tamamlanan');?>" 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">
										<label for="arama">Arama</label>
										<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" >
                <thead>
                  <tr>
						<th scope="col">Müşteri</th>
						<th scope="col">Açıklama</th>
						<th scope="col">Fiyat</th>
						<th scope="col">Acil</th>
						<th scope="col">Eylemler</th>
                  </tr>
                </thead>
                <tbody>
					<?php foreach($isler as $i){ ?>
                  <tr>
                    <td>
					<div class="pr-0 pr-sm-20 align-self-center">
                        <div class="avatar avatar-online">
							<?php musteriyaz($i['musteri']) ?>
                        </div>
                      </div>
					</td>
                   
					<td><?php echo mb_substr($i['aciklama'],0,70); ?>...</td>
					<td><?php echo $i['fiyat']; ?></td>
					<td><?php $acil = $i['acil'];  if($acil==1){?> <span class="badge badge-danger">Çok Acil</span><?php } if($acil==2){?><span class="badge badge-danger">Acil</span> <?php } if($acil==3){?><span class="badge badge-info">Normal</span><?php } if($acil==4){?><span class="badge badge-warning">Yavaş</span> <?php } ?></td>
               
                    <td>	 
                        <a href="<?php echo site_url("cisler/detay/".$i['id']); ?>" class="btn btn-info btn-sm waves-effect waves-classic"><span class="fa fa-eye"></span> İş Detayları </a> 
                         <a href="#" data-target="#isal<?php echo $i['id']; ?>" data-toggle="modal"  class="btn btn-success btn-sm waves-effect waves-classic"><span class="fa fa-check"></span> İşi Al</a>
                     </td>
                    
                  </tr>
				 
				  <div class="modal fade modal-default" id="isal<?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 Almak İstediğinize Emin misiniz ?</h4>
                        </div>
                        <div class="modal-body">
							</br>
                          <p>Müşteri… : <?php /*Veri Tabanı Ad Sorgulama */ echo "  ".isimogren('musteri', $i['musteri']);  ?></p>						  
						  <p>İş Açıklama :<?php echo "  " ; echo $i['aciklama']; ?></p>
						  <p>Fiyat :<?php echo "  " ; echo $i['fiyat']; ?></p>
						
                        </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('cisler/al/'.$i['id']); ?>" class="btn btn-success btn-sm waves-effect waves-classic">İşi Al</a>
                        </div>
                      </div>
                    </div>
                  </div>
				  
				 
					<?php } ?>
                </tbody>
              </table>
				
				
			</div>
		</div>
	</div>

  
  
 </div>
 </div>
 </div>
            <?php    
		
			if(isset($_GET['hata']))
			{
				if($_GET['hata']==1)
				{		 
		  ?>   
					  <script>
					   
							$( document ).ready(function() {
							   $('#hatais').modal('show');
							});

					  </script>
					  
					   <div class="modal fade" id="hatais" aria-hidden="true" aria-labelledby="examplePositionCenter" role="dialog" tabindex="-1">
                          <div class="modal-dialog modal-simple modal-center">
                            <div class="modal-content">
                              <div class="modal-header">
                               
                                <h3 class="modal-title">İş Alınmış</h3>
                              </div>
                              <div class="modal-body">
                                <p>İş Alınmış Lütfen Tekrar Deneyin</p>
                              </div>
                              <div class="modal-footer">
                                <button type="button" class="btn btn-default btn-pure" data-dismiss="modal">Kapat</button>
                     
                              </div>
                            </div>
                          </div>
					</div>
					  
					  
					  
			<?php                    
				}else if($_GET['hata']==2)
				{		 
			?>   
					  <script>
					   
							$( document ).ready(function() {
							   $('#hatais2').modal('show');
							});

					  </script>
					  
					  	<div class="modal fade" id="hatais2" aria-hidden="true" aria-labelledby="examplePositionCenter"
                          role="dialog" tabindex="-1">
                          <div class="modal-dialog modal-simple modal-center">
                            <div class="modal-content">
                              <div class="modal-header">
                              
                                <h4 class="modal-title">İşi Alamazsınız</h4>
                              </div>
                              <div class="modal-body">
                                <p>Elinizde Onaylanmayan İşleri Bitirip Diğer İşleri Alabilirsiniz</p>
                              </div>
                              <div class="modal-footer">
                                <button type="button" class="btn btn-default btn-pure" data-dismiss="modal">Kapat</button>
                     
                              </div>
                            </div>
                          </div>
						</div>
					  
	<?php                    
				}
				
			}
					 
			?>   
					 
                  
  
				