{!! Form::open(['url' => action([\App\Http\Controllers\CashRegisterController::class, 'postCloseRegister']), 'method' => 'post' ]) !!} {!! Form::hidden('user_id', $register_details->user_id); !!}

@lang( 'cash_register.current_register' ) {{ \Carbon::createFromFormat('Y-m-d H:i:s', $register_details->open_time)->format('jS M, Y h:i A') }} - {{ \Carbon::now()->format('jS M, Y h:i A') }}

{{-- User & Location Info --}}
@lang('report.user'): {{ $register_details->user_name}}
@lang('business.email'): {{ $register_details->email}}
@lang('business.business_location'): {{ $register_details->location_name}}
@if(!empty($register_details->closing_note))
@lang('cash_register.closing_note'):
{{$register_details->closing_note}}
@endif
{{-- Payment Details --}} @include('cash_register.payment_details')
{{-- Closing Amount Fields --}}
{!! Form::label('system_cash_balance', __( 'cash_register.system_cash_balance' ) . ':*', ['style' => 'font-size: 10px; margin-bottom: 2px;']) !!} @php $system_cash_balance = $register_details->cash_in_hand + $register_details->total_cash - ($register_details->total_cash_refund ?? 0) - ($register_details->total_cash_expense ?? 0) + ($register_details->total_customer_deposit ?? 0); @endphp {!! Form::text('system_cash_balance', @num_format($system_cash_balance), ['class' => 'form-control input_number', 'required', 'disabled', 'placeholder' => __( 'cash_register.total_cash' ), 'style' => 'font-size: 11px; padding: 4px 8px; height: 28px;']) !!}
{!! Form::label('closing_amount', __( 'cash_register.total_cash_balance' ) . ':*', ['style' => 'font-size: 10px; margin-bottom: 2px;']) !!} {!! Form::text('closing_amount', @num_format($system_cash_balance), ['class' => 'form-control input_number', 'required', 'placeholder' => __( 'cash_register.total_cash' ), 'style' => 'font-size: 11px; padding: 4px 8px; height: 28px;']) !!}
{!! Form::label('total_card_slips', __( 'cash_register.total_card_slips' ) . ':*', ['style' => 'font-size: 10px; margin-bottom: 2px;']) !!} @show_tooltip(__('tooltip.total_card_slips')) {!! Form::number('total_card_slips', $register_details->total_card_slips, ['class' => 'form-control', 'required', 'placeholder' => __( 'cash_register.total_card_slips' ), 'min' => 0, 'style' => 'font-size: 11px; padding: 4px 8px; height: 28px;']) !!}
{!! Form::label('total_cheques', __( 'cash_register.total_cheques' ) . ':*', ['style' => 'font-size: 10px; margin-bottom: 2px;']) !!} @show_tooltip(__('tooltip.total_cheques')) {!! Form::number('total_cheques', $register_details->total_cheques, ['class' => 'form-control', 'required', 'placeholder' => __( 'cash_register.total_cheques' ), 'min' => 0, 'style' => 'font-size: 11px; padding: 4px 8px; height: 28px;']) !!}
{{-- Cash Denominations --}} @if(!empty($pos_settings['cash_denominations']))

@lang( 'lang_v1.cash_denominations' )

@foreach(explode(',', $pos_settings['cash_denominations']) as $dnm) @endforeach
@lang('lang_v1.denomination')   @lang('lang_v1.count')   @lang('sale.subtotal')
{{$dnm}} X {!! Form::number("denominations[$dnm]", null, ['class' => 'form-control cash_denomination input-sm', 'min' => 0, 'data-denomination' => $dnm, 'style' => 'width: 70px; margin: auto; padding: 2px 4px; font-size: 10px; height: 24px; text-align: center;']) !!} = 0
@lang('sale.total'): 0
@else

@lang('lang_v1.denomination_add_help_text')

@endif {{-- Closing Note --}}
{!! Form::label('closing_note', __( 'cash_register.closing_note' ) . ':', ['style' => 'font-size: 10px; margin-bottom: 2px;']) !!} {!! Form::textarea('closing_note', null, ['class' => 'form-control', 'placeholder' => __( 'cash_register.closing_note' ), 'rows' => 2, 'style' => 'font-size: 10px; padding: 4px 8px; resize: vertical;']) !!}
{!! Form::close() !!}