@php
$options = ['' => 'Select any'];
$transfer_type = ['' => 'Select any', '0' => 'All', '1' => 'Transfer In', '2' => 'Transfer Out'];
if($data['isSalesPriceStatus'] == 'true' && Auth::user()->branchId == 1){
$viewWithCostSalePrice_options = ['1' => 'With Cost Price', '2' => 'With Sale Price'];
}
// $searchElements = [
// ['element' => 'report_level','showAll'=>'no'],
// ['element' => 'branchId'],
// ['element' => 'custom', 'id' => 'transfer_type', 'name' => 'transfer_type', 'type' => 'select', 'label' => 'Transfer Type', 'options' => $transfer_type],
// ['element' => 'group_id'],
// ['element' => 'category_id'],
// ['element' => 'sub_category_id'],
// ['element' => 'model_id'],
// @if($data['isSalesPriceStatus'] == 'false')
// ['element' => 'custom', 'name' => 'costSalePriceFilter', 'type' => 'select', 'label' => 'Cost/Sale Price:', 'options' => $viewWithCostSalePrice_options],
// @endif
// ['element' => 'dateRange']
// ];
$searchElements = [
['element' => 'report_level','showAll'=>'no'],
['element' => 'branchId'],
['element' => 'custom', 'id' => 'transfer_type', 'name' => 'transfer_type', 'type' => 'select', 'label' => 'Transfer Type', 'options' => $transfer_type],
['element' => 'group_id'],
['element' => 'category_id'],
['element' => 'sub_category_id'],
['element' => 'model_id'],
];
if($data['isSalesPriceStatus'] == 'true' && Auth::user()->branchId == 1){
$searchElements[] = [
'element' => 'custom',
'name' => 'costSalePriceFilter',
'type' => 'select',
'label' => 'Cost/Sale Price:',
'options' => $viewWithCostSalePrice_options,
];
}
$searchElements[] = ['element' => 'dateRange'];
@endphp
@include('partials.searchPanel.main', ['searchElements' => $searchElements])
{{ $data['company']->name }}
{{ $data['company']->address }}
Branch Name:
{{ $data['pageTitle'] }}
Printed Date: {{ date('d-m-Y') }}