@use('App\Services\Date') @extends('companyuser::layouts.master') @section('title', __('purchases::supplier_receipts.Create Supplier 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.operation-locked') @include('companyuser::errors.lists') @error('remaining') @enderror
@if($remaining)
@error('code') @enderror
(@lang('optional'))
@error('supplier_invoice_reference_number') @enderror
( @lang('optional') )
@error('description')

{{ $message }}

@enderror
@php $selectedSupplierId = old('supplier') ?? ($supplierReceipt ? $supplierReceipt->supplier_id : null) ?? request('supplier') ?? request('supplier_id'); @endphp
@error('supplier') @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('purchases::supplier_receipts.Supplier Details'):

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