@extends('layouts.app') @section('title', __('cash_register.open_cash_register')) @section('content')

@lang('cash_register.open_cash_register')

{!! Form::open(['url' => action([\App\Http\Controllers\CashRegisterController::class, 'store']), 'method' => 'post', 'id' => 'add_cash_register_form' ]) !!}



@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' => __('lang_v1.select_location')]); !!}
@else {!! Form::hidden('location_id', array_key_first($business_locations->toArray()) ); !!} @endif
@else

@lang('lang_v1.no_location_access_found')

@endif



{!! Form::close() !!}
@endsection