@extends('layouts.master') @section('title') {{ trans_choice('general.edit',1) }} {{ trans_choice('general.other_income',1) }} @endsection @section('content')

{{ trans_choice('general.edit',1) }} {{ trans_choice('general.other_income',1) }}

{{csrf_field()}}
@if(\App\Models\Setting::where('setting_key','enable_custom_fields')->first()->setting_value==1) @foreach(\App\Models\CustomField::where('category','other_income')->get() as $key)
@if($key->field_type=="number") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first()->name}} @endif"> @endif @if($key->field_type=="textfield") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first()->name}} @endif"> @endif @if($key->field_type=="date") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first()->name}} @endif"> @endif @if($key->field_type=="textarea") @endif @if($key->field_type=="decimal") required==1) required @endif value="@if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first())){{\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first()->name}} @endif"> @endif @if($key->field_type=="select") @endif @if($key->field_type=="radiobox") @foreach(explode(',',$key->radio_box_values) as $v)
@endforeach @endif @if($key->field_type=="checkbox") @if(!empty(\App\Models\CustomFieldMeta::where('custom_field_id',$key->id)->where('parent_id',$other_income->id)->where('category','other_income')->first()))