


<!-- [ Main Content ] start -->
<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">Muhasebe</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="#!">Muhasebe</a></li>
                           
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- [ breadcrumb ] end -->
        <!-- [ Main Content ] start -->
        <div class="row">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-body">
                        <ul class="nav nav-pills bg-nav-pills nav-justified mb-0">
                            <li class="nav-item">
                                <a href="<?php echo site_url('gmuhasebe/genel');?>"  class="nav-link active">
                                    <i class="fas fa-wallet f-18"></i>
                                    <span class="d-none d-lg-inline-block m-l-10">Genel</span>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo site_url('gmuhasebe/gelirgider');?>" class="nav-link">
                                    <i class="fas fa-truck f-18"></i>
                                    <span class="d-none d-lg-inline-block m-l-10">Gelir-Gider</span>
                                </a>
                            </li>
							<li class="nav-item">
                                <a href="<?php echo site_url('gmuhasebe/alacak');?>" class="nav-link">
                                    <i class="fas fa-money-bill-wave-alt f-18"></i>
                                    <span class="d-none d-lg-inline-block m-l-10">Alacaklar</span>
                                </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo site_url('gmuhasebe/rapor');?>" class="nav-link">
                                    <i class="fas fa-money-check-alt f-18"></i>
                                    <span class="d-none d-lg-inline-block m-l-10">Rapor</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="tab-content">
                    <div class="tab-pane show active" id="Genel">
                        <div class="card">
                            <div class="card-header">
                                <h5 class="mb-2">Genel Muhasebe</h5>
                                <p class="text-muted mb-0">Gelen,Giden ve Ödeme bekleyen tüm muhasebe kayıtlarını görebilirsiniz</p>
									<br>
									<div class="input-group">
										<input type="search" id="arama" placeholder="Arama...">
									</div>
							</div>
                            <div class="card-body">
						
                           <div class="table-responsive">
                            <table class="table table-hover mb-0">
                                <thead>
                                    <tr> 
                                        <th>Tür</th>
                                        <th>Tarih</th>
                                        <th>Açıklama</th>
                                        <th>Fiyat</th>
                                     
                                    </tr>
                                </thead>
                                <tbody>
								 <?php foreach($yenigenelmuhasebe as $yg){ ?>
									<tr>
										<td>
										<?php 
											if($yg['tur']==1){echo "Gelir";};
											if($yg['tur']==2){echo "Gider";};
											if($yg['tur']==3){echo "Ödeme Bekliyor";};  
											if($yg['tur']==4){echo "Alacak";};  
										?>
										</td>
										<td><?php echo tarihyazdir($yg['tarih']); ?></td>
										<td><?php echo substr($yg['aciklama'],0,50); ?></td>
										<td><?php echo $yg['fiyat']; ?></td>
										
										
										
									</tr>
									<?php } ?>
                                                                      
                                </tbody>
                            </table>
                        </div>
						 
						 
						 
						 
						 
						 
						 
						   
							</div>
                        </div>
                    </div>
                 
                </div>
            </div>
            <div class="col-md-4">
                <div class="card">
                    <div class="card-header">
                        <h5>Genel</h5>
                    </div>
                    <ul class="list-group list-group-flush">
                        <li class="list-group-item py-0">
							<div class="d-flex bd-highlight ">
							  <div class="p-2 flex-fill bd-highlight">Toplam Gelir</div>
							  <div class="p-2 flex-fill bd-highlight text-right"><?php echo toplamgelir()." TL";  ?></div>
							</div>
                        </li>
                       <li class="list-group-item py-0">
					   
							<div class="d-flex bd-highlight ">
							  <div class="p-2 flex-fill bd-highlight">Toplam Gider</div>
							  <div class="p-2 flex-fill bd-highlight text-right"><?php echo toplamgider()." TL";  ?></div>
							</div>
                           
                        </li>
						<li class="list-group-item py-0">
							<div class="d-flex bd-highlight ">
							  <div class="p-2 flex-fill bd-highlight">Ödeme Bekleyen (Çalışanlara Ödenecek Paralar)</div>
							  <div class="p-2 flex-fill bd-highlight text-right"><?php echo toplambekleme()." TL";  ?></div>
							</div>
                        </li>
						<li class="list-group-item py-0">
							<div class="d-flex bd-highlight ">
							  <div class="p-2 flex-fill bd-highlight">Alacaklar (Gelecek Olan Paralar)</div>
							  <div class="p-2 flex-fill bd-highlight text-right"><?php echo toplamalinacak()." TL";  ?></div>
							</div>
                          
                        </li>
					</ul>
                    <div class="card-body py-2">
							<div class="d-flex bd-highlight ">
							  <div class="p-2 flex-fill bd-highlight">Kasa : </div>
							  <div class="p-2 flex-fill bd-highlight text-right font-weight-semibold"><?php echo 	toplamgelir()-toplamgider() ." TL";  ?></div>
							</div>
                       
                    </div>
                </div>
            </div>
        </div>
        <!-- [ Main Content ] end -->
    </div>
</div>

<!-- [ Main Content ] end -->
 



