{{--
--}}
{{--
--}}
{!! Form::hidden('location_id', $default_location->id ?? null, [
'id' => 'location_id',
'data-receipt_printer_type' => !empty($default_location->receipt_printer_type)
? $default_location->receipt_printer_type
: 'browser',
'data-default_payment_accounts' => $default_location->default_payment_accounts ?? '',
]) !!}
{!! Form::hidden('sub_type', isset($sub_type) ? $sub_type : null) !!}
@include('sale_pos.partials.pos_form')
@if ($is_mobile)
@include('sale_pos.partials.pos_form_totals')
@endif
@include('sale_pos.partials.payment_modal')
@if (empty($pos_settings['disable_suspend']))
@include('sale_pos.partials.suspend_note_modal')
@endif
@if (empty($pos_settings['disable_recurring_invoice']))
@include('sale_pos.partials.recurring_invoice_modal')
@endif
{{--
--}}
@if (empty($pos_settings['hide_product_suggestion']) && !isMobile())
@include('sale_pos.partials.pos_sidebar')
@endif
@if (isset($transaction))
@include('sale_pos.partials.edit_discount_modal', [
'sales_discount' => $transaction->discount_amount,
'discount_type' => $transaction->discount_type,
'rp_redeemed' => $transaction->rp_redeemed,
'rp_redeemed_amount' => $transaction->rp_redeemed_amount,
'max_available' => !empty($redeem_details['points']) ? $redeem_details['points'] : 0,
])
@else
@include('sale_pos.partials.edit_discount_modal', [
'sales_discount' => $business_details->default_sales_discount,
'discount_type' => 'percentage',
'rp_redeemed' => 0,
'rp_redeemed_amount' => 0,
'max_available' => 0,
])
@endif
@if (isset($transaction))
@include('sale_pos.partials.edit_order_tax_modal', ['selected_tax' => $transaction->tax_id])
@else
@include('sale_pos.partials.edit_order_tax_modal', [
'selected_tax' => $business_details->default_sales_tax,
])
@endif
@include('sale_pos.partials.edit_shipping_modal')
@if (!$is_mobile)
@include('sale_pos.partials.pos_form_actions')
@endif
@if ($is_mobile)
@include('sale_pos.partials.pos_form_actions')
@endif
{!! Form::close() !!}
@if (!$is_mobile)
@endif
@include('contact.create', ['quick_add' => true])
@if (empty($pos_settings['hide_product_suggestion']) && isMobile())
@include('sale_pos.partials.mobile_product_suggestions')
@endif
@include('sale_pos.partials.configure_search_modal')
@include('sale_pos.partials.recent_transactions_modal')
@include('sale_pos.partials.weighing_scale_modal')
@stop
@section('css')
@if (!empty($pos_module_data))
@foreach ($pos_module_data as $key => $value)
@if (!empty($value['module_css_path']))
@includeIf($value['module_css_path'])
@endif
@endforeach
@endif
@stop
@section('javascript')
@include('sale_pos.partials.keyboard_shortcuts')
@if (in_array('tables', $enabled_modules) ||
in_array('modifiers', $enabled_modules) ||
in_array('service_staff', $enabled_modules))
@endif
@if (!empty($pos_module_data))
@foreach ($pos_module_data as $key => $value)
@if (!empty($value['module_js_path']))
@includeIf($value['module_js_path'], ['view_data' => $value['view_data']])
@endif
@endforeach
@endif
@endsection