@php
$productSettings = productSettings(3);
$formObjCollection = collect($productSettings->form_object ?? []);
$settingObj = collect($productSettings->setting_object ?? []);
$initial_acc = InitialAccountsSetUp::where('key_word', 'ap')->first();
$ledgers = $initial_acc->group_code?AccountsHead::select('id', 'name')->where('auto_code', 'LIKE', '%' .$initial_acc->group_code. '%')->get():[];
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'group_id')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'code')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'name_eng')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'name_local')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'party_type')->first();
@endphp
{{--
--}}
@php
$formObj = $formObjCollection->where('form_name', 'cost_center_id')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'commission')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'other_commission_title')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'other_commission')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'com_calc_type')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'commission_type')->first();
@endphp
{{--
--}}
@php
$formObj = $formObjCollection->where('form_name', 'email')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'mobile')->first();
@endphp
@php
$formObj = $formObjCollection->where('form_name', 'address')->first();
@endphp
{{--
--}}
@if (warehouse_info()->is_using_vat == 1)
@include('inventory.customer.vat_info', ['is_vendor' => 1])
@endif