@extends('layouts.app') @section('title', __('lang.add_sell_return')) @section('content')

@lang('lang.add_sell_return')

{{-- Form::open(['url' => action([\App\Http\Controllers\CombinedPurchaseReturnController::class, 'save']), 'method' => 'post', 'id' => 'sell_return_form', 'files' => true ]) --}} {!! Form::open(['url' => action([\App\Http\Controllers\SellReturnController::class, 'save']), 'method' => 'post', 'id' => 'sell_return_form', 'files' => true ]) !!}
{!! Form::label('contact_id', __('contact.customer') . ':*') !!}
@if(!empty($walk_in_customer['price_calculation_type']) && $walk_in_customer['price_calculation_type'] == 'selling_price_group') @endif {!! Form::select('contact_id', [], null, ['class' => 'form-control mousetrap', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required']); !!}
{!! Form::label('user_id', __('lang.users') . ':*') !!}
{!! Form::select('user_id', getUsers(), null, ['class' => 'form-control select2', 'id' => 'commission_sales_person', 'required', 'style' => 'width: 200px !important;']); !!}
{!! Form::label('location_id', __('purchase.business_location').':*') !!} {!! Form::select('location_id', $business_locations, null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label('stock_id', __('stock.stock').':*') !!} {!! Form::select('stock_id', [], null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label('ref_no', __('purchase.ref_no').':') !!} {!! Form::text('ref_no', null, ['class' => 'form-control']); !!}
{!! Form::label('transaction_date', __('messages.date') . ':*') !!}
{!! Form::text('transaction_date', @format_datetime('now'), ['class' => 'form-control', 'readonly', 'required']); !!}
{!! Form::label('document', __('purchase.attach_document') . ':') !!} {!! Form::file('document', ['id' => 'upload_document', 'accept' => implode(',', array_keys(config('constants.document_upload_mimes_types')))]); !!}

@lang('purchase.max_file_size', ['size' => (config('constants.document_size_limit') / 1000000)]) @includeIf('components.document_help_text')

{{ __('stock_adjustment.search_products') }}

{!! Form::text('search_product', null, ['class' => 'form-control', 'id' => 'search_product_for_sell_return', 'placeholder' => __('stock_adjustment.search_products'), 'disabled']); !!}
@if(session('business.enable_lot_number')) @endif @if(session('business.enable_product_expiry')) @endif
@lang('sale.product') @lang('lang.lot_number') @lang('product.exp_date') @lang('sale.qty') @lang('sale.unit_price') @lang('sale.subtotal')
@lang('stock_adjustment.total_amount'): 0.00
{!! Form::label('discount_type', __( 'purchase.discount_type' ) . ':') !!} {!! Form::select('discount_type', [ '' => __('lang_v1.none'), 'fixed' => __( 'lang_v1.fixed' ), 'percentage' => __( 'lang_v1.percentage' )], null, ['class' => 'form-control']) !!}
{!! Form::label('discount_amount', __( 'purchase.discount_amount' ) . ':') !!} {!! Form::text('discount_amount', null, ['class' => 'form-control input_number']) !!}
{!! Form::close() !!}
@stop @section('javascript') @endsection