{{ (@$returndocuments) ? 'Edit Inward Returns' : 'Add Inward Returns' }}

{{ Form::open( [ 'method'=> 'POST', 'url' => route('returndocuments.store'), 'id'=> 'return_documents_save', 'enctype' => 'multipart/form-data']) }} {{Form::hidden('id',@$returndocuments->id) }}
{{Form::text( 'date', ((@$returndocuments->id && @$returndocuments->date != NULL) ? date(LaraCore::setting('date_format'),strtotime(@$returndocuments->date)) : @$today), [ "class" => "form-control date_input", "id" => 'date' ]) }}
{{Form::text( 'barcode', ((@$returndocuments->id) ? @$returndocuments->barcode : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'sender', ((@$returndocuments->id) ? @$returndocuments->sender : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'receiver', ((@$returndocuments->id) ? @$returndocuments->receiver : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{ Form::select( 'center_id', @$centers, ((@$returndocuments->id) ? @$returndocuments->center_id : ""), ["class" => "form-control select2", "id" => "center_id"] ) }}
{{ Form::select( 'carrier_id', @$carriers, ((@$returndocuments->id) ? @$returndocuments->carrier_id : ""), ["class" => "form-control select2", "id" => "carrier_id"] ) }}
{{Form::text( 'reason', ((@$returndocuments->id) ? @$returndocuments->reason : ""), [ "class" => "form-control", "placeholder" => "" ]) }}
{{ Form::close() }}