@extends('layouts.app')
@section('title', __('sale.edit_sale'))
@section('content')
@if(!empty($pos_settings['allow_overselling']))
@endif
@if(session('business.enable_rp') == 1)
@endif
{!! Form::open(['url' => action('SellPosController@update', ['id' => $transaction->id ]), 'method' => 'put', 'id' => 'edit_sell_form' ]) !!}
{!! Form::hidden('location_id', $transaction->location_id, ['id' => 'location_id', 'data-receipt_printer_type' => !empty($location_printer_type) ? $location_printer_type : 'browser']); !!}
@component('components.widget', ['class' => 'box-primary'])
@if(!empty($transaction->selling_price_group_id))
@endif
@if(in_array('types_of_service', $enabled_modules) && !empty($transaction->types_of_service))
@if(!empty($transaction->types_of_service))
@include('types_of_service.pos_form_modal', ['types_of_service' => $transaction->types_of_service])
@endif
@endif
@if(in_array('subscription', $enabled_modules))
@show_tooltip(__('lang_v1.recurring_invoice_help'))
@endif
@if(!empty($commission_agent))
{!! Form::label('commission_agent', __('lang_v1.commission_agent') . ':') !!}
{!! Form::select('commission_agent',
$commission_agent, $transaction->commission_agent, ['class' => 'form-control select2']); !!}
@endif
@php
if($transaction->status == 'draft' && $transaction->is_quotation == 1){
$status = 'quotation';
} else {
$status = $transaction->status;
}
@endphp
{!! Form::label('status', __('sale.status') . ':*') !!}
{!! Form::select('status', ['final' => __('sale.final'), 'draft' => __('sale.draft'), 'quotation' => __('lang_v1.quotation')], $status, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}
@if($transaction->status == 'draft')
{!! Form::label('invoice_scheme_id', __('invoice.invoice_scheme') . ':') !!}
{!! Form::select('invoice_scheme_id', $invoice_schemes, $default_invoice_schemes->id, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
@endif
@if(in_array('tables' ,$enabled_modules) || in_array('service_staff' ,$enabled_modules))
@endif
@endcomponent
@component('components.widget', ['class' => 'box-primary'])
@php
$hide_tax = '';
if( session()->get('business.enable_inline_tax') == 0){
$hide_tax = 'hide';
}
@endphp
@lang('sale.product')
|
@lang('sale.qty')
|
@if(!empty($pos_settings['inline_service_staff']))
@lang('restaurant.service_staff')
|
@endif
@lang('sale.price_inc_tax')
|
@lang('sale.subtotal')
|
|
@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 : [] ])
@endforeach
@lang('sale.item'):
0
@lang('sale.total'):
0
|
@endcomponent
@component('components.widget', ['class' => 'box-primary'])
@lang( 'sale.discount_amount' ):(-)
0
{{session('business.rp_name')}}
@lang('lang_v1.available'): {{$redeem_details['points'] ?? 0}}
@lang('lang_v1.redeemed_amount'): (-){{@num_format($transaction->rp_redeemed_amount)}}
@lang( 'sale.order_tax' ):(+)
{{$transaction->tax_amount}}
{!! Form::label('shipping_status', __('lang_v1.shipping_status')) !!}
{!! Form::select('shipping_status',$shipping_statuses, $transaction->shipping_status, ['class' => 'form-control','placeholder' => __('messages.please_select')]); !!}
{!! Form::label('delivered_to', __('lang_v1.delivered_to') . ':' ) !!}
{!! Form::text('delivered_to', $transaction->delivered_to, ['class' => 'form-control','placeholder' => __('lang_v1.delivered_to')]); !!}
@lang('sale.total_payable'):
0
{!! Form::label('sell_note',__('sale.sell_note') . ':') !!}
{!! Form::textarea('sale_note', $transaction->additional_notes, ['class' => 'form-control', 'rows' => 3]); !!}
@endcomponent
@if(in_array('subscription', $enabled_modules))
@include('sale_pos.partials.recurring_invoice_modal')
@endif
{!! Form::close() !!}
@include('contact.create', ['quick_add' => true])
@include('sale_pos.partials.configure_search_modal')
@stop
@section('javascript')
@if(in_array('tables' ,$enabled_modules) || in_array('modifiers' ,$enabled_modules) || in_array('service_staff' ,$enabled_modules))
@endif
@endsection