<div class="pos-tab-content">
    <div class="row">
        <div class="col-sm-4">
            <a href="#" type="button"   data-href="<?php echo e(action('\Modules\Accounting\Http\Controllers\TransactionController@autoMap',['purchase']), false); ?>" 
				class="btn-modal btn btn-primary btn-sm bg-olive mt-10" data-container=".view_modal"><i class="fas fa-link"></i> Auto Map Purchases</a><br>
				<span class="label bg-orange">Last Recon Txn Date: <?php echo e((isset($maxpurchasedate) && !empty($maxpurchasedate)) ? date('d M Y',strtotime($maxpurchasedate->operation_date)): '--', false); ?></span>
				<span class="label bg-purple">Latest Transaction Date: <?php echo e((isset($maxpurchasetxndate) && !empty($maxpurchasetxndate)) ? date('d M Y',strtotime($maxpurchasetxndate->transaction_date)) : '--', false); ?></span>
        </div>
    </div>
    <div class="row">
        <?php $__env->startComponent('components.filters', ['title' => __('report.filters')]); ?>
            <div class="col-md-3">
                <div class="form-group">
                    <?php echo Form::label('purchase_list_filter_location_id',  __('purchase.business_location') . ':'); ?>

                    <?php echo Form::select('purchase_list_filter_location_id', $business_locations, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all')]);; ?>

                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <?php echo Form::label('purchase_list_filter_supplier_id',  __('purchase.supplier') . ':'); ?>

                    <?php echo Form::select('purchase_list_filter_supplier_id', $suppliers, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all')]);; ?>

                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <?php echo Form::label('purchase_list_filter_status',  __('purchase.purchase_status') . ':'); ?>

                    <?php echo Form::select('purchase_list_filter_status', $orderStatuses, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all')]);; ?>

                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <?php echo Form::label('purchase_list_filter_payment_status',  __('purchase.payment_status') . ':'); ?>

                    <?php echo Form::select('purchase_list_filter_payment_status', ['paid' => __('lang_v1.paid'), 'due' => __('lang_v1.due'), 'partial' => __('lang_v1.partial'), 'overdue' => __('lang_v1.overdue')], null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all')]);; ?>

                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <?php echo Form::label('purchase_list_filter_date_range', __('report.date_range') . ':'); ?>

                    <?php echo Form::text('purchase_list_filter_date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly']);; ?>

                </div>
            </div>
        <?php echo $__env->renderComponent(); ?>
    </div>

    <div class="row">
        <div class="col-md-12">
            

        <table class="table table-bordered table-striped" id="purchase_table">
            <thead>
                <tr>
                    <th><?php echo app('translator')->getFromJson('messages.action'); ?></th>
                    <th><?php echo app('translator')->getFromJson('messages.date'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.ref_no'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.location'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.supplier'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.purchase_status'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.payment_status'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.grand_total'); ?></th>
                    <th><?php echo app('translator')->getFromJson('purchase.payment_due'); ?> &nbsp;&nbsp;<i class="fa fa-info-circle text-info no-print" data-toggle="tooltip" data-placement="bottom" data-html="true" data-original-title="<?php echo e(__('messages.purchase_due_tooltip'), false); ?>" aria-hidden="true"></i></th>
                    <th><?php echo app('translator')->getFromJson('lang_v1.added_by'); ?></th>
                </tr>
            </thead>
        </table>
        </div>
    </div>
</div><?php /**PATH D:\System\htdocs\bethosonlinee\Modules\Accounting\Providers/../Resources/views/transactions/partials/purchases.blade.php ENDPATH**/ ?>