@extends('layouts.app') @section('title', __('sale.pos_sale')) @section('content')
@include('sale_pos.partials.customer_display_config') @include('sale_pos.partials.scanner_config') @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; @endphp {!! Form::open([ 'url' => action([\App\Http\Controllers\SellPosController::class, 'store']), 'method' => 'post', 'id' => 'add_pos_sell_form', 'data-ui-module' => 'pos', ]) !!}
{{--
--}}
{{--
--}}
{!! 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') @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
{{--
--}}
@include('sale_pos.partials.pos_form_actions') @include('sale_pos.partials.online_orders_queue')
@if (empty($pos_settings['hide_product_suggestion']) && !isMobile())
@include('sale_pos.partials.pos_sidebar')
@endif
{!! Form::close() !!}
@include('sale_pos.partials.pos_offline_receipt_meta') @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') @if (Module::has('Exchange') && \App\System::getProperty('Exchange_version')) @includeIf('exchange::pos.exchange_modal') @endif @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') @php $pos_js_v = $asset_v . '-' . @filemtime(public_path('js/pos.js')); $pos_payment_method_change_js_v = $asset_v . '-' . @filemtime(public_path('js/pos_payment_method_change.js')); $printer_js_v = $asset_v . '-' . @filemtime(public_path('js/printer.js')); @endphp @include('sale_pos.partials.pos_operations_assets') @include('sale_pos.partials.pos_http_assets') @include('sale_pos.partials.pos_state_assets') @include('sale_pos.partials.pos_service_worker_assets') @include('sale_pos.partials.pos_offline_preparation_assets') @include('sale_pos.partials.pos_offline_maintenance_assets') @include('sale_pos.partials.pos_offline_db_assets') @include('sale_pos.partials.pos_offline_catalog_assets') @include('sale_pos.partials.pos_offline_catalog_sync_assets') @include('sale_pos.partials.pos_offline_row_templates_assets') @include('sale_pos.partials.pos_readiness_assets') @include('sale_pos.partials.pos_offline_conflicts_assets') @include('sale_pos.partials.pos_offline_queue_assets') @include('sale_pos.partials.pos_offline_queue_actions_assets') @include('sale_pos.partials.pos_offline_queue_sync_assets') @include('sale_pos.partials.pos_offline_center_assets') @include('sale_pos.partials.pos_offline_events_assets') @include('sale_pos.partials.pos_network_health_assets') @include('sale_pos.partials.pos_ui_header_actions_assets') @include('sale_pos.partials.pos_events_assets') @include('sale_pos.partials.pos_cart_layout_assets') @include('sale_pos.partials.pos_cart_totals_assets') @include('sale_pos.partials.pos_sale_workflow_assets') @include('sale_pos.partials.pos_sale_context_assets') @include('sale_pos.partials.pos_product_row_assets') @include('sale_pos.partials.pos_products_render_assets') @include('sale_pos.partials.pos_products_browser_assets') @include('sale_pos.partials.pos_search_index_assets') @include('sale_pos.partials.pos_products_search_assets') @include('sale_pos.partials.pos_scanner_assets') @include('sale_pos.partials.pos_customer_display_assets') @include('sale_pos.partials.pos_draft_autosave_assets') @include('sale_pos.partials.pos_boot_assets') @include('sale_pos.partials.pos_diagnostics_assets') @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 (Module::has('Exchange') && \App\System::getProperty('Exchange_version')) @includeIf('exchange::pos.exchange_routes') @php $pos_exchange_js_candidates = [ ['path' => public_path('modules/exchange/js/pos-exchange.js'), 'asset' => asset('modules/exchange/js/pos-exchange.js')], ['path' => public_path('js/pos-exchange.js'), 'asset' => asset('js/pos-exchange.js')], ]; $pos_exchange_js_url = null; foreach ($pos_exchange_js_candidates as $candidate) { if (file_exists($candidate['path'])) { $pos_exchange_js_url = $candidate['asset'] . '?v=' . @filemtime($candidate['path']); break; } } @endphp @if (!empty($pos_exchange_js_url)) @endif @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