@if(!empty($pos_settings['allow_overselling']))
@endif
@if(session('business.enable_rp') == 1)
@endif
@php
$is_discount_enabled = $pos_settings['disable_discount'] != 1 ? true : false;
$is_rp_enabled = session('business.enable_rp') == 1 ? true : false;
$show_category_suggestion = session('business.enable_category') == 1 && empty($pos_settings['hide_category_suggestion']) && !empty($categories);
$show_brand_suggestion = session('business.enable_brand') == 1 && empty($pos_settings['hide_brand_suggestion']) && !empty($brands);
$show_pos_suggestions = $show_category_suggestion || $show_brand_suggestion;
$is_pos_downpayment = ($sub_type ?? null) === 'downpayment';
@endphp
@if($is_pos_downpayment)
@include('sale_pos.partials.downpayment_pos_guide', ['is_edit' => true])
@endif
@if(!empty($is_preorder_completion))
@lang('lang_v1.pre_order_ready_for_pos_completion')
@endif
{!! Form::open(['url' => action([\App\Http\Controllers\SellPosController::class, 'update'], [$transaction->id]), 'method' => 'post', 'id' => 'edit_pos_sell_form', 'files' => true ]) !!}
{{ method_field('PUT') }}
@if($transaction->type === 'sell' && empty($only_payment) && empty($is_preorder_completion))
@endif
{!! Form::hidden('location_id', $transaction->location_id, ['id' => 'location_id', 'data-receipt_printer_type' => !empty($location_printer_type) ? $location_printer_type : 'browser', 'data-default_payment_accounts' => $transaction->location->default_payment_accounts]); !!}
{!! Form::hidden('sub_type', isset($sub_type) ? $sub_type : null) !!}
@include('sale_pos.partials.pos_form_edit')
@include('sale_pos.partials.pos_form_totals', ['edit' => true])
@include('sale_pos.partials.payment_modal')
@include('sale_pos.partials.suspend_note_modal')
@if(empty($pos_settings['disable_recurring_invoice']))
@include('sale_pos.partials.recurring_invoice_modal')
@endif
@if(!empty($only_payment) || !empty($is_preorder_completion))
@endif
@if($show_pos_suggestions && !isMobile() && empty($only_payment) && empty($is_preorder_completion))
@include('sale_pos.partials.pos_sidebar')
@endif
@include('sale_pos.partials.pos_form_actions', ['edit' => true])
{!! Form::close() !!}
@if(!empty($is_preorder_completion))
@endif