@extends('frontend.layouts.app') @section('content')
@include('frontend.member.member_listing.advanced_search')

{{ translate("All Active Members") }}

@foreach ($users as $key => $user)
@php $profile_picture_show = 'ok'; $profile_picture_privacy = $user->member->profile_picture_privacy; if($profile_picture_privacy == '0') { $profile_picture_show = 'no'; } elseif($profile_picture_privacy == 2) { if(Auth::user()->membership == 1) { $profile_picture_show = 'no'; } } @endphp
@if($user->membership == 1) {{ translate('Free') }} @elseif($user->membership == 2) {{ translate('Preminum') }} @endif

{{ $user->first_name.' '.$user->last_name }}

{{ translate('Member ID: ') }} {{ $user->code }}
{{ translate('Age') }} {{ \Carbon\Carbon::parse($user->member->birthday)->age }} {{ translate('Height') }} @if(!empty( $user->physical_attributes->height)) {{ $user->physical_attributes->height }} @endif
{{ translate('Religion') }} @if(!empty($user->spiritual_backgrounds->religion_id)) {{ $user->spiritual_backgrounds->religion->name }} @endif {{ translate('Caste') }} @if(!empty($user->spiritual_backgrounds->caste_id)) {{ $user->spiritual_backgrounds->caste->name }} @endif
{{ translate('First Language') }} @if($user->member->mothere_tongue != null) {{ \App\Models\MemberLanguage::where('id',$user->member->mothere_tongue)->first()->name }} @endif {{ translate('Marital Status') }} @if($user->member->marital_status_id != null) {{ $user->member->marital_status->name }} @endif
{{ translate('Location') }} @php $present_address = \App\Models\Address::where('type','present')->where('user_id', $user->id)->first(); @endphp @if(!empty($present_address->country_id)) {{ $present_address->country->name }} @endif
@php $interest_class = "text-primary"; $do_expressed_interest = \App\Models\ExpressInterest::where('user_id', $user->id)->where('interested_by',Auth::user()->id)->first(); $received_expressed_interest = \App\Models\ExpressInterest::where('user_id', Auth::user()->id)->where('interested_by',$user->id)->first(); if(empty($do_expressed_interest) && empty($received_expressed_interest)) { $interest_onclick = 1; $interest_text = translate('Interest'); $interest_class = "text-dark"; } elseif(!empty($received_expressed_interest)) { $interest_onclick = 'do_response'; $interest_text = $received_expressed_interest->status == 0 ? translate('Response to Interest') : translate('You Accepted Interest'); } else { $interest_onclick = 0; $interest_text = $do_expressed_interest->status == 0 ? translate('Interest Expressed') : translate('Interest Accepted'); } @endphp {{ $interest_text }}
@php $shortlist = \App\Models\Shortlist::where('user_id', $user->id)->where('shortlisted_by',Auth::user()->id)->first(); if(empty($shortlist)){ $shortlist_onclick = 1; $shortlist_text = translate('Shortlist'); $shortlist_class = "text-dark"; } else{ $shortlist_onclick = 0; $shortlist_text = translate('Shortlisted'); $shortlist_class = "text-primary"; } @endphp {{ $shortlist_text }}
@php $profile_reported = \App\Models\ReportedUser::where('user_id', $user->id)->where('reported_by',Auth::user()->id)->first(); if(empty($profile_reported)){ $report_onclick = 1; $report_text = translate('Report'); $report_class = "text-dark"; } else{ $report_onclick = 0; $report_text = translate('Reported'); $report_class = "text-primary"; } @endphp {{ $report_text }}
@endforeach
{{ $users->appends(request()->input())->links() }}
@endsection @section('modal') @include('modals.package_update_alert_modal') @include('modals.confirm_modal') @endsection @section('script') @endsection