@php $nomor_kk = 0; $is_filter = request()->query('search') || request()->query('category') || request()->query('sort') || request()->query('limit'); @endphp @extends('layouts.frontend.master') @section('content')
Filter Pencarian
{{--
--}}
@if ($is_filter) @endif
Dari {{ $attr->from }} Sampai {{ $attr->to }} | Total {{ $attr->total }} Data
@foreach ($penduduks as $k => $item) @php $link_profile = $item->username ? url($item->username) : route('penduduk.id', $item->id); @endphp

{{ $item->nomor_kk ? $item->nomor_kk . ' | ' : '' }} {{ $item->nama }}

@if ($item->whatsapp) +62{{ $item->whatsapp }} @endif @if ($item->telepon) {{ $item->telepon }} @endif

@php $province = $item->province ? '' . $item->province . '' : ''; $regencie = $item->regencie ? '' . $item->regencie . '' : ''; $district = $item->district ? '' . $item->district . '' : ''; $village = $item->village ? '' . $item->village . '' : ''; $alamat_lengkap = ''; $alamat_lengkap .= $alamat_lengkap == '' ? $item->alamat_lengkap : ''; $alamat_lengkap .= $alamat_lengkap == '' ? $province : ($province == '' ? '' : ", $province"); $alamat_lengkap .= $alamat_lengkap == '' ? $regencie : ($regencie == '' ? '' : ", $regencie"); $alamat_lengkap .= $alamat_lengkap == '' ? $district : ($district == '' ? '' : ", $district"); $alamat_lengkap .= $alamat_lengkap == '' ? $village : ($village == '' ? '' : ", $village"); @endphp {!! $alamat_lengkap !!}


@if ($item->status_keluarga)

SHDK : {{ $item->status_keluarga }}

@endif
@endforeach
{!! $penduduks->links() !!}
@endsection @section('stylesheet') @endsection @section('javascript') {{-- mansory --}} @endsection