Payer
@php
$paid_by_accounts = \App\Models\Account::orderBy('name', 'asc')->get();
$customer_accounts = \App\Models\Customer::orderBy('name', 'asc')->get();
$vendor_accounts = \App\Models\Vendor::orderBy('name', 'asc')->get();
if($paid_by_accounts->count() || $customer_accounts->count() || $vendor_accounts->count()){
@endphp
@php
}
@endphp
@error('paid_by_account')
{{ $message }}
@enderror
@php
$paid_currencies = ['USD', 'AED', 'EUR', 'IRR'];
if(!empty($paid_currencies)){
@endphp
@php
}
@endphp
@error('paid_currency')
{{ $message }}
@enderror
@error('paid_amount')
{{ $message }}
@enderror
@error('paid_description')
{{ $message }}
@enderror
Receiver
@php
$received_by_accounts = \App\Models\Account::orderBy('name', 'asc')->get();
$customer_accounts = \App\Models\Customer::orderBy('name', 'asc')->get();
$vendor_accounts = \App\Models\Vendor::orderBy('name', 'asc')->get();
if($received_by_accounts->count() || $customer_accounts->count() || $vendor_accounts->count()){
@endphp
@php
}
@endphp
@error('received_by_account')
{{ $message }}
@enderror
@php
$received_currencies = ['USD', 'AED', 'EUR', 'IRR'];
if(!empty($received_currencies)){
@endphp
@php
}
@endphp
@error('received_currency')
{{ $message }}
@enderror
@error('received_amount')
{{ $message }}
@enderror
@error('received_description')
{{ $message }}
@enderror