@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('expense_category_id', __('expense.expense_category').':') !!}
{!! Form::select('expense_category_id', $expense_categories, null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
{!! Form::label('ref_no', __('purchase.ref_no').':') !!}
{!! Form::text('ref_no', null, ['class' => 'form-control']); !!}
{!! Form::label('expense_for', __('expense.expense_for').':') !!} @show_tooltip(__('tooltip.expense_for'))
{!! Form::select('expense_for', $users, null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
{!! Form::label('additional_notes', __('expense.expense_note') . ':') !!}
{!! Form::textarea('additional_notes', null, ['class' => 'form-control', 'rows' => 3]); !!}
{!! Form::label('final_total', __('sale.total_amount') . ':*') !!}
{!! Form::text('final_total', null, ['class' => 'form-control input_number', 'placeholder' => __('sale.total_amount'), 'required']); !!}