@extends('layouts.app')
@section('title', __('sale.edit_sale'))
@section('content')
{!! 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']); !!}
@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']); !!}
@php
$hide_tax = '';
if( session()->get('business.enable_inline_tax') == 0){
$hide_tax = 'hide';
}
@endphp
@lang('sale.product')
|
@lang('sale.qty')
|
@lang('sale.unit_price')
|
@lang('sale.tax')
|
@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])
@endforeach
@lang( 'sale.discount_amount' ):(-)
0
@lang( 'sale.order_tax' ):(+)
{{$transaction->tax_amount}}
@lang('sale.total_payable'):
0
{!! Form::label('sell_note',__('sale.sell_note') . ':') !!}
{!! Form::textarea('sale_note', $transaction->additional_notes, ['class' => 'form-control', 'rows' => 3]); !!}
{!! Form::close() !!}
@include('contact.create', ['quick_add' => true])
@stop
@section('javascript')
@endsection