@if(!empty($pos_settings['show_invoice_layout']))
{!! Form::select('invoice_layout_id', $invoice_layouts, $default_location->invoice_layout_id, ['class' => 'form-control select2', 'placeholder' => __('lang_v1.select_invoice_layout'), 'id' => 'invoice_layout_id']); !!}
@endif
@if(!empty($commission_agent))
@php
$is_commission_agent_required = !empty($pos_settings['is_commission_agent_required']);
@endphp
{!! Form::select('commission_agent', $commission_agent, null, ['class' => 'form-control select2', 'placeholder' => __('lang_v1.commission_agent'), 'id' => 'commission_agent', 'required' => $is_commission_agent_required]); !!}
@endif
@if(!empty($pos_settings['enable_transaction_date']))
@endif
{{-- Multi-Currency Selector --}}
@if(!empty($business_details->enable_multi_currency) && $business_details->enable_multi_currency == 1)
{!! Form::hidden('foreign_currency_total', 0, ['id' => 'foreign_currency_total']); !!}
@endif
@if(!empty($price_groups) && count($price_groups) > 1)
@else
@php
reset($price_groups);
@endphp
{!! Form::hidden('price_group', key($price_groups), ['id' => 'price_group']) !!}
@endif
@if(!empty($default_price_group_id))
{!! Form::hidden('default_price_group', $default_price_group_id, ['id' => 'default_price_group']) !!}
@endif
@if(in_array('types_of_service', $enabled_modules) && !empty($types_of_service))
@endif
@if(!empty($pos_settings['show_invoice_scheme']))
{!! Form::select('invoice_scheme_id', $invoice_schemes, $default_invoice_schemes->id, ['class' => 'form-control', 'placeholder' => __('lang_v1.select_invoice_scheme')]); !!}
@endif
@if(in_array('subscription', $enabled_modules))
@show_tooltip(__('lang_v1.recurring_invoice_help'))
@endif
{{-- End row --}}
{{-- Restaurant Module Section --}}
@if(in_array('tables' ,$enabled_modules) || in_array('service_staff' ,$enabled_modules))
{!! Form::label('sales_order_ids', __('lang_v1.sales_order').':') !!}
{!! Form::select('sales_order_ids[]', [], null, ['class' => 'form-control select2', 'multiple', 'id' => 'pos_sales_order_ids']); !!}
{!! Form::label('quotation_order_ids', __('Quotation Orders').':') !!}
{!! Form::select('quotation_order_ids[]', [], null, ['class' => 'form-control select2', 'multiple', 'id' => 'pos_quotation_order_ids']); !!}
{{-- End row --}}
@endif
{{-- Custom Fields Section --}}
@php
$custom_labels = json_decode(session('business.custom_labels'), true);
$common_settings = session()->get('business.common_settings');
$custom_field_1_label = !empty($custom_labels['sell']['custom_field_1']) ? $custom_labels['sell']['custom_field_1'] : '';
$is_custom_field_1_required = !empty($custom_labels['sell']['is_custom_field_1_required']) && $custom_labels['sell']['is_custom_field_1_required'] == 1 ? true : false;
$custom_field_2_label = !empty($custom_labels['sell']['custom_field_2']) ? $custom_labels['sell']['custom_field_2'] : '';
$is_custom_field_2_required = !empty($custom_labels['sell']['is_custom_field_2_required']) && $custom_labels['sell']['is_custom_field_2_required'] == 1 ? true : false;
$custom_field_3_label = !empty($custom_labels['sell']['custom_field_3']) ? $custom_labels['sell']['custom_field_3'] : '';
$is_custom_field_3_required = !empty($custom_labels['sell']['is_custom_field_3_required']) && $custom_labels['sell']['is_custom_field_3_required'] == 1 ? true : false;
$custom_field_4_label = !empty($custom_labels['sell']['custom_field_4']) ? $custom_labels['sell']['custom_field_4'] : '';
$is_custom_field_4_required = !empty($custom_labels['sell']['is_custom_field_4_required']) && $custom_labels['sell']['is_custom_field_4_required'] == 1 ? true : false;
@endphp
@if(!empty($custom_field_1_label))
@php
$label_1 = $custom_field_1_label . ':';
if($is_custom_field_1_required) {
$label_1 .= '*';
}
@endphp
{!! Form::label('custom_field_1', $label_1 ) !!}
{!! Form::text('custom_field_1', null, ['class' => 'form-control','placeholder' => $custom_field_1_label, 'required' => $is_custom_field_1_required]); !!}
@endif
@if(!empty($custom_field_2_label))
@php
$label_2 = $custom_field_2_label . ':';
if($is_custom_field_2_required) {
$label_2 .= '*';
}
@endphp
{!! Form::label('custom_field_2', $label_2 ) !!}
{!! Form::text('custom_field_2', null, ['class' => 'form-control','placeholder' => $custom_field_2_label, 'required' => $is_custom_field_2_required]); !!}
@endif
@if(!empty($custom_field_3_label))
@php
$label_3 = $custom_field_3_label . ':';
if($is_custom_field_3_required) {
$label_3 .= '*';
}
@endphp
{!! Form::label('custom_field_3', $label_3 ) !!}
{!! Form::text('custom_field_3', null, ['class' => 'form-control','placeholder' => $custom_field_3_label, 'required' => $is_custom_field_3_required]); !!}
@endif
@if(!empty($custom_field_4_label))
@php
$label_4 = $custom_field_4_label . ':';
if($is_custom_field_4_required) {
$label_4 .= '*';
}
@endphp
{!! Form::label('custom_field_4', $label_4 ) !!}
{!! Form::text('custom_field_4', null, ['class' => 'form-control','placeholder' => $custom_field_4_label, 'required' => $is_custom_field_4_required]); !!}
@endif
{{-- End custom fields row --}}
@if(!empty($pos_module_data))
@foreach($pos_module_data as $key => $value)
@if(!empty($value['view_path']))
@includeIf($value['view_path'], ['view_data' => $value['view_data']])
@endif
@endforeach
@endif