@foreach($request->citizen_column as $citizen_item)
@if($citizen_item == "bangla_name" || $citizen_item == "english_name")
|
@if($citizen_item == "bangla_name")
{{ $item->citizen->bangla_name }}
@endif
@if($citizen_item == "english_name")
{{ $item->citizen->english_name }}
@endif
|
@endif
@if($citizen_item == "bn_husband_father_name" || $citizen_item == "en_husband_father_name")
@if($citizen_item == "bn_husband_father_name")
{{ $item->citizen->bn_father_name != null || $item->citizen->bn_father_name != '' ? $item->citizen->bn_father_name : $item->citizen->bn_Husband_name }}
@endif
@if($citizen_item == "en_husband_father_name")
{{ $item->citizen->en_father_name != null || $item->citizen->en_father_name != '' ? $item->citizen->en_father_name : $item->citizen->en_Husband_name }}
@endif
|
@endif
@if($citizen_item == "bn_mother_name" || $citizen_item == "en_mother_name")
@if($citizen_item == "bn_mother_name")
{{ $item->citizen->bn_mother_name }}
@endif
@if($citizen_item == "en_mother_name")
{{ $item->citizen->en_mother_name }}
@endif
|
@endif
@if($citizen_item == "bn_national_id_or_birth_registration" || $citizen_item == "en_national_id_or_en_birth_registration")
@if($citizen_item == "bn_national_id_or_birth_registration")
{{ $item->citizen->national_id != null || $item->citizen->national_id != '' ? NumToBn($item->citizen->national_id) : NumToBn($item->citizen->birth_registration) }}
@endif
@if($citizen_item == "en_national_id_or_en_birth_registration")
{{ $item->citizen->national_id != null || $item->citizen->national_id != '' ? $item->citizen->national_id : $item->citizen->birth_registration }}
@endif
|
@endif
@if($citizen_item == "bn_date_of_birth" || $citizen_item == "en_date_of_birth")
@if($citizen_item == "bn_date_of_birth")
{{ NumToBn(date('d', strtotime($item->citizen->date_of_birth))).'-'.NumToBn(date('m', strtotime($item->citizen->date_of_birth))).'-'.NumToBn(date('Y', strtotime($item->citizen->date_of_birth))) }}
@endif
@if($citizen_item == "en_date_of_birth")
{{ date('d-m-Y', strtotime($item->citizen->date_of_birth)) }}
@endif
|
@endif
@if($citizen_item == "bn_gender" || $citizen_item == "en_gender")
@if($citizen_item == "bn_gender")
{{ bn_citizen_gender($item->citizen->gender) }}
@endif
@if($citizen_item == "en_gender")
{{ en_citizen_gender($item->citizen->gender) }}
@endif
|
@endif
@if($citizen_item == "bn_pesha")
{{ $item->citizen->pesha }}
|
@endif
@if($citizen_item == "p_bn_word" || $citizen_item == "p_en_word")
@if($citizen_item == "p_bn_word")
{{ NumToBn($item->citizen->p_en_word) }}
@endif
@if($citizen_item == "p_en_word")
{{ $item->citizen->p_en_word }}
@endif
|
@endif
@if($citizen_item == "bn_word_member" || $citizen_item == "en_word_member")
@if($citizen_item == "bn_word_member")
{{ bnWordMember($item->citizen->p_en_word) }}
@endif
@if($citizen_item == "en_word_member")
{{ enWordMember($item->citizen->p_en_word) }}
@endif
|
@endif
@if($citizen_item == "p_bn_address" || $citizen_item == "p_en_address" )
@if($citizen_item == "p_bn_address")
{{ $item->citizen->p_bn_address }}
@endif
@if($citizen_item == "p_en_address")
{{ $item->citizen->p_en_address }}
@endif
|
@endif
@if($citizen_item == "p_bn_post" || $citizen_item == "p_en_post")
@if($citizen_item == "p_bn_post")
{{ $item->citizen->p_bn_post }}
@endif
@if($citizen_item == "p_en_post")
{{ $item->citizen->p_en_post }}
@endif
|
@endif
@if($citizen_item == "p_bn_code" || $citizen_item == "p_en_code")
@if($citizen_item == "p_bn_code")
{{ $item->citizen->p_bn_code }}
@endif
@if($citizen_item == "p_en_code")
{{ $item->citizen->p_en_code }}
@endif
|
@endif
@if($citizen_item == "p_bn_upazila" || $citizen_item == "p_en_upazila")
@if($citizen_item == "p_bn_upazila")
{{ $item->citizen->p_upazila->bn_name }}
@endif
@if($citizen_item == "p_en_upazila")
{{ $item->citizen->p_upazila->name }}
@endif
|
@endif
@if($citizen_item == "p_bn_district" || $citizen_item == "p_en_district")
@if($citizen_item == "p_bn_district")
{{ $item->citizen->p_district->bn_name }}
@endif
@if($citizen_item == "p_en_district")
{{ $item->citizen->p_district->name }}
@endif
|
@endif
@if($citizen_item == "p_bn_division" || $citizen_item == "p_en_division")
@if($citizen_item == "p_bn_division")
{{ $item->citizen->p_division->bn_name }}
@endif
@if($citizen_item == "p_en_division")
{{ $item->citizen->p_division->name }}
@endif
|
@endif
@if($citizen_item == "bn_up" || $citizen_item == "en_up")
@if($citizen_item == "bn_up")
{{ webInfo()->up_name }}
@endif
@if($citizen_item == "en_up")
{{ webInfo()->en_up_name }}
@endif
|
@endif
@if($citizen_item == "bn_phone" || $citizen_item == "en_phone")
@if($citizen_item == "bn_phone")
{{ NumToBn($item->citizen->phone) }}
@endif
@if($citizen_item == "en_phone")
{{ $item->citizen->phone }}
@endif
|
@endif
@endforeach
@if($request->appInfo != '')
@foreach($request->appInfo as $column_item)
@foreach ($column_item as $item2)
@foreach($item->inputs as $item1)
@if($item2 == $item1->column_name)
{{ $item1->column_value }} |
@endif
@endforeach
@endforeach
@endforeach
@endif
@foreach($request->column as $column_item)
@if($column_item == "holding_service")
@foreach(\App\Models\Relief::query()->with('tranSakha')->where('citizen_id', $item->citizen->id)->get() as $relief)
{{ $relief->tranSakha->krmosuchi_name }}
@endforeach
|
@endif
@if($column_item == "application_status")
@if($item->status == 0) Pending @elseif($item->status == 1) Approve @elseif($item->status == 2) Reject @endif |
@endif
@endforeach
@endforeach