@php use Illuminate\Support\Facades\DB; $data = isset($data) ? $data : null; $info = isset($data->joint_applicant_information) ? $data->joint_applicant_information : null; if ($info) { $ninfo = DB::table('customer_nominee_informations') ->where('customer_id', $info->customer_id) ->whereNotNull('joint_id') ->get(); } else { $ninfo = collect(); // খালি collection } @endphp
@csrf
{!! uploadedFile(isset($info)?$info:'',isset($info)?$info->profile_photo:'','create','','profile_photo') !!}
Address
@if($errors->has('present_address')) {{ $errors->first('present_address') }} @endif
@if($errors->has('permanent_address')) {{ $errors->first('permanent_address') }} @endif
{{-- ======================== Nominee Section ======================== --}}
Nominee Information
@if ($ninfo->count() > 0) @foreach ($ninfo as $key => $ninfo)
@if(!$loop->first)
Nominee Information {{ $loop->iteration }}
@endif
{{-- Present Address --}}
{{-- Permanent Address --}}
@endforeach @else
{{-- Present Address --}}
{{-- Permanent Address --}}
@endif
{{-- Hidden template --}}
@include('admin.common.select2')