@extends('layouts.app')
@section('title', __('sale.pos_sale'))
@php
$custom_labels = json_decode(session('business.custom_labels'), true);
$common_settings = session()->get('business.common_settings');
@endphp
@section('content')
@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' ]) !!}
{!! Form::select('contact_id', [], null, ['class' => 'form-control mousetrap', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required']); !!}
|
user()->can('customer.create')) disabled @endif> New Patient
|
@php
$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
Name : -----
Id : -----
Mobile No : -----
Address : -----
|
@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 input-sm','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 input-sm','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 input-sm','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 input-sm','placeholder' => $custom_field_4_label, 'required' => $is_custom_field_4_required]); !!}
|
@endif
@if(!empty($pos_settings['enable_transaction_date']))
|
{!! Form::text('transaction_date', $default_datetime, ['class' => 'form-control input-sm', 'readonly', 'required', 'id' => 'transaction_date']); !!}
|
@php
$custom_labels = json_decode(session('business.custom_labels'), true);
$shipping_custom_label_1 = !empty($custom_labels['shipping']['custom_field_1']) ? $custom_labels['shipping']['custom_field_1'] : '';
$is_shipping_custom_field_1_required = !empty($custom_labels['shipping']['is_custom_field_1_required']) && $custom_labels['shipping']['is_custom_field_1_required'] == 1 ? true : false;
$shipping_custom_label_2 = !empty($custom_labels['shipping']['custom_field_2']) ? $custom_labels['shipping']['custom_field_2'] : '';
$is_shipping_custom_field_2_required = !empty($custom_labels['shipping']['is_custom_field_2_required']) && $custom_labels['shipping']['is_custom_field_2_required'] == 1 ? true : false;
$shipping_custom_label_3 = !empty($custom_labels['shipping']['custom_field_3']) ? $custom_labels['shipping']['custom_field_3'] : '';
$is_shipping_custom_field_3_required = !empty($custom_labels['shipping']['is_custom_field_3_required']) && $custom_labels['shipping']['is_custom_field_3_required'] == 1 ? true : false;
$shipping_custom_label_4 = !empty($custom_labels['shipping']['custom_field_4']) ? $custom_labels['shipping']['custom_field_4'] : '';
$is_shipping_custom_field_4_required = !empty($custom_labels['shipping']['is_custom_field_4_required']) && $custom_labels['shipping']['is_custom_field_4_required'] == 1 ? true : false;
$shipping_custom_label_5 = !empty($custom_labels['shipping']['custom_field_5']) ? $custom_labels['shipping']['custom_field_5'] : '';
$is_shipping_custom_field_5_required = !empty($custom_labels['shipping']['is_custom_field_5_required']) && $custom_labels['shipping']['is_custom_field_5_required'] == 1 ? true : false;
@endphp
@if(!empty($shipping_custom_label_1))
@php
$label_1 = $shipping_custom_label_1 . ':';
if($is_shipping_custom_field_1_required) {
$label_1 .= '*';
}
@endphp
|
{!! Form::text('shipping_custom_field_1', !empty($transaction->shipping_custom_field_1) ? $transaction->shipping_custom_field_1 : null, ['class' => 'form-control input-sm','placeholder' => $shipping_custom_label_1, 'required' => $is_shipping_custom_field_1_required]); !!}
|
@endif
@endif
@if(in_array('tables' ,$enabled_modules) || in_array('service_staff' ,$enabled_modules))
|
|
@endif
@php
$hide_tax = '';
if( session()->get('business.enable_inline_tax') == 0){
$hide_tax = 'hide';
}
@endphp
@lang('sale.product') @show_tooltip(__('lang_v1.tooltip_sell_product_column'))
|
@lang('sale.qty')
|
Unit Price
|
Disc.Type
|
Disc.Amt
|
Tax
|
@if(!empty($pos_settings['inline_service_staff']))
@lang('restaurant.service_staff')
|
@endif
@lang('sale.price_inc_tax')
|
@lang('sale.subtotal')
|
|
@lang('sale.item'):
0 |
@lang('sale.total'):
0
|
@if($is_discount_enabled)
@lang('sale.discount')
@show_tooltip(__('tooltip.sale_discount'))
@endif
@if($is_rp_enabled)
{{session('business.rp_name')}}
@endif
@if($is_discount_enabled)
(-):
@if($edit_discount)
@endif
0
@endif
|
@lang('sale.order_tax')(+): @show_tooltip(__('tooltip.sale_tax'))
@if(empty($edit))
0
@else
{{$transaction->tax_amount}}
@endif
|
@lang('sale.shipping')(+): @show_tooltip(__('tooltip.shipping'))
0
|
@if(in_array('types_of_service', $enabled_modules))
@lang('lang_v1.packing_charge')(+):
0
|
@endif
@if(!empty($pos_settings['amount_rounding_method']) && $pos_settings['amount_rounding_method'] > 0)
@lang('lang_v1.round_off'): 0
|
@endif
@include('sale_pos.partials.pos_sidebar')
{!! 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.pos_form_totals')
@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.payment_modal')
@if(empty($pos_settings['hide_product_suggestion']) && !isMobile())
@include('sale_pos.partials.pos_sidebar')
@endif
@include('sale_pos.partials.pos_form_actions')
{!! Form::close() !!}
@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