<?php $__env->startSection('title','تقرير المشتريات'); ?>
<?php $__env->startSection('content'); ?>
	<!-- Content Header (Page header) -->

	<section class="content-header">
		<h1>
			تقرير المشتريات
		</h1>
	</section>

	<!-- Main content -->
	<section class="content">
        <div class="row">
            <div class="col-lg-3 col-xs-6">
                <!-- small box -->
                <div class="small-box bg-primary">
                    <div class="inner">
                        <h3 id="totalOrder">0</h3>
                        <p>إجمالى المشتريات</p>
                    </div>
                    <div class="icon">
                        <i class="fa fa-money"></i>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-blue"><i class="fa fa-money"></i></span>
                    <div class="info-box-content">
                        <span class="info-box-text"><?php echo app('translator')->getFromJson('front.cash'); ?></span>
                        <span class="info-box-number cashOrders">0</span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-aqua"><i class="fa fa-credit-card"></i></span>

                    <div class="info-box-content">
                        <span class="info-box-text"><?php echo app('translator')->getFromJson('front.visa'); ?></span>
                        <span class="info-box-number visaOrders">0</span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->

            <!-- fix for small devices only -->
            <div class="clearfix visible-sm-block"></div>

            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-green"><i class="fa fa-calendar-check-o"></i></span>

                    <div class="info-box-content">
                        <span class="info-box-text"><?php echo app('translator')->getFromJson('front.Postpaid'); ?></span>
                        <span class="info-box-number postPaidOrders">0</span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-yellow"><i class="fa fa-external-link"></i></span>

                    <div class="info-box-content">
                        <span class="info-box-text"><?php echo app('translator')->getFromJson('front.link transfer'); ?></span>
                        <span class="info-box-number linkTransferOrders">0</span>
                    </div>
                    <!-- /.info-box-content -->
                </div>
                <!-- /.info-box -->
            </div>
            <!-- /.col -->
        </div>
		<div class="row">
			<div class="col-xs-12">
				<div class="box">
				 <div class="box-header">
                     <?php echo $__env->make('layouts.partial.filter_order_report', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                 </div>
				<!-- /.box-header -->
					<div class="box-body">
						<table class="dataTableList table table-bordered table-striped">
							<thead>
								<tr>
									<th><?php echo app('translator')->getFromJson('front.invoicenumber'); ?></th>
									<th><?php echo app('translator')->getFromJson('front.date'); ?></th>
                                    <th><?php echo app('translator')->getFromJson('front.client'); ?></th>
                                    <th><?php echo app('translator')->getFromJson('front.sale'); ?></th>
                                    <th><?php echo app('translator')->getFromJson('front.price'); ?></th>
									<th><?php echo app('translator')->getFromJson('front.payment'); ?></th>
                                    <th><?php echo app('translator')->getFromJson('front.discount'); ?></th>
                                    <th>إجمالي ق الضريبة</th>
                                    <th>قيمة الضريبة</th>
									<th>إجمالي بعد الضريبة</th>
									<th><?php echo app('translator')->getFromJson('front.paid'); ?></th>
									<th><?php echo app('translator')->getFromJson('front.due'); ?></th>
                                    
								</tr>
							</thead>
						</table>
					</div>
					<!-- /.box-body -->
				</div>
				<!-- /.box -->
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</section>
	<!-- /.content -->

	<div rel="flipInX" id="myModal" class="modal  modal-fullscreen" style="overflow-x:hidden;overflow-y: scroll;" role="dialog" aria-labelledby="myModalLabel">
		<div class="modal-dialog modal-lg" >
			<div class="modal-content">
				<div class="modal-body">
					<p class="text-center"><div class="fa-3x text-center"><i class="fa fa-cog fa-spin"></i>                    <?php echo app('translator')->getFromJson('front.Loading ....'); ?>                </div>                </p>
				</div>
			</div>
		</div>
	</div>


<?php $__env->stopSection(); ?>
<?php $__env->startPush('dataTableJs'); ?>
<script>
    var pageUrl = "<?php echo e(route('purchase.report')); ?>?fromdate=<?php echo e(request('fromdate')); ?>";
	var columns= [
	{data: "invoice_number", name: "invoice_number"},
	{data: "invoice_date", name: "invoice_date"},
    {data: "clientname", name: "client.name"},
    {data: "saleperson", name: "saleMan.name"},
    {data: "priceType", name: "priceType"},
	{data: "payment_type", name: "payment_type", orderable: false, searchable: false},
    {data: "dicount_value", name: "dicount_value"},
    {data: "totalbefore", name: "totalbefore"},
    {data: "tax_value", name: "tax_value"},
    {data: "total", name: "total"},
	{data: "paid", name: "paid"},
	{data: "due", name: "due"},
    //{data: "profit", name: "profit"},
	];
</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>