@php
$readonly = $payment_line['method'] == 'advance' ? true : false;
@endphp
@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 select2', 'placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label("note_0", __('sale.payment_note') . ':') !!}
{!! Form::textarea("payment_notes", $payment_line['note'], ['class' => 'form-control', 'rows' => 3, 'id' => "note_0"]); !!}
{!! Form::close() !!}
@endsection
@section('javascript')
@endsection