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

@lang('lang.edit_sell_return')

{!! Form::open(['url' => action([\App\Http\Controllers\SellReturnController::class, 'update'], [$sell_return->id]), 'method' => 'put', 'id' => 'sell_return_form', 'files' => true ]) !!}
{!! Form::label('contact_id', __('contact.customer') . ':*') !!}
{!! Form::select('contact_id', [], null, ['class' => 'form-control mousetrap', 'id' => 'customer_id', 'placeholder' => 'Enter Customer name / phone', 'required']); !!}
{!! Form::label('ref_no', __('lang.invoice_no').':') !!} {!! Form::text('ref_no', $sell_return->invoice_no, ['class' => 'form-control']); !!}
{!! Form::label('transaction_date', __('messages.date') . ':*') !!}
{!! Form::text('transaction_date', @format_datetime($sell_return->transaction_date), ['class' => 'form-control', 'readonly', 'required']); !!}
{!! Form::label('document', __('lang.attachments') . ':') !!} {!! Form::file('document', ['id' => 'upload_document', 'accept' => implode(',', array_keys(config('constants.document_upload_mimes_types')))]); !!}

@lang('sell.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')]); !!}
@if(session('business.enable_lot_number')) @endif @if(session('business.enable_product_expiry')) @endif @foreach($sell_lines as $sell_line) @include('purchase_return.partials.product_table_row', ['product' => $sell_line, 'row_index' => $loop->index, 'edit' => true]) @php $row_index = $loop->iteration; @endphp @endforeach
@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'): {{$sell_return->final_total}}
{!! Form::close() !!}
@stop @section('javascript') @endsection