
	
	<section id="slider"><!--slider-->
		<div class="container">
			<div class="row">
				<div class="col-sm-12">
					<div id="slider-carousel" class="carousel slide " data-ride="carousel">
						<ol class="carousel-indicators">
							<li data-target="#slider-carousel" data-slide-to="0" class="active"></li>
							<li data-target="#slider-carousel" data-slide-to="1"></li>
							<li data-target="#slider-carousel" data-slide-to="2"></li>
						</ol>
						<?php 
	 date_default_timezone_set("Asia/Karachi");

      $d = date("d");
      $m = date('m');
      $y = date("Y");
     $dt1 = $y.'-'.$m.'-1';
     $dt2 = $y.'-'.$m.'-'.$d;
     
     // echo $dt1;
     // echo $dt2;
     $qry="SELECT sum(ifnull(stockin,0)) as purstock from stockledger inner join itemreg on stockledger.itemid = itemreg.itemid where stockledger.dated>='$dt1' and stockledger.dated<='$dt2' and itemreg.catid = '2' and invoiceno='Purchase'";
     $run=mysqli_query($connect,$qry) or die(mysqli_error($connect));
     $row=mysqli_fetch_array($run);
     $prqty=$row['purstock']; 
     if($prqty==""){
     	$prqty=0;
     }

     $brlamt = 0;
    $qrybrl="SELECT * from broilertransfer where dated ='$dt2'";
     $runbrl=mysqli_query($connect,$qrybrl) or die(mysqli_error($connect));
  
   while($row=mysqli_fetch_array($runbrl)){
    $brlamt = $brlamt + ($row['qty'] * $row['crate']);

   }
	?>
	<style type="text/css">
		@media only screen and (max-width: 720px) {
  /* For mobile phones: */
  .detail {
   margin-right: -50px !important;
   color: red !important;
  }
}
	@media only screen and (min-width: 720px) {
  /* For mobile phones: */
  .detail {
   margin-right: 10px !important;
   color: green !important;
  }
}

.info {
  border-color: #f44336;
  color: red;
}

  /* Green */
.info:hover {
  background: #f44336;
  color: white;
}
	</style>
						<div class="carousel-inner">

						
							<div class="item active">
								<!-- <div class="col-sm-6">
									<h1><span></span>TOTAL FEED THIS MONTH</h1>
									<h2>Free E-Commerce Template</h2>
									<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
									<button type="button" class="btn btn-default get">Get it now</button>
								</div> -->
								<div class="col-sm-6 ">
									<img style="margin-left: 10px;" src="images/home/girl1.jpg" class=" img-responsive" alt="" />
								
									<H1  class="pricing" style="color: blue; margin-top: -10px; font-size: 40px; font-weight: bold; cursor: default;" ><?php echo $prqty; ?></H1>
										<button id="ffdtl"  class="pricing" style="background-color: green; color: yellow; margin-top: 30px; margin-left: 20px; font-size: 10px; font-weight: bold; cursor: default;" >View Detail</button>
									
								<!-- <button id="ffdtl" class="pricing detail btn info" style="min-width: 70px !important; color: blue; margin-top: 40px; font-size: 10px; font-weight: bold; margin-right: -50px;">View Detail</button> -->
									<!-- <img src="images/home/pricing.png"  class="pricing" alt="" /> -->
								</div>
							</div>
							<div class="item">
								<!-- <div class="col-sm-6">
									<h1><span>E</span>-SHOPPER</h1>
									<h2>100% Responsive Design</h2>
									<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
									<button type="button" class="btn btn-default get">Get it now</button>
								</div> -->
								<div class="col-sm-6 col-md-6">
									<img src="images/home/girl2.jpg" class="girl img-responsive" alt="" />
									<H1 class="pricing" style="color: blue; margin-top: -10px; font-size: 40px; font-weight: bold; " >Rs. <?php echo $brlamt; ?></H1>
								</div>
							</div>
							
							<div class="item">
							<!-- 	<div class="col-sm-6">
									<h1><span>E</span>-SHOPPER</h1>
									<h2>Free Ecommerce Template</h2>
									<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
									<button type="button" class="btn btn-default get">Get it now</button>
								</div> -->
								<div class="col-sm-6 col-md-6">
									<img src="images/home/girl33.jpg" class="girl img-responsive" alt="" />
									<!-- <img src="images/home/pricing.png" class="pricing" alt="" /> -->
								</div>
							</div>
							
						</div>
						
						<a href="#slider-carousel" class="left control-carousel hidden-xs" data-slide="prev">
							<i class="fa fa-angle-left"></i>
						</a>
						<a href="#slider-carousel" class="right control-carousel hidden-xs" data-slide="next">
							<i class="fa fa-angle-right"></i>
						</a>
					</div>
					
				</div>
			</div>
		</div>
	</section><!--/slider-->