@extends('layouts.app') @section('title', __('lang_v1.sell_return')) @section('content')

@lang('lang_v1.sell_return')

@include('layouts.partials.error') @if(count($business_locations) == 1) @php $default_location = current(array_keys($business_locations->toArray())) @endphp @else @php $default_location = null; @endphp @endif
{!! Form::label('location_id', __('purchase.business_location').':*') !!} {!! Form::select('location_id', $business_locations, $default_location, ['class' => 'form-control', 'placeholder' => __('messages.please_select'), 'required', 'id' => 'select_location_id']); !!}
{!! Form::open(['url' => action([\App\Http\Controllers\SellReturnController::class, 'store']), 'method' => 'post', 'id' => 'sell_return_form' ]) !!}
{!! Form::hidden('location_id', $default_location, ['id' => 'location_id']); !!}
{!! Form::label('contact_id', __('contact.customer') . ':*') !!}
{!! Form::select('contact_id', [], null, ['class' => 'form-control', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required']); !!}
{!! Form::label('invoice_no', __('purchase.ref_no').':') !!} {!! Form::text('invoice_no', null, ['class' => 'form-control']); !!}
{!! Form::label('transaction_date', __('purchase.purchase_date') . ':*') !!}
{!! Form::text('transaction_date', @format_date('now'), ['class' => 'form-control', 'readonly', 'required']); !!}
{!! Form::text('search_product', null, ['class' => 'form-control', 'id' => 'search_product', 'placeholder' => __('lang_v1.search_product_placeholder'), 'disabled' => is_null($default_location)? true : false, 'autofocus' => is_null($default_location)? false : true, ]); !!}
@php $hide_tax = ''; if( session()->get('business.enable_inline_tax') == 0){ $hide_tax = 'hide'; } @endphp
@if(session('business.enable_lot_number')) @endif @if(session('business.enable_product_expiry')) @endif
@lang('sale.product') @lang('sale.qty') @lang('sale.unit_price') @lang('sale.tax') @lang('sale.price_inc_tax') @lang('sale.subtotal') @lang('lang_v1.lot_number') @lang('product.exp_date')

@lang( 'purchase.total_before_tax' ):
@lang( 'purchase.net_total_amount' ):
{!! Form::label('discount_type', __( 'purchase.discount_type' ) . ':') !!} {!! Form::select('discount_type', [ '' => __('lang_v1.none'), 'fixed' => __( 'lang_v1.fixed' ), 'percentage' => __( 'lang_v1.percentage' )], '', ['class' => 'form-control']); !!}
{!! Form::label('discount_amount', __( 'purchase.discount_amount' ) . ':') !!} {!! Form::text('discount_amount', 0, ['class' => 'form-control input_number', 'required']); !!}
  @lang( 'purchase.discount' ):(-) 0
      {!! Form::hidden('final_total', 0 , ['id' => 'final_total_input']); !!} @lang('lang_v1.total_credit_amt'): 0
{!! Form::label('additional_notes',__('purchase.additional_notes')) !!} {!! Form::textarea('additional_notes', null, ['class' => 'form-control', 'rows' => 3]); !!}
{!! Form::close() !!}
@endsection @section('javascript') @endsection