@extends('layouts.app') @section('title', 'POS') @section('content')
@if(!empty($pos_settings['allow_overselling'])) @endif @if(session('business.enable_rp') == 1) @endif

Editing @if($transaction->status == 'draft' && $transaction->is_quotation == 1) @lang('lang_v1.quotation') @elseif($transaction->status == 'draft') Draft @elseif($transaction->status == 'final') Invoice @endif #{{$transaction->invoice_no}}

@lang('sale.location'): {{$transaction->location->name}}

{!! Form::open(['url' => action([\App\Http\Controllers\SellPosController::class, 'update'], [$transaction->id]), 'method' => 'post', 'id' => 'edit_pos_sell_form' ]) !!} {{ method_field('PUT') }} {!! Form::hidden('location_id', $transaction->location_id, ['id' => 'location_id', 'data-receipt_printer_type' => !empty($location_printer_type) ? $location_printer_type : 'browser', 'data-default_accounts' => $transaction->location->default_payment_accounts]); !!}
@if(!empty($pos_settings['enable_transaction_date']))
{!! Form::label('transaction_date', __('sale.sale_date') . ':*') !!}
{!! Form::text('transaction_date', @format_datetime($transaction->transaction_date), ['class' => 'form-control', 'readonly', 'required']); !!}
@endif @if(config('constants.enable_sell_in_diff_currency') == true)
{!! Form::text('exchange_rate', @num_format($transaction->exchange_rate), ['class' => 'form-control input-sm input_number', 'placeholder' => __('lang_v1.currency_exchange_rate'), 'id' => 'exchange_rate']); !!}
@endif @if(!empty($transaction->selling_price_group_id))
{!! Form::hidden('price_group', $transaction->selling_price_group_id, ['id' => 'price_group']) !!} {!! Form::text('price_group_text', $transaction->price_group->name, ['class' => 'form-control', 'readonly']); !!} @show_tooltip(__('lang_v1.price_group_help_text'))
@endif @if(in_array('types_of_service', $enabled_modules) && !empty($transaction->types_of_service))
{!! Form::text('types_of_service_text', $transaction->types_of_service->name, ['class' => 'form-control', 'readonly']); !!} {!! Form::hidden('types_of_service_id', $transaction->types_of_service_id, ['id' => 'types_of_service_id']) !!} @show_tooltip(__('lang_v1.types_of_service_help'))

@lang('lang_v1.price_group'): @if(!empty($transaction->selling_price_group_id)){{$transaction->price_group->name}}@endif

@endif @if(in_array('subscription', $enabled_modules))
@show_tooltip(__('lang_v1.recurring_invoice_help'))
@endif
{!! Form::select('contact_id', [], null, ['class' => 'form-control mousetrap', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required', 'style' => 'width: 100%;']); !!}
@if(!empty($commission_agent))
{!! Form::select('commission_agent', $commission_agent, $transaction->commission_agent, ['class' => 'form-control select2', 'placeholder' => __('lang_v1.commission_agent')]); !!}
@endif
{!! Form::text('search_product', null, ['class' => 'form-control mousetrap', 'id' => 'search_product', 'placeholder' => __('lang_v1.search_product_placeholder'), 'autofocus']); !!}
@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 @if(!empty($pos_settings['inline_service_staff'])) @endif @foreach($sell_details as $sell_line) @include('sale_pos.product_row', ['product' => $sell_line, 'row_count' => $loop->index, 'tax_dropdown' => $taxes, 'sub_units' => !empty($sell_line->unit_details) ? $sell_line->unit_details : [], 'action' => 'edit' ]) @endforeach
@lang('sale.product') @lang('sale.qty') @lang('restaurant.service_staff') @lang('sale.price_inc_tax') @lang('sale.subtotal')
@include('sale_pos.partials.pos_details', ['edit' => true]) @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
{!! Form::close() !!}
@include('sale_pos.partials.right_div')
@include('sale_pos.partials.configure_search_modal') @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 @endsection @section('css') @endsection