@extends('layouts.app') @section('title', __('sale.pos_sale')) @section('content')
@if(!empty($pos_settings['enable_multi_sales_tab']))
@endif @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('SellPosController@store'), 'method' => 'post', 'id' => 'add_pos_sell_form', 'enctype' => 'multipart/form-data']) !!}
{!! 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.sell_pos_form') @include('sale_pos.partials.pos_form_totals') @include('sale_pos.partials.payment_modal') @if(empty($pos_settings['disable_suspend']) || $is_admin) @include('sale_pos.partials.suspend_note_modal') @endif @if(empty($pos_settings['disable_recurring_invoice'])) @include('sale_pos.partials.recurring_invoice_modal') @endif
@lang('lang_v1.all_category')
@foreach($categories as $category)
{{ \Illuminate\Support\Str::limit(ucfirst($category['name']), 23) }} @if(!empty($category['sub_categories'])) @endif
@if(!empty($category['sub_categories']))
@foreach($category['sub_categories'] as $sc)
{{ \Illuminate\Support\Str::limit($sc['name'], 23) }} @if(!empty($sc['sub_sub_categories'])) @endif
@if(!empty($sc['sub_sub_categories']))
@foreach($sc['sub_sub_categories'] as $ssc)
{{ \Illuminate\Support\Str::limit($ssc['name'], 20) }}
@endforeach
@endif
@endforeach
@endif
@endforeach
@if(empty($pos_settings['hide_product_suggestion']) && !isMobile())
@include('sale_pos.partials.pos_sidebar')
@endif
@include('sale_pos.partials.pos_form_actions') {!! Form::close() !!}
@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_settings['enable_multi_sales_tab'])) @endif @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') @if(!empty($pos_settings['enable_multi_sales_tab'])) @endif @if(config('services.google_speech.enabled')) @endif @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 @if(!empty(session('business.enable_multi_currency'))) @endif @endsection