@php
$options = ['' => 'Select any'];
$status_options = ['' => 'All','1' => 'Approve','0' => 'Pending'];
$purchaseNo = $options + DB::table('pos_purchases')->pluck('purchase_no','purchase_no')->all();
$chalanNo = $options + DB::table('pos_purchases')->pluck('invoice_no','invoice_no')->all();
$brands = $options + DB::table('pos_product_brands')->pluck('name','id')->all();
$products = $options + DB::table('pos_products')->pluck('name','id')->all();
$searchElements = [
['element' => 'report_level','showAll'=>'no'],
['element' => 'branchId'],
['element' => 'custom','id' => 'purchase', 'name' => 'purchase_no','type' => 'select',
'label' => 'Purchase No','options' => $purchaseNo],
['element' => 'custom','id' => 'chalan_no', 'name' => 'chalan_no','type' => 'select',
'label' => 'Chalan No','options' => $chalanNo],
['element' => 'group_id'],
['element' => 'category_id'],
['element' => 'sub_category_id'],
['element' => 'custom', 'name' => 'brand','type' => 'select',
'label' => 'Brand','options' => $brands],
['element' => 'custom', 'name' => 'product','type' => 'select',
'label' => 'Product','options' => $products],
['element' => 'supplierId'],
['element' => 'custom', 'name' => 'status','type' => 'select',
'label' => 'Status','options' => $status_options],
['element' => 'dateRange'],
];
@endphp
@include('partials.searchPanel.main', ['searchElements' => $searchElements])
{{-- div for Company --}}
{{ $company->name }}
{{ $company->address }}
Purchase Report
Printed Date: {{ date('d-m-Y') }}
| SL# |
Purchase Date |
Purchase No |
Branch Name |
Chalan No |
Product Model |
Supplier Name |
Product Name |
Barcode |
Received Quantity |
Unit Price |
Total Amount |
Receive Status |