@use('App\Services\Date') @extends('companyuser::layouts.master') @section('title', __('sales::customer_receipts.Create Customer Receipt')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')
@csrf
@if( !isset($currentFiscalYearId))
@lang('superadmin::Dashboard.Please set your ')  @lang('settings::general_settings.accounting settings')   @lang('superadmin::Dashboard.to start adding accounting transactions')
@endif
@include('companyuser::errors.all') @include('companyuser::errors.lists') @error('remaining') @enderror @if($remaining)
@error('code') @enderror
( @lang('optional') )
@error('description')

{{ $message }}

@enderror
@php $selectedCustomerId = old('customer') ?? ($customerReceipt ? $customerReceipt->customer_id : null) ?? request('customer') ?? request('customer_id'); @endphp
@error('customer') @enderror
@error('payment_date') @enderror @error('current_fiscal_year_id') @enderror
@error('cost_center_id')

{{ $message }}

@enderror
@error('payment_account') @enderror
@error('payment_amount') @enderror
@error('kind') @enderror

@lang('sales::customer_receipts.Customer Details'):

@lang('sales::customer_receipts.Phone'):
@lang('sales::customer_receipts.Email'):
@lang('sales::customer_receipts.Outstanding Balance'):
@if( $customFields->count() )
@foreach($customFields as $key=>$field)
@if($field['type']=='checkbox') @else @endif
@endforeach
@endif
@error('terms') @enderror
{{ __('sales::customer_receipts.invoices_loading_hint') }}
@error('notes') @enderror
@else @include('info.limit_reached') @endif
@endsection @section('extra_scripts') @endsection