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

@lang('lang_v1.add_purchase_return')

{!! Form::open(['url' => action('CombinedPurchaseReturnController@save'), 'method' => 'post', 'id' => 'purchase_return_form', 'files' => true ]) !!}
{!! Form::label('supplier_id', __('purchase.supplier') . ':*') !!}
{!! Form::select('contact_id', [], null, ['class' => 'form-control', 'placeholder' => __('messages.please_select'), 'required', 'id' => 'supplier_id']); !!}
{!! 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('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']); !!}

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

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

{!! Form::text('search_product', null, ['class' => 'form-control', 'id' => 'search_product_for_purchase_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_v1.lot_number') @lang('product.exp_date') @lang('sale.qty') @lang('sale.unit_price') @lang('sale.subtotal')
{!! Form::label('tax_id', __('purchase.purchase_tax') . ':') !!} {!! Form::hidden('tax_amount', 0, ['id' => 'tax_amount']); !!}
@lang('stock_adjustment.total_amount'): 0.00
{!! Form::close() !!}
@stop @section('javascript') @endsection