{!! Form::open(['url' => action([\App\Http\Controllers\CashRegisterController::class, 'store']), 'method' => 'post',
'id' => 'add_cash_register_form' ]) !!}
@component('components.widget', ['title' => __('cash_register.open_cash_register')])
@if($business_locations->count() > 0)
{!! Form::label('amount', __('cash_register.cash_in_hand') . ':*') !!}
{!! Form::text('amount', null, ['class' => 'form-control input_number',
'placeholder' => __('cash_register.enter_amount'), 'required']); !!}
@if(count($business_locations) > 1)
{!! Form::label('location_id', __('business.business_location') . ':') !!}
{!! Form::select('location_id', $business_locations, null, ['class' => 'form-control select2',
'placeholder' => __('app.select_location')]); !!}
@else
{!! Form::hidden('location_id', array_key_first($business_locations->toArray()) ); !!}
@endif
@else
@lang('app.no_location_access_found')
@endif
@endcomponent
{!! Form::close() !!}
@endsection