@section('title', 'Cash Register')
{{ __('Add New Petty Cash') }}
{!! Form::model($cash_register, [ 'url' => $cash_register->exists ? route('backend.cash_register.update', $cash_register->id) : route('backend.cash_register.store'), 'method' => $cash_register->exists ? 'PUT' : 'POST', 'id' => $cash_register->exists ? 'cashRegisterUpdate' : 'cashRegisterCreate', 'novalidate' => true, ]) !!}
{!! Form::label('title', 'Title', ['class' => 'form-label']) !!} * {!! Form::text('title', null, ['class' => 'form-control', 'required' => true]) !!}
{!! Form::label('employee_id', 'Employee Name', ['class' => 'form-label']) !!} * {!! Form::select( 'employee_id', ['' => 'Select Employee'] + $employees->pluck('user.name', 'id')->toArray(), old('employee_id', $cash_register->employee_id), ['class' => 'form-control form-select select2', 'id' => 'employee', 'required' => true], ) !!}
{!! Form::label('opening_balance', 'Opining Balance', ['class' => 'form-label']) !!} {!! Form::number('opening_balance', null, ['class' => 'form-control']) !!}
{!! Form::label('notes', 'Notes', ['class' => 'form-label']) !!} {!! Form::textarea('notes', null, ['class' => 'form-control']) !!}
{!! Form::submit($cash_register->exists ? 'Update' : 'Create', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@push('js') @endpush